Set default theme mode to based on system color scheme

This commit is contained in:
michioxd 2024-04-14 09:10:03 +07:00 committed by Scott Lamb
parent 29cafc2f82
commit 305deaa1e7

View File

@ -37,7 +37,7 @@ root.render(
<React.StrictMode>
<StyledEngineProvider injectFirst>
{/* <ThemeProvider theme={theme}> */}
<Experimental_CssVarsProvider theme={themeExtended}>
<Experimental_CssVarsProvider defaultMode="system" theme={themeExtended}>
<CssBaseline />
<ThemeMode>
<ErrorBoundary>