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

@ -25,7 +25,7 @@ site: {
// site description
description: 'Retypeset is a static blog theme...'
// use i18n title/subtitle/description from src/i18n/ui.ts instead of static ones above
i18nTitle: true // true, false
i18nTitle: true // light, dark, auto
// author name
author: 'radishzz'
// site url

View file

@ -25,7 +25,7 @@ site: {
// descripción del sitio
description: 'Retypeset is a static blog theme...'
// usar título/subtítulo/descripción en varios idiomas desde src/i18n/ui.ts en lugar de los estáticos anteriores
i18nTitle: true // true, false
i18nTitle: true // light, dark, auto
// nombre del autor
author: 'radishzz'
// url del sitio

View file

@ -25,7 +25,7 @@ site: {
// サイト説明
description: 'Retypeset is a static blog theme...'
// 上記の静的設定の代わりに src/i18n/ui.ts の多言語タイトル/サブタイトル/説明を使用
i18nTitle: true // true, false
i18nTitle: true // light, dark, auto
// 著者名
author: 'radishzz'
// サイトURL

View file

@ -41,7 +41,7 @@ site: {
```ts
color: {
// режим темы по умолчанию
mode: 'light' // light, dark
mode: 'light' // light, dark, auto
// светлый режим
light: {
// основной цвет

View file

@ -41,7 +41,7 @@ site: {
```ts
color: {
// 默認主題
mode: 'light' // light, dark
mode: 'light' // light, dark, auto
// 亮色模式
light: {
// 高亮顏色

View file

@ -41,7 +41,7 @@ site: {
```ts
color: {
// 默认主题
mode: 'light' // light, dark
mode: 'light' // light, dark, auto
// 亮色模式
light: {
// 高亮颜色