1
0
mirror of https://github.com/checktheroads/hyperglass synced 2024-05-11 05:55:08 +00:00

add default_color_mode option

This commit is contained in:
checktheroads
2020-03-24 11:08:42 -07:00
parent 575af2d5da
commit 672cad2e47
7 changed files with 17 additions and 160 deletions

View File

@@ -19,7 +19,7 @@ export const HyperglassProvider = ({ config, children }) => {
return (
<HyperglassContext.Provider value={value}>
<ThemeProvider theme={theme}>
<ColorModeProvider>
<ColorModeProvider value={config.web.theme.default_color_mode ?? null}>
<CSSReset />
<MediaProvider theme={theme}>{children}</MediaProvider>
</ColorModeProvider>