Skip to content

Commit

Permalink
fix: fix tailwind config to avoid FOUC
Browse files Browse the repository at this point in the history
  • Loading branch information
mayank1513 committed Jun 14, 2024
1 parent 9e46ee0 commit 7a834ac
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion examples/tailwind-ssg/tailwind.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ const config: Config = {
],
theme: {},
plugins: [],
darkMode: "class",
darkMode: [
"variant",
["@media (prefers-color-scheme: dark) { &:not(.light *) }", "&:is(.dark *)"],
],
};
export default config;

0 comments on commit 7a834ac

Please sign in to comment.