Replies: 1 comment
-
You have overridden the default @custom-variant dark (&:is(.dark *)); If you want You may then wish to also rework the -.dark {
+@media (prefers-color-scheme: dark) {
+ :root {
--background: oklch(0.145 0 0);
--foreground: oklch(0.985 0 0);
…
--sidebar-border: oklch(1 0 0 / 10%);
--sidebar-ring: oklch(0.556 0 0);
+ }
} |
Beta Was this translation helpful? Give feedback.
0 replies
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.
-
Tailwind doesn't seem to compile the background colors when the system theme is used. The color itself is present, but not attached to the dark class:


If I explicitly set the theme as

dark
in the HTML, then another class is added, along with the incomplete class:This issue isn't present when the project is built, and only present when dev mode is run
Reproducible example - https://codesandbox.io/p/github/Kulsgam/repro_ex/main?import=true
If the system theme is dark, then it should be yellow, but it remains red.
Beta Was this translation helpful? Give feedback.
All reactions