Next.js Discord

Discord Forum

shadcn theme toggle

Answered
Dutch posted this in #help-forum
Open in Discord
DutchOP
Upon button click, a border appears around the button which is of opposite color to the selected theme, but then goes away after I click on the page itself.

Everything as per the shadcn guide has been done (in terms of implementation)

Does anyone know why? Am I missing something?

ps: 1st time using shadcn
Answered by @ts-ignore
you own all the code of the component, just change the tailwind styles
View full answer

3 Replies

DutchOP
Yep, that much I could gather. This doesn't happen by default on the shadcn site tho
@Dutch Yep, that much I could gather. This doesn't happen by default on the shadcn site tho
you own all the code of the component, just change the tailwind styles
Answer