Skip to content

Commit 07907ef

Browse files
committed
chore: 用户默认进入黑夜模式
1 parent 7594b93 commit 07907ef

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

app/components/ThemeProvider.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ const ThemeProviderContext = createContext<ThemeProviderState>(initialState);
2323

2424
export function ThemeProvider({
2525
children,
26-
defaultTheme: Theme = "dark",
26+
defaultTheme = "system",
2727
storageKey = "vite-ui-theme",
2828
...props
2929
}: ThemeProviderProps) {

app/layout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ export default function RootLayout({
170170
options: { type: "static", api: "/search.json" },
171171
}}
172172
>
173-
<ThemeProvider defaultTheme="system" storageKey="ih-theme">
173+
<ThemeProvider defaultTheme="dark" storageKey="ih-theme">
174174
<main id="main-content" className="relative z-10">
175175
{children}
176176
</main>

0 commit comments

Comments
 (0)