Fix theme initialization and hydration issues
This commit is contained in:
parent
d0739736aa
commit
c3cd1de647
4 changed files with 204 additions and 22 deletions
|
|
@ -32,11 +32,10 @@ export default function RootLayout({
|
|||
<html
|
||||
lang="nl"
|
||||
suppressHydrationWarning
|
||||
className={`${fontBody.variable} ${fontMono.variable}`}
|
||||
className={`${fontBody.variable} ${fontMono.variable} dark`}
|
||||
>
|
||||
<body className="min-h-screen antialiased">
|
||||
<ThemeProvider
|
||||
attribute="class"
|
||||
defaultTheme="dark"
|
||||
enableSystem
|
||||
disableTransitionOnChange
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue