Skip to content

🐸 Rybbit - open-source and privacy-friendly alternative to Google Analytics that is 10x more intuitive.

Refactor ThemeProvider configuration for improved theme handling

Bill Yang0caf91e6d30f
diff --git a/client/src/app/layout.tsx b/client/src/app/layout.tsx
index 602290c46..80f3eec94 100644
--- a/client/src/app/layout.tsx
+++ b/client/src/app/layout.tsx
@@ -26,7 +26,7 @@ export default function RootLayout({ children }: { children: React.ReactNode })
<html lang="en" suppressHydrationWarning>
<ReactScan />
<body className={cn("bg-background text-foreground h-full", inter.className)} suppressHydrationWarning>
- <ThemeProvider attribute="class" defaultTheme="dark" enableSystem={true}>
+ <ThemeProvider attribute="class" enableSystem={true}>
<TooltipProvider>
<QueryProvider>
<OrganizationInitializer />
diff --git a/docs/src/app/layout.tsx b/docs/src/app/layout.tsx
index 98500bac7..ae0f064e2 100644
--- a/docs/src/app/layout.tsx
+++ b/docs/src/app/layout.tsx
@@ -171,7 +171,6 @@ export default function Layout({ children }: { children: ReactNode }) {
theme={{
enabled: true,
enableSystem: true,
- defaultTheme: "dark",
}}
>
{children}