Default dark theme with environment variable (#61)

* Created env variable for setting dark as default theme

* Docker variable simplified
This commit is contained in:
David
2021-10-24 16:08:35 +02:00
committed by GitHub
parent 064ce141cb
commit 3f0918edf3
3 changed files with 7 additions and 4 deletions

View File

@@ -17,7 +17,7 @@ export default extendTheme({
}
},
config: {
initialColorMode: "light",
initialColorMode: process.env["DEFAULT_DARK_THEME"] === "true" ? "dark" : "light",
useSystemColorMode: false
},
components: {