Created
January 27, 2025 16:42
-
-
Save lewebsimple/3d2b05bc0bc9219d858b1236c33323d3 to your computer and use it in GitHub Desktop.
Tailwind CSS reversible dark mode selector
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import type { Config } from "tailwindcss"; | |
export default { | |
darkMode: ["variant", "&:where(.dark, .dark *):not(.not-dark, .not-dark *)"], | |
theme: { | |
extend: {}, | |
}, | |
plugins: [], | |
content: [], | |
} satisfies Config; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment