feat: 更新主题配置与系统设置

This commit is contained in:
董宏凯 committed 2026-07-27 21:31:09 +08:00
1 parent 1555d5344b
commit 151ecceb85
12 files changed
+145 -27

No files matched your search

+5 -2
View File
@@ -422,8 +422,11 @@ themes through `PUT /api/system-settings/appearance`. Each theme stores a
safe six-digit `primary` colour, an optional primary-button `text_color`,
`light`/`dark` mode, name, enabled flag and sort order. The frontend derives
the rest of the visual tokens; the optional `overrides` object only exposes
eight interaction colours (`button_hover`, `selected_background`, `border`,
`muted`, `muted_text`, `destructive`, `brand_title`, `primary_foreground`) for exceptional brand requirements. A custom theme id
ten interaction colours (`button_hover`, `navigation_gradient_start`,
`navigation_gradient_end`, `selected_background`, `border`, `muted`,
`muted_text`, `destructive`, `brand_title`, `primary_foreground`) for
exceptional brand requirements. The two navigation values override the
automatically derived top-bar gradient. A custom theme id
must use the `custom-theme-` prefix. Disabled or removed custom themes cannot
remain the system default and automatically fall back to `light`.