mirror of
https://github.com/reonokiy/blog.nokiy.net.git
synced 2025-06-16 11:41:17 +02:00
feat: add theme toggle for light/dark modes
This commit is contained in:
parent
d148649454
commit
d599b3e26d
9 changed files with 125 additions and 28 deletions
14
src/types/index.d.ts
vendored
14
src/types/index.d.ts
vendored
|
@ -14,21 +14,21 @@ export interface ThemeConfig {
|
|||
color: {
|
||||
mode: 'light' | 'dark'
|
||||
light: {
|
||||
text: string
|
||||
backgroundTop: string
|
||||
backgroundEnd: string
|
||||
primary: string
|
||||
secondary: string
|
||||
background: string
|
||||
}
|
||||
dark: {
|
||||
text: string
|
||||
backgroundTop: string
|
||||
backgroundEnd: string
|
||||
primary: string
|
||||
secondary: string
|
||||
background: string
|
||||
}
|
||||
}
|
||||
|
||||
global: {
|
||||
locale: typeof langPath[number]
|
||||
moreLocale: typeof langPath[number][]
|
||||
font: string
|
||||
font: 'sans' | 'serif' | 'italic'
|
||||
}
|
||||
|
||||
comment?: {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue