v4 dark mode isn't overriding color #18435
-
I'm trying to migrate from v3 -> v4, and dark mode variants are behaving unpredictably. So, for example, this works in dark mode:
But this doesn't:
Am I doing something wrong, or is this a known issue? |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 2 replies
-
Seems to be working in this Tailwind Play which would suggest it is something particular to your project. Conside providing a git repo that reproduces the unexpected behavior. |
Beta Was this translation helpful? Give feedback.
-
I can't reproduce it in Tailwind Play with a simple example, and my project is too complex to share. But looking at the dev console, I'm seeing the dark selector override the non-dark selector (which is correct), but then the dark selector gets overridden by this selector:
|
Beta Was this translation helpful? Give feedback.
-
What I'm getting is more like this:
|
Beta Was this translation helpful? Give feedback.
-
The error was in my project, my pipeline processes some 3rd party sass content, and I was running the tailwind generated css through that process. Once I removed the tailwind css from the sass processor, it worked fine. |
Beta Was this translation helpful? Give feedback.
The error was in my project, my pipeline processes some 3rd party sass content, and I was running the tailwind generated css through that process. Once I removed the tailwind css from the sass processor, it worked fine.