Next.js Discord

Discord Forum

Next js + Shadcn-ui default theme issue

Answered
Weevil parasitoid posted this in #help-forum
Open in Discord
Weevil parasitoidOP
I posted this question on stackoverflow, kindly check and help

https://stackoverflow.com/questions/78744123/next-js-14-and-shadcn-ui-set-default-theme-as-dark

Thankyou
Answered by Weevil parasitoid
well, the issue is resolved. i didnt change anything. just run the code on the next day and its fixed itself. lol idk why
View full answer

6 Replies

thats kind of odd, you can bypass it by adding a className="dark" onto the html element. (i think)
@Pearls thats kind of odd, you can bypass it by adding a className="dark" onto the html element. (i think)
Weevil parasitoidOP
i've push it on github. If you have time and willing to, you can check on this link
https://github.com/goldenrayv/tickets-app
Add className="dark" onto that <html> element.
Weevil parasitoidOP
well, the issue is resolved. i didnt change anything. just run the code on the next day and its fixed itself. lol idk why
Answer
Weevil parasitoidOP
thanks for the help btw