跳到正文
dsh-market 浏览插件 GitHub EN

zhijun-dai/Solarized-dsh-theme

Solarized 与 Selenized 主题插件:向 DSH Web 主题运行时注册四套忠实色板。

Star 数 ★ 3 分类 主题与外观 收录于 2026-08-15 npm @yuquexianzhou/solarized-dsh-theme

安装

在 DeepSeek Harness 里通过 dsh-market 安装

dsh plugin --profile web add dshmarket

或使用命令行

dsh plugin --profile web add @yuquexianzhou/solarized-dsh-theme

装任何插件都等于在你的机器上跑第三方代码,权限和你本人一样大——能读你的文件、用你的凭据、访问网络。请先审阅源码,并尽量锁定 commit(github:owner/repo#sha)。

README

预览

使用

这是 DeepSeek Harness(dsh) 的双面主题插件。它把四套忠实色板注册进内置主题运行时,在 设置 → 通用 → Solarized / Selenized 主题 中作为可选皮肤出现。

Solarized 是 Ethan Schoonover 于 2011 年设计的精密配色方案:全部十六种颜色都定义在 CIELAB(L*a*b*) 色彩空间中,彼此保持精确固定的感知亮度关系——正是这套科学保证了深色与浅色 模式严格对称。Selenized 由 Jan Warchoł 于 2018 年完成,是"重新设计的 Solarized":修正了原色板的亮度缺陷, 同时保留其精神。

安装

从 GitHub 仓库安装:

dsh plugin --profile web add github:zhijun-dai/Solarized-dsh-theme

从本地检出安装(-w 标志必需——profile 目录是 pnpm workspace 根目录):

dsh plugin --profile web add -w /path/to/Solarized-dsh-theme

从 npm 安装:

dsh plugin --profile web add @yuquexianzhou/solarized-dsh-theme

之后重启 web 服务器:

dsh web

切换主题

打开 web 界面,进入 设置 → 通用,选择四套主题之一(或选 默认 跟随 内置外观)。选择按浏览器存储在 localStorage 中。

工作原理

令牌表由官方 Solarized 与 Selenized 色板生成(从不手改)。 scripts/gen-client.mjs 把每个颜色映射到 dsh 的 @deepseek-ai/dsh-client-ui-theme 样式表中的 --dsw-alias-* 令牌目录 (含 --shiki-* 语法色板与泄露的 --dsw-static-deepseek-* 静态色),并把 四套主题嵌入浏览器 bundle lib/client.js

node scripts/gen-client.mjs

💝 致谢

 

内容来自项目 README(GitHub)↗