You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am currently using tailwindcss to develop a page component A, which needs to be compiled and embedded in other projects, and those projects has difference base styles .
I need the A components's base styles to be independent of other projects, so I import tailwindcss in the following way, but this way is invalid when using prefixes such as sm:, md:, etc.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello everyone,
I am currently using tailwindcss to develop a page component A, which needs to be compiled and embedded in other projects, and those projects has difference base styles .
I need the A components's base styles to be independent of other projects, so I import tailwindcss in the following way, but this way is invalid when using prefixes such as sm:, md:, etc.
How can I solve this problem?
style.pcss
example:
When the browser screen width greater than 1024px, it still uses "tw-w-1/2".
style outputs:
Beta Was this translation helpful? Give feedback.
All reactions