Solarized-dsh-theme

by zhijun-dai

主题与外观github 检测到 manifest package.json#dsh 社区精选 收录于 08-16

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

Solarized and Selenized theme plugin: four faithful palettes registered with the DSH Web theme runtime.

安装

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

GitHub 源码安装:首次需按提示配置 allowBuilds 构建授权后重试

安装与环境配置指引、插件开发教程见 DSH 中文社区文档 ↗

安装即在你的机器上以你的权限运行第三方代码——它可读写文件、使用凭据、访问网络,DSH 的工具审批不会为插件代码加沙箱。「检测到 manifest」仅代表发现 dsh.bundle / dsh.plugin 清单,不构成兼容性或安全审查;安装前请审阅源码,不熟悉的插件先在不含密钥的环境试用。

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: https://github.com/zhijun-dai/Solarized-dsh-theme/blob/main/README.zh.md ↗