dsh-theme-presets
Manifest validSupported themes: Default, Nord, Dracula, Catppuccin, Tokyo Night, One Dark, Gruvbox, Solarized, GitHub, Everforest, Kanagawa, Rosé Pine
dsh-theme-presets
DSH Web GUI 的主题预设插件:在内置的 浅色 / 深色 / 跟随系统 之外,再叠一层配色家族。
安装
在 DSH 的插件安装界面里填:
https://github.com/MicroSharpAnt/dsh-theme-presets.git
也可以用 github:MicroSharpAnt/dsh-theme-presets 或
git+ssh://git@github.com/MicroSharpAnt/dsh-theme-presets.git。
不要用 git@github.com:... 这种 scp 语法:DSH 的预检会放行,但 pnpm 把它按
name@range 拆成「包名 git + 版本 github.com:...」,于是只装出一个悬空的
node_modules/git 软链,日志特征是 added 0,实际什么都没装上。
安装后无需构建:浏览器端产物 lib/client.js 随仓库提交,本包也没有任何运行时依赖。
仓库已从
DSH-simple-theme-plugin更名为dsh-theme-presets。旧地址仍会重定向, 但建议直接用上面的新地址。
从本地目录安装(开发时)
插件安装界面也接受绝对路径,指向工作副本即可,改完代码后重启 dsh web 生效。
用法
设置 → 通用 → 主题预设,点一个色块。
- 预设只决定配色家族,明暗仍由上一行的「外观」控制,两者正交。 选了 Nord 之后,「浅色」= Snow Storm,「深色」= Polar Night, 「跟随系统」则跟着系统在两者之间切。
- 每个色块显示当前明暗模式下该预设的底色 / 强调色 / 正文色,会随「外观」一起变。
- 默认 = DSH 自带配色,不做任何覆盖。
- 选择写进当前 Web profile 的
cordis.patch.yml中theme-presets.config.preset, 跨刷新、跨重启保留。
十一个预设
| id | 名称 | 浅色变体 | 深色变体 |
|---|---|---|---|
nord | Nord | Snow Storm | Polar Night |
dracula | Dracula | Alucard | Dracula |
catppuccin | Catppuccin | Latte | Mocha |
tokyonight | Tokyo Night | Day | Night |
onedark | One Dark | One Light | One Dark |
gruvbox | Gruvbox | Light | Dark |
solarized | Solarized | Light | Dark |
github | GitHub | Light | Dark |
everforest | Everforest | Light | Dark |
kanagawa | Kanagawa | Lotus | Wave |
rosepine | Rosé Pine | Dawn | Moon |
配色取自各主题自己发布的调色板,不是凭印象配的近似值。每个主题的 15 个语义锚点
(底色 / 表面 / 文字 / 边框 / 强调 / 四种状态)定义在 presets.mjs,其余 92 个
--dsw-alias-* token 由统一的 deriveTokens() 用 color-mix() 从这些锚点派生。
改配色
presets.mjs 是唯一数据源。
- 改
PRESETS里某个预设的light/dark锚点(各 15 个颜色),或整段新增一个预设; npm run build重新生成lib/client.js;- 浏览器刷新。
只调配色不需要重启;改了 host.js 或 src/plugin.mjs 则要重启 dsh web。
测试
npm test # 进程外的五个套件,不需要运行中的 dsh
node e2e-test.mjs # 可选:真实浏览器端到端(22 项),需要运行中的 dsh web + 本机 Chrome
e2e-test.mjs 结束时会恢复进入时的预设,不会改掉你的选择;
dsh 检出不在默认位置时用 DSH_CHECKOUT=/path/to/dsh 覆盖。
实现细节
首屏无闪烁的三层接管机制、宿主端加载的三条约束、为什么自带一份 Config schema, 以及各测试套件的覆盖范围:见 docs/internals.md。
Comments
Loading…
Similar plugins
by GptsApp
30 classic open-source theme palettes (Catppuccin, Nord, Tokyo Night, Gruvbox, Solarized, etc.) mapped to official ThemeService tokens for DeepSeek Harness, with a Style Settings panel for live color/
★ 4
JavaScript
Aug 16, 2026
dsh plugin --profile web add dsh-stylevault✦
No screenshots
by CoolTea001
Theme plugin for DSH with 34 built-in themes including Nord, One Dark and GitHub, with full light and dark mode support.
★ 5
↓ 487/wk
MIT
TypeScript
Oct 12, 2026
dsh plugin --profile web add dsh-cool-themeDracula theme plugin for the DSH Web GUI: the classic dark palette and the Soft variant registered into the native theme runtime, one-click switching with a persisted choice.
★ 0
dsh plugin --profile web add dsh-dracula-themeby LX-HMKK
A lightweight font and theme plugin for the DSH client: Latin/Chinese/code font pickers that list only installed families, and five official palettes (One Dark Pro, Dracula, Nord, GitHub, Catppuccin)
★ 3
↓ 233/wk
MIT
JavaScript
Oct 5, 2026
dsh plugin --profile web add @hmkk/dsh-appearance✦
No screenshots
by leemax1688
Kimetsu no Yaiba (Demon Slayer) skin for the DSH Web UI: a night-forest palette applied through the stable token layer, nine rotating wallpapers served by the plugin host, a flame band, and a two-butt
★ 0
JavaScript
Oct 28, 2026
dsh plugin --profile web add dsh-kimetsu-themeby Au1314
Theme studio for the DeepSeek Harness web GUI: eight switchable preset styles, accent and panel-translucency fine-tuning, host-side wallpapers painted on the first frame, and a one-click fix when the
★ 0
MIT
TypeScript
Sep 26, 2026
dsh plugin --profile web add dsh-style-hub


