[v4] Dark mode? #14615
[v4] Dark mode?
#14615
-
How to apply this PR in the new alpha to make use of dark mode? |
Beta Was this translation helpful? Give feedback.
Answered by
ParasSolanki
Oct 15, 2024
Replies: 1 comment 1 reply
-
In v4 for the dark mode with @variant dark (&:where(.dark, .dark *)); The cool thing is we can customize this easily and if we want dark mode on attribute for example @variant dark (&:where([data-theme="dark"], [data-theme="dark"] *)); Here's video where Adam explains this https://www.youtube.com/live/y4i_CXXWLoQ?si=XOexSQT1trFSQxZi&t=2028 |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
ev3rlost
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In v4 for the dark mode with
class="dark"
selector you have to add following@variant
css in your global tailwindcss file.The cool thing is we can customize this easily and if we want dark mode on attribute for example
[data-theme="dark"]
Here's video where Adam explains this https://www.youtube.com/live/y4i_CXXWLoQ?si=XOexSQT1trFSQxZi&t=2028