-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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 doesn't work in v3.3.1 #11064
Comments
Same here using v3.3.1 and Chrome browser, Vite 4.1.4 and node v19.4.0 on OSX. |
@ibilux @JasonMortonNZ can either or both of you provide a reproduction? It's hard to triage without having a project to look at. |
Hey! So feel free to still provide a reproduction as @thecrypticace requested, but I think I know what's going on here. In Tailwind CSS v3.3 we made the Here is how the generated CSS changed between Tailwind CSS v3.2 and v3.3: /* Before */
.dark .dark\:text-white {
--tw-text-opacity: 1;
color: rgb(255 255 255 / var(--tw-text-opacity));
}
/* After */
:is(.dark .dark\:text-white) {
--tw-text-opacity: 1;
color: rgb(255 255 255 / var(--tw-text-opacity));
} The I hope that helps! |
Thank you @reinink for the clarification. Thank you @reinink. It works now with @csstools/postcss-is-pseudo-class polyfill. |
The dark mode doesn't work in
v3.3.1
anymore in some browsers.What version of Tailwind CSS are you using?
v3.3.1
What build tool (or framework if it abstracts the build tool) are you using?
Sveltekit 1.15.7, vite 4.3.1
What version of Node.js are you using?
v18.16.0
What browser are you using?
Falkon
What operating system are you using?
Linux
Reproduction URL
The dark mode in the tailwind official site can't apply.
Describe your issue
The dark mode doesn't work (don't apply) in
v3.3.1
anymore in some browsers (Android 8.1 and Falkon brwosers).It was working in previous versions
v3.2.7
.The text was updated successfully, but these errors were encountered: