Optimize the logic for switching between light and dark modes

This commit is contained in:
kakomonn 2025-04-05 17:35:28 +08:00
parent abdcd76a80
commit 88a3a9f46b
9 changed files with 13 additions and 10 deletions

View file

@ -15,7 +15,7 @@ export interface ThemeConfig {
}
color: {
mode: 'light' | 'dark'
mode: 'light' | 'dark' | 'auto'
light: {
primary: string
secondary: string