feat: add theme toggle for light/dark modes

This commit is contained in:
radishzzz 2025-01-20 10:36:14 +00:00
parent d148649454
commit d599b3e26d
9 changed files with 125 additions and 28 deletions

14
src/types/index.d.ts vendored
View file

@ -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?: {