From b417e36c995186ead22b0c22971791565e42f68c Mon Sep 17 00:00:00 2001
From: Fuwn <contact@fuwn.me>
Date: Tue, 5 Dec 2023 13:30:38 -0800
Subject: fix(html): theme fouc

---
 src/routes/+layout.svelte | 2 ++
 1 file changed, 2 insertions(+)

(limited to 'src/routes/+layout.svelte')

diff --git a/src/routes/+layout.svelte b/src/routes/+layout.svelte
index 9aa8031a..95c7c678 100644
--- a/src/routes/+layout.svelte
+++ b/src/routes/+layout.svelte
@@ -13,8 +13,10 @@
 		settings.subscribe((value) => {
 			if (value.forceLightTheme === true) {
 				document.documentElement.classList.add('light-theme');
+				document.documentElement.classList.remove('dark-theme');
 			} else {
 				document.documentElement.classList.remove('light-theme');
+				document.documentElement.classList.add('dark-theme');
 			}
 		});
 
-- 
cgit v1.2.3

