Accessing the current mode (Dark/Light) #1757
Unanswered
ArieLevental
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
How can I access the current mode via JavaScript?
I'm using NextJS+Tailwind+shadcn, and I'm trying to style an element using a CSS file.
I don't know how to conditionally style for different modes, and thought about 2 possible ways:
First options sounds much cleaner if it's an option.
Sorry for the newbie question, first time using those technologies.
Thanks a lot!
Beta Was this translation helpful? Give feedback.
All reactions