Skip to content

Commit

Permalink
feat: default theme system
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasm committed Aug 16, 2024
1 parent d7afbce commit e27ce47
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions app/[locale]/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -86,14 +86,14 @@ export default async function Layout({
className={fontFamily.className}
suppressHydrationWarning>
<body>
<NextIntlClientProvider messages={messages}>
<ThemeProvider
attribute="data-theme"
defaultTheme="light"
enableSystem={true}>
<ThemeProvider
attribute="data-theme"
defaultTheme="system"
enableSystem={true}>
<NextIntlClientProvider messages={messages}>
{children}
</ThemeProvider>
</NextIntlClientProvider>
</NextIntlClientProvider>
</ThemeProvider>
</body>

<Telemetry />
Expand Down

0 comments on commit e27ce47

Please sign in to comment.