There was an error while loading. Please reload this page.
1 parent f31087c commit d713a11Copy full SHA for d713a11
1 file changed
src/index.css
@@ -1,5 +1,13 @@
1
@import "tailwindcss";
2
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
11
@theme {
12
--font-alexandria: "Alexandria", sans-serif;
13
--font-cairo: "Cairo", sans-serif;
0 commit comments