Dark Mode toggle and OS preference #13712
Unanswered
LinThitHtwe
asked this question in
Help
Replies: 1 comment
-
Yep! See the documentation for an example. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello ? Is there a way to enable dark mode/ light mode in tailwind class but also kept OS preference when user first visit to the website?
I know that we can toggle dark mode/light mode by adding dark class to DOM, but is there a way to also use default OS preference when user visit the web for the first time ?
Beta Was this translation helpful? Give feedback.
All reactions