-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
[v4]: variable-based classes only seem to use initial value, and not the theme values #13367
Comments
I want to add that placed a workaround in the reproduction repo because I also use it for a demo tomorrow at my dayjob. |
Hey! I think the issue here is you need to be on |
Related: vitejs/vite#16135 (comment) |
Something similar is happening on tailwind 3 as well.. I cannot set variables with multiple words like |
We've released Your reproduction appears to work after updating. You can run the following to update:
Thanks for reporting! |
What is the merged PR? Would love to read a bit through the related changes to get a better grasp on how that specific side of the tw project works. Thanks in advance🤙 |
What version of Tailwind CSS are you using?
v4.0.0-alpha.10
What build tool (or framework if it abstracts the build tool) are you using?
Vite (Remix)
What version of Node.js are you using?
v20.11.1
What browser are you using?
Chrome (latest), Brave (latest), Firefox (latest)
What operating system are you using?
Arch, Ubuntu, Win11
Reproduction URL
Tw3 Alpha Remix
Describe your issue
My setup was inspired by the following post by @adamwathan [X/Twitter post] (sorry for the ping, doing so because the code at hand used your post as example) (https://x.com/adamwathan/status/1770979061721919598?s=20) where as far as I can see, everything should work in theory. But right now the oxide engine (I expect this part of the alpha version is related to the issue at hand) doesnt seem to handle the themes as expected.
I want to add, I might be doing something wrong in this setup so if there's anything from my end not used or setup correctly, feel free to mention!
The text was updated successfully, but these errors were encountered: