chore: add auto option for theme colors

This commit is contained in:
radishzzz 2025-04-06 03:10:28 +01:00
parent 88a3a9f46b
commit 21ae80e27d
4 changed files with 6 additions and 7 deletions

View file

@ -114,7 +114,6 @@ function isCurrentDark() {
return false
if (defaultMode === 'dark')
return true
// Auto mode or undefined, use system preference
return window.matchMedia('(prefers-color-scheme: dark)').matches
}