Skip to content

Commit 72c30d1

Browse files
committed
revert: theme fix
1 parent 2cb1000 commit 72c30d1

File tree

2 files changed

+15
-38
lines changed

2 files changed

+15
-38
lines changed

apps/website/src/app/layout.tsx

Lines changed: 15 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
// import { ServerThemeProvider } from 'next-themes';
1+
import { ServerThemeProvider } from 'next-themes';
22
import type { PropsWithChildren } from 'react';
3-
import { Providers } from './providers';
43

54
import '@unocss/reset/tailwind.css';
65
import '../styles/inter.css';
@@ -10,21 +9,19 @@ import '../styles/main.css';
109

1110
export 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
}

apps/website/src/app/providers.tsx

Lines changed: 0 additions & 20 deletions
This file was deleted.

0 commit comments

Comments
 (0)