Shadcn
Unanswered
starload7744 posted this in #help-forum
How can i change the default color of dark mode shadcn?
6 Replies
Argente Brun
What do u mean by default color? The default background color? In your css file
"@layer base {" -> ".dark {" -> "--background: 240 10% 3.9%;"Eastern Phoebe
Have you tried to use the ThemeProvider and set the
https://ui.shadcn.com/docs/dark-mode/next
defaultTheme attribute to dark?https://ui.shadcn.com/docs/dark-mode/next
<ThemeProvider
attribute="class"
defaultTheme="system"
enableSystem
disableTransitionOnChange
>Forest bachac
Yes the nextjs discord will have the answer and not the shadcn/ui documentation with a whole section on themes
Eastern Phoebe
Hi @starload7744 if this solved your problem. please mark as solution.
no it didnt
@starload7744 no it didnt
Eastern Phoebe
have you even tried it? where's the problem?