Replies: 1 comment 1 reply
-
It seems like you're trying to use a -@import 'tailwindcss'
+@import 'tailwindcss';
+@custom-variant dark (&:where(.dark, .dark *)); |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
What version of Tailwind CSS are you using?
What build tool (or framework if it abstracts the build tool) are you using?
What version of Node.js are you using?
What browser are you using?
What operating system are you using?
Reproduction URL
https://github.com/DARK7177/crispy-garbanzo
Attached a repo for reproduction and the unexpected behavior encountered
Describe your issue
Tailwind v4 styles like dark: bg-black and dark: text-white do not apply consistently across components. The background may switch, but nested text elements or buttons do not reflect the dark mode styles.
Expected behavior
Toggling the dark class should apply all dark: prefixed classes immediately, just like it worked in Tailwind v3 with darkMode: 'class'.
Actual behavior
Beta Was this translation helpful? Give feedback.
All reactions