DSH Toolbox

dsh-custom-theme

可自己改的 CSS 主题与背景图,网页版和桌面版都能用。

dsh-custom-theme 当前版本 0.9.0,最后发布 2026-11-13;安装命令与区间取自它自己的清单。

安装

dsh plugin add dsh-custom-theme 只往 profile 清单里写一行依赖,随后 pnpm 把它解到 $DSH_HOME/profiles/<名字>/node_modules。

dsh plugin --profile web add dsh-custom-theme

兼容区间

dsh-custom-theme 没有 engines.dsh 字段,启动时不会拿它和你的命令行版本做检查,装之前先看 npm 页。

两个插件打架时

它写主题 token,而 dsh-dream-skin 和 dsh-claude-style 也写同一批。补丁替换的是整行主题配置,最后加载的层生效,你自定义的 CSS 会被丢掉且不报错。

作者与仓库

作者 Sparrived,仓库 https://github.com/Sparrived/dsh-custom-theme,包页 https://www.npmjs.com/package/dsh-custom-theme。

装完会看到什么

它没有声明 dsh peer,在设置页渲染主题与背景选择;装完 dsh plugin add dsh-custom-theme,dsh --profile web --dump-config 能列出挂载它的 dsh-custom-theme 那一行。

它读写的文件

dsh-custom-theme 的清单里没有存储相关的 peer,所以能指认的文件只有 $DSH_HOME/profiles/<名字>/package.json 里那一行依赖;包说明里没写别的。

怎么卸掉

卸掉 dsh-custom-theme 用对称的那条命令 dsh plugin --profile web remove dsh-custom-theme。它的清单里没有存储相关 peer,不会往 $DSH_HOME 写东西,卸完没有残留。

常见问题

它和 dsh-syn-config 会打架吗?

就 dsh-custom-theme 而言,建议留 dsh-syn-config:配置只能有一个权威;开了同步,主题就要放在同步里,别两边都改。

dsh 升级之后会怎样?

dsh-custom-theme 没有声明版本区间:dsh --version 只能告诉你自己在跑哪个版本,没有任何检查会告诉你 dsh-custom-theme 配不配它。