This website works better with JavaScript
Página Principal
Explorar
Ajuda
Registe-se
Iniciar Sessão
lio
/
zcode
Vigiar
1
Colocar Estrela
0
Fork
0
Ficheiros
Problemas
0
Pull Requests
0
Wiki
Ramo:
main
Ramos
Etiquetas
main
zcode
/
docs
/
ui
/
default-theme.md
default-theme.md
377 B
Link permanente
Histórico
Em bruto
默认主题
当前策略
应用首次启动且本地没有
zcode-theme
持久化值时,默认主题为
dark
。
一旦用户主动切换主题,后续仍然优先读取本地保存值,不会被默认值覆盖。
实现位置
Zustand store 默认值:
packages/ui/src/store/index.ts
旧
useTheme()
hook 兜底值:
packages/ui/src/useTheme.ts