We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7594b93 commit 07907efCopy full SHA for 07907ef
app/components/ThemeProvider.tsx
@@ -23,7 +23,7 @@ const ThemeProviderContext = createContext<ThemeProviderState>(initialState);
23
24
export function ThemeProvider({
25
children,
26
- defaultTheme: Theme = "dark",
+ defaultTheme = "system",
27
storageKey = "vite-ui-theme",
28
...props
29
}: ThemeProviderProps) {
app/layout.tsx
@@ -170,7 +170,7 @@ export default function RootLayout({
170
options: { type: "static", api: "/search.json" },
171
}}
172
>
173
- <ThemeProvider defaultTheme="system" storageKey="ih-theme">
+ <ThemeProvider defaultTheme="dark" storageKey="ih-theme">
174
<main id="main-content" className="relative z-10">
175
{children}
176
</main>
0 commit comments