Tailwind v4, preflight and prefix #15719
Answered
by
wongjn
federicocappellotto97
asked this question in
Help
|
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 |
Answered by
wongjn
Jan 23, 2025
Replies: 2 comments 9 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 |
8 replies
|
can anyone know how to add "tw-" not "tw:" ? I got used to the Hyphen "-". |
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
So the second block is more correct, perhaps you need to add the
prefix()to both@imports? (Sorry, I'm not at a computer to test these suggestions myself!)