Skip to content

Commit 6a22223

Browse files
committed
frontend: enable auto color scheme
1 parent ce62433 commit 6a22223

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

apps/frontend/app/root.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,14 @@ export function Layout({ children }: { children: React.ReactNode }) {
2020
<meta charSet="utf-8" />
2121
<meta name="viewport" content="width=device-width, initial-scale=1" />
2222

23-
<ColorSchemeScript />
23+
<ColorSchemeScript defaultColorScheme="auto" />
2424
<Meta />
2525
<Links />
2626
</head>
2727
<body>
28-
<MantineProvider theme={theme}>{children}</MantineProvider>
28+
<MantineProvider defaultColorScheme="auto" theme={theme}>
29+
{children}
30+
</MantineProvider>
2931

3032
<ScrollRestoration />
3133
<Scripts />

0 commit comments

Comments
 (0)