Refactor layout component to enable dark theme by default

This commit is contained in:
mauro-balades
2024-09-16 23:34:51 +02:00
parent 84bea350b3
commit 8c5f86d8ce
4 changed files with 10 additions and 1 deletions

View File

@@ -36,7 +36,7 @@ export default async function RootLayout({
/>
</head>
<body className={inter.className}>
<ThemeProvider attribute="class" enableSystem defaultTheme="system">
<ThemeProvider attribute="class" enableSystem defaultTheme="dark" storageKey="zen.theme">
<StyledComponentsRegistry>
<div>
{children}