-
Notifications
You must be signed in to change notification settings - Fork 635
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Broken theme due to Tailwind V4.0.5 #3275
Comments
For what it is worth you can set this in your package to pin to 4.0.4
|
Yes that is the only solution for now, you can also use the I'm not sure how to handle |
Here's a workaround until we figure it out with the Tailwind CSS team: /* Don't do `@import "tailwindcss"`, do this instead: */
@layer theme, base, components, utilities;
@import "tailwindcss/theme" layer(theme) theme(static);
@import "tailwindcss/preflight" layer(base);
@import "tailwindcss/utilities" layer(utilities);
/* Then import "@nuxt/ui": */
@import "@nuxt/ui"; |
Might work via |
@TheAlexLichter This is what the previous workaround does ( But this is not the perfect solution as we won't be able to benefit from the CSS variables purge. The issue here is Nuxt UI defines proxy CSS variables |
@benjamincanac moving forward what do you propose? Pin 4.0.4 until Nuxt UI adds their special sauce, then upgrade? Or give this ago?
|
@StirStudios You can use the provided workaround, this will have the same behavior as before with |
Great thanks for being such a valused community member! |
This has been reverted in Tailwind CSS |
Environment
Is this bug related to Nuxt or Vue?
Nuxt
Version
v3.0.0-alpha.12
Reproduction
https://codesandbox.io/p/sandbox/purple-sunset-9qdqv3
Just upgrade Nuxt template to v3.0.0-alpha.12 and remove style from app.vue make preview without theme colors
Description
Tailwind v4.0.5 add optimization to compiled css that include only theme variable that are used
Additional context
Nuxt Template with v3.0.0-alpha.12 without style in app.vue
Nuxt Template with v3.0.0-alpha.10 without style in app.vue
Logs
The text was updated successfully, but these errors were encountered: