Dark Mode Switcher #251
-
I'm curious, but how do you guys create theme switcher using twin.macro? And also how to support tailwindcss/typography with dark mode? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Hey there, check out this resource on how to create a theme switcher. Regarding @tailwindcss/typography, you'll need to overwrite the color classes with css variables for your theme. Check their readme for instructions on that. |
Beta Was this translation helpful? Give feedback.
-
Be aware this solution disables any background opacity in colors with css variables. |
Beta Was this translation helpful? Give feedback.
Hey there, check out this resource on how to create a theme switcher.
Regarding @tailwindcss/typography, you'll need to overwrite the color classes with css variables for your theme. Check their readme for instructions on that.