- Home
- Plugins
- Themes & Appearance
- dsh-sylvan-appearance
dsh-sylvan-appearance
tangyixiao/dsh-sylvan-appearance
Native appearance settings for DeepSeek Harness with the Sylvan theme, a live theme editor and JSON import/export. Verified on DSH Web 0.2.2-rc.3 and the Desktop 0.2.2-rc.5 bundled host.
Install
dsh plugin --profile web add github:tangyixiao/dsh-sylvan-appearanceREADME
DSH 外观 · Sylvan
在 DeepSeek Harness 的「设置 → 外观」切换系统、浅色、深色和 Sylvan · 松雨。复制一个主题即可自定义配色、字体和代码高亮。右侧的对话预览即时更新,点击「保存并应用」将主题应用到整个客户端。
安装
在 DSH Desktop 的「插件」里从 npm 添加 dsh-sylvan-appearance。在 DSH Web 使用 CLI 安装。
dsh plugin --profile web add dsh-sylvan-appearance
也可下载 GitHub Release 的 .tgz,用绝对路径替换安装命令中的包名。安装后打开「设置 → 外观」。Web 和 Desktop 各自使用所在 DSH profile 的主题设置。通过「导出当前主题」获取 .dsh-theme.json,可以在另一个 profile 里导入、预览并保存。导入会创建一个新主题。首次切换时,插件记住所用的原主题,可在同一页恢复。
已验证 DeepSeek Harness Web 0.2.2-rc.3 和 Desktop 0.2.2-rc.5。两端使用同一安装包。
松雨的界面沿用近黑底和松绿调色板,代码颜色映射自 VS Code 现代深色 的高亮规则。DSH 的同一类高亮令牌共用一个颜色。字体使用本机字体列表,缺少首选字体时按列表顺序回退。
从其他插件贡献主题
主题插件在客户端清单的 dsh.client.inject 中声明 dsh-sylvan-appearance,然后在客户端入口注入 Cordis 服务 sylvanAppearanceThemes。注册返回一个注销函数,可直接交给 ctx.effect 在插件卸载时释放。使用带包名前缀的稳定 ID。
const inject = ['sylvanAppearanceThemes']
function apply(ctx) {
ctx.effect(() => ctx.sylvanAppearanceThemes.register('example:evergreen', {
name: '长青',
colorScheme: 'dark',
tokens: {
'--dsw-alias-bg-base': '#0f0f11',
'--dsw-alias-label-primary': '#e3e4e6',
'--dsw-alias-brand-primary': '#4fa66b',
'--shiki-token-keyword': '#c586c0',
},
}))
}
主题接受浅色或深色底色、六位十六进制颜色和逗号分隔的字体名称。支持的配色项见 松雨预设。打开「外观」即可切换至插件贡献的主题,也可以把它复制成独立的自定义版本。
运行 npm run build 重新生成客户端入口。运行 npm pack 生成安装包。
软件采用 MIT 许可证。
Related plugins
dsh-wallpaper-engine
elysia395/dsh-wallpaper-engine
dsh-deep-whale (maid-atelier)
small-tailqwq/dsh-deep-whale
dsh-claude-style
nwflower/dsh-claude-style
dsh-deep-whale
small-tailqwq/dsh-deep-whale