Skip to content

Commit 306e8d1

Browse files
committed
chore(www): integrate ThemeProvider
1 parent 1741236 commit 306e8d1

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

apps/www/app/layout.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ import localFont from 'next/font/local';
2727
import './globals.css';
2828
import {NextFontWithVariable} from 'next/dist/compiled/@next/font';
2929
import {ReactElement} from 'react';
30+
import ThemeProvider from '@/components/ThemeProvider';
3031

3132
const geistSans: NextFontWithVariable = localFont({
3233
src: './fonts/GeistVF.woff',
@@ -49,7 +50,11 @@ const RootLayout = ({
4950
children: React.ReactNode;
5051
}>): ReactElement => (
5152
<html lang="en">
52-
<body className={`${geistSans.variable} ${geistMono.variable}`}>{children}</body>
53+
<body className={`${geistSans.variable} ${geistMono.variable}`}>
54+
<ThemeProvider attribute="class" defaultTheme="system" enableSystem disableTransitionOnChange>
55+
{children}
56+
</ThemeProvider>
57+
</body>
5358
</html>
5459
);
5560

0 commit comments

Comments
 (0)