Fix theme toggle using system preference instead of selected theme (#326)
Tailwind v4 defaults dark: utilities to @media (prefers-color-scheme) strategy. Add @custom-variant to use class-based dark mode matching the next-themes ThemeProvider attribute="class" configuration. Fixes https://github.com/manaflow-ai/cmux/issues/325
This commit is contained in:
parent
1bc3edf75f
commit
018554cc47
1 changed files with 2 additions and 0 deletions
|
|
@ -1,5 +1,7 @@
|
|||
@import "tailwindcss";
|
||||
|
||||
@custom-variant dark (&:where(.dark, .dark *));
|
||||
|
||||
:root {
|
||||
--background: #fafafa;
|
||||
--foreground: #171717;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue