Tailwind v4, preflight and prefix #15719
-
I need to add prefix to my class and disable preflight to add tw in an existing project If i do like this But doing like this doesn't work, and i can't find any docs about it
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 6 replies
-
Prefix doesn't make sense with preflight since there are no classes to prefix. Of you want to limit its effect to a subset of the DOM, you could try rewriting it with your own scoping rule(s) or try |
Beta Was this translation helpful? Give feedback.
-
can anyone know how to add "tw-" not "tw:" ? I got used to the Hyphen "-". |
Beta Was this translation helpful? Give feedback.
So the second block is more correct, perhaps you need to add the
prefix()
to both@import
s? (Sorry, I'm not at a computer to test these suggestions myself!)