Check cookies for theme toggle
This commit is contained in:
parent
1e66c7cd9a
commit
2db5a5abab
1 changed files with 7 additions and 0 deletions
|
@ -10,6 +10,13 @@ import Footer from "@components/global/Footer.astro";
|
|||
// Styles
|
||||
import '@styles/index.scss'
|
||||
import '@styles/mobile.scss'
|
||||
|
||||
// User Configuration
|
||||
if (Astro.cookies.get("Theme").value === "Light") {
|
||||
var ThemeScheme = 'light'
|
||||
} else if (Astro.cookies.get("Theme").value === "Dark") {
|
||||
var ThemeScheme = 'dark'
|
||||
}
|
||||
---
|
||||
|
||||
<Head/>
|
||||
|
|
Reference in a new issue