File tree Expand file tree Collapse file tree 2 files changed +15
-38
lines changed
Expand file tree Collapse file tree 2 files changed +15
-38
lines changed Original file line number Diff line number Diff line change 1- // import { ServerThemeProvider } from 'next-themes';
1+ import { ServerThemeProvider } from 'next-themes' ;
22import type { PropsWithChildren } from 'react' ;
3- import { Providers } from './providers' ;
43
54import '@unocss/reset/tailwind.css' ;
65import '../styles/inter.css' ;
@@ -10,21 +9,19 @@ import '../styles/main.css';
109
1110export default function RootLayout ( { children } : PropsWithChildren ) {
1211 return (
13- // <ServerThemeProvider
14- // attribute="class"
15- // defaultTheme="system"
16- // disableTransitionOnChange
17- // value={{
18- // light: 'light',
19- // dark: 'dark',
20- // }}
21- // >
22- < html lang = "en" >
23- < head />
24- < body className = "dark:bg-dark-800 bg-white" >
25- < Providers > { children } </ Providers >
26- </ body >
27- </ html >
28- // </ServerThemeProvider>
12+ < ServerThemeProvider
13+ attribute = "class"
14+ defaultTheme = "system"
15+ disableTransitionOnChange
16+ value = { {
17+ light : 'light' ,
18+ dark : 'dark' ,
19+ } }
20+ >
21+ < html lang = "en" >
22+ < head />
23+ < body className = "dark:bg-dark-800 bg-white" > { children } </ body >
24+ </ html >
25+ </ ServerThemeProvider >
2926 ) ;
3027}
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments