How to configure dark mode using @tailwindcss/vite #16974
Unanswered
vinitparekh17
asked this question in
Help
Replies: 1 comment 7 replies
-
You'd configure it in your CSS, as per the documentation: @import "tailwindcss";
@custom-variant dark (&:where(.dark, .dark *)); |
Beta Was this translation helpful? Give feedback.
7 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Since I am using svelte, vite, tailwindcss, I do not know / do not have tailwind.config.ts but vite.config.ts:
ref https://tailwindcss.com/docs/installation/framework-guides/sveltekit
I want this to be configured:
darkMode: 'class'
Beta Was this translation helpful? Give feedback.
All reactions