-
Hey, I'm starting using v4 for out design system where we have multiple themes in it. In v3 it was possible to generate the styles with a fix data-theme like
So every tailwind class was "prefixed" with data-theme="core" which was defined in the tailwind.config via
I thought I could do it now via How could I do it now? - Thanks for help in advance |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Found this in Tailwind's tests: tailwindcss/packages/tailwindcss/src/important.test.ts Lines 6 to 31 in a8c54ac So for a full CSS file: @layer theme, base, components, utilities;
@import "tailwindcss/theme.css" layer(theme);
@import "tailwindcss/preflight.css" layer(base);
@theme {
/* ... */
}
@layer utilities {
[data-theme="core"] {
@tailwind utilities;
}
} |
Beta Was this translation helpful? Give feedback.
Found this in Tailwind's tests:
tailwindcss/packages/tailwindcss/src/important.test.ts
Lines 6 to 31 in a8c54ac