-
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
Dark mode broken in 3.4.0, last working 3.3.7 #12633
Comments
See also #12627 (reply in thread) |
Skeleton is also making use of This update is breaking for all of our users that customized Skeleton components depending on light/dark mode since instead of A resolution to this problem and preferably a revert until a major Tailwind version will be published would be very much appreciated. |
Hey! Can you please provide a reproduction? Something that shows some specific code that used to work and doesn't work now. Dark mode does work generally: https://play.tailwindcss.com/WZBZxlIUzn |
A basic example: https://play.tailwindcss.com/sxcXJrc50E The button on hover used to preserve its color in the dark mode (stay violet), but in 3.4.0 it becomes green. |
A more convoluted example using Skeleton: Working (with Tailwind 3.3.3): https://stackblitz.com/edit/skeletonlabs-repl-ojdt8e?file=src%2Froutes%2F%2Bpage.svelte Not Working (with Tailwind 3.4.0): https://stackblitz.com/edit/skeletonlabs-repl-hxd8qn?file=src%2Froutes%2F%2Bpage.svelte How the card style is implemented: https://github.com/skeletonlabs/skeleton/blob/dev/packages/plugin/src/styles/components/cards.css How the background token Skeleton uses is generated: https://github.com/skeletonlabs/skeleton/blob/dev/packages/plugin/src/tailwind/tokens/backgrounds.ts#L34 So bg-surface-100-800-token is basically: .dark .bg-surface-100-800-token {
background-color: rgb(var(--color-surface-800))
}
.bg-surface-100-800-token {
background-color: rgb(var(--color-surface-100))
} |
Can confirm dark mode is broken in 3.4.0. Hopefully this will get fixed. |
Was hoping to push out a solution for this before the holidays but likely not going to be until first week of January after the Christmas break, sorry folks. Use v3.3 in the mean time if you're affected by this and we'll push out an update right after the holidays. |
No problem Adam, we'll follow that advice for now. Thanks and have a nice holiday! |
Thanks for letting us know! Let's see on the first week of jan. Enjoy the holidays. |
Thanks @adamwathan |
Hey, I have the same issue... So the only solutions for now is to downgrade to 3.3.7 ? |
That is the case until Adam and the rest of the team come back from a well deserved holiday break. |
We've got a fix for this in #12717. I've got to backport this to v3.4, get a release out an update play + the cdn. It'll take a bit before everything's updated but everything should (hopefully) be out in the next hour or two. I'll leave a comment here when done. |
Release is out — play and CDN are both updated |
Successfully verified with the package. Thank you very much! |
Fantastic — thanks for checking! ✨ |
What version of Tailwind CSS are you using?
3.4.0
What build tool (or framework if it abstracts the build tool) are you using?
CDN
What version of Node.js are you using?
CDN, so N/A
What browser are you using?
Chrome
What operating system are you using?
Windows
Reproduction URL
We identified the offending CSS in #12627 (comment)
Describe your issue
Dark mode is broken.
The text was updated successfully, but these errors were encountered: