Replies: 1 comment
-
Ok, I think I have found a simple way : I just remove some layers to build my css without them |
Beta Was this translation helpful? Give feedback.
0 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 am working on a vanilla js widget that will be embedded on partners' websites.
I intended to use tailwind 4 for my styling part but after scoping preflight and configuring my build with a prefix, my first tests showed on major issue : my widget css is affected by the present stylesheets of the host website. More precisely by the reset css used on that website.
The reason is pretty simple : all my tailwind 4 css is layered css (the default tailwind layers) while the host website css is unlayered css thus has precedence on my tailwind css.
Is there a proper way to handle this if I want to use tailwind 4 ?
Beta Was this translation helpful? Give feedback.
All reactions