We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c07360c commit 54d2a29Copy full SHA for 54d2a29
src/lib/Appearance.svelte
@@ -9,9 +9,11 @@ $effect(() => {
9
// toggle the dark class on the html element
10
if (isDarkTheme) {
11
html.classList.add('dark');
12
+ html.classList.remove('light');
13
html.setAttribute('style', 'color-scheme: dark;');
14
} else {
15
html.classList.remove('dark');
16
+ html.classList.add('light');
17
html.setAttribute('style', 'color-scheme: light;');
18
}
19
});
0 commit comments