[v4] How to disable "preflight" while using "prefix"? #17594
Unanswered
chenkuangkuang
asked this question in
Help
Replies: 1 comment 6 replies
-
Hey! This should do what you want: https://play.tailwindcss.com/RBgk7fFeQa?file=css @layer theme, base, components, utilities;
@import "tailwindcss/theme.css" layer(theme) prefix(tw);
@import "tailwindcss/utilities.css" layer(utilities) prefix(tw); |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I use vite to configure tailwind. According to the documentation, I have made the following settings:
@import "tailwindcss" prefix(tw);
Then I want to disable "preflight", but the documentation tells me to do this:
@layer theme, base, components, utilities;
@import "tailwindcss/theme.css" layer(theme);
@import "tailwindcss/utilities.css" layer(utilities);
How are the above two configurations compatible?
Beta Was this translation helpful? Give feedback.
All reactions