[v4] Default theme is not disabled when nested under a selector #18112
Unanswered
artaommahe
asked this question in
Help
Replies: 1 comment 2 replies
-
|
You can put the first .new_design {
@layer theme {
:root, :host {Which is non-sensical since |
Beta Was this translation helpful? Give feedback.
2 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.
-
What version of Tailwind CSS are you using?
v4.1.4
What build tool (or framework if it abstracts the build tool) are you using?
Vite 6.3.5
What version of Node.js are you using?
v20.18.1
What browser are you using?
Chrome
What operating system are you using?
macOS
Reproduction URL
text-amber-200is included despite--*: initialit works correct when theme/utilities are not nested under a
.new_designselector.Describe your issue
Im expecting
--*: initialto disable all (/most) of default tailwind classes, but for some reason it doesn't work in case of nesting the theme under a selector.We have two different tailwind themes on the same page together (old and new design) while slowly migrating to the newest one. To resolve same-tokens conflicts we're nesting the new design theme under a
.new_designselector (important: '.new_design'in js-based config). While migrating to css-based configuration we've noticed that default tailwind theme is not disabled in such setup.Beta Was this translation helpful? Give feedback.
All reactions