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.
Answered by
ben-rogerson
Dec 15, 2020
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.
2 replies
Answer selected by
ben-rogerson
-
Be aware this solution disables any background opacity in colors with css variables. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.