We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 657fd84 commit b7dae15Copy full SHA for b7dae15
src/components/DarkModeToggle.vue
@@ -25,6 +25,7 @@ function toggleDark() {
25
html?.classList.add('dark')
26
}
27
isDark.value = hasDarkClass()
28
+ html?.style.setProperty('color-scheme', isDark.value ? 'dark' : null)
29
localStorage.setItem('color-scheme', isDark.value ? 'dark' : 'light')
30
31
</script>
0 commit comments