Skip to content

Commit d713a11

Browse files
committed
class mode
1 parent f31087c commit d713a11

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

src/index.css

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
@import "tailwindcss";
22

3+
/*
4+
Force class-based dark mode (ignore OS system setting).
5+
Without this, Tailwind v4 uses @media prefers-color-scheme by default,
6+
which means dark: classes apply based on the OS — not our .dark class toggle.
7+
*/
8+
@custom-variant dark (&:where(.dark, .dark *));
9+
10+
311
@theme {
412
--font-alexandria: "Alexandria", sans-serif;
513
--font-cairo: "Cairo", sans-serif;

0 commit comments

Comments
 (0)