Check cookies for theme toggle

This commit is contained in:
Korbs 2024-10-25 14:53:49 -04:00
parent 1e66c7cd9a
commit 2db5a5abab

View file

@ -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/>