Skip to content

Commit 7a834ac

Browse files
committed
fix: fix tailwind config to avoid FOUC
1 parent 9e46ee0 commit 7a834ac

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

examples/tailwind-ssg/tailwind.config.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ const config: Config = {
88
],
99
theme: {},
1010
plugins: [],
11-
darkMode: "class",
11+
darkMode: [
12+
"variant",
13+
["@media (prefers-color-scheme: dark) { &:not(.light *) }", "&:is(.dark *)"],
14+
],
1215
};
1316
export default config;

0 commit comments

Comments
 (0)