Skip to content

How do I have light mode components? #615

Answered by Saeid-Za
NeedNot asked this question in Q&A
Discussion options

You must be logged in to vote

Components use tailwind clasess to support both light and dark modes.
If you only see the dark mode, it's because of the "dark" class on body.
Any chance you've added that class to your body element, but you didn't mean to?
I'd suggest reading the themeing section in the docs.
https://www.shadcn-vue.com/docs/dark-mode.html

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@NeedNot
Comment options

@sadeghbarati
Comment options

Answer selected by sadeghbarati
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants