mirror of
https://github.com/reonokiy/blog.nokiy.net.git
synced 2025-06-16 19:51:07 +02:00
Optimize the logic for switching between light and dark modes
This commit is contained in:
parent
abdcd76a80
commit
88a3a9f46b
9 changed files with 13 additions and 10 deletions
2
src/types/index.d.ts
vendored
2
src/types/index.d.ts
vendored
|
@ -15,7 +15,7 @@ export interface ThemeConfig {
|
|||
}
|
||||
|
||||
color: {
|
||||
mode: 'light' | 'dark'
|
||||
mode: 'light' | 'dark' | 'auto'
|
||||
light: {
|
||||
primary: string
|
||||
secondary: string
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue