fix missing html background change on theme toggle

Signed-off-by: Ronni Skansing <rskansing@gmail.com>
This commit is contained in:
Ronni Skansing
2025-10-08 19:25:10 +02:00
parent ebe949e7f0
commit 0f38561e15

View File

@@ -84,8 +84,10 @@ const applyThemeToHTML = (mode) => {
const html = document.documentElement;
if (mode === modeDark) {
html.classList.add('dark');
html.style.backgroundColor = '#111827';
} else {
html.classList.remove('dark');
html.style.removeProperty('background-color');
}
};