Skip to content

Commit 956d9a3

Browse files
committed
docs: update RootProvider theme configuration
1 parent 3f1413e commit 956d9a3

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

docs/src/app/layout.tsx

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,14 @@ export default function Layout({ children }: { children: ReactNode }) {
4141
<meta name="color-scheme" content="dark light" />
4242
</head>
4343
<body>
44-
<RootProvider>{children}</RootProvider>
44+
<RootProvider
45+
theme={{
46+
defaultTheme: "dark",
47+
storageKey: "theme",
48+
}}
49+
>
50+
{children}
51+
</RootProvider>
4552
</body>
4653
</html>
4754
);

0 commit comments

Comments
 (0)