dsh-deepsea-theme
Deep Sea (深海世界) dark theme & color scheme as a standalone dsh client plugin — extracted from the deepseek-harness fork's DeepSeaTheme block (conversation patch, 2026-08-13)
安装
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:i1j/dsh-deepsea-theme说明文档
阅读完整 README ↗dsh-deepsea-theme
Deep Sea (深海世界) 深色主题与配色 —— 从 deepseek-harness fork 的
conversation 补丁(2026-08-13)中独立出来的纯客户端 CSS 插件。
迁移自 fork 的 DeepSeaTheme 覆盖层(约 95 个 token 声明)+ 配套的 组件级深色规则(对话栏 L2 背景、markdown 正文 L3/L4 颜色、侧栏降噪)+ fork 的 markdown 配色(ChatGPT 风,双模式生效)。
设计逻辑
以"光的亮度"编码信息重要程度(越重要越亮):
| 层级 | 界面元素 | 视觉编码 |
|---|---|---|
| L0 环境 | 全局背景 / 侧栏 / dock | 最暗深海蓝黑(近乎隐形) |
| L1 结构 | 面板 / 边框 / 代码块 | 略亮蓝灰,只勾勒轮廓 |
| L2 阅读区 | 对话栏 | 深海军蓝,唯一焦点区 |
| L3 正文 | LLM 回答 / 用户问题 | 生物荧光软白,最亮 |
| L4 强调 | 链接 / 按钮 / 状态 / 行内代码 | 荧光色系局部点亮 |
| L-1 降噪 | 时间戳 / 元信息 | 暗灰,视线自动跳过 |
深色模式专用;亮色模式不动(除末尾"markdown 配色"段双模式生效)。
机制
- 所有组件都读取
--dsw-alias-*/--dsw-specific-*/--shiki-*token, 因此在body[data-ds-dark-theme]下重定义 token = 一处生效全站。 - 插件样式在 bundle 求值时注入
document.head(幂等style[data-plugin-css="dsh-deepsea-theme/DeepSeaTheme.css"]守卫), 晚于 dist token 样式表加载,同特异性下后写覆盖先写。 - 升级换代的复查面:仅 token 键名 + 4 个组件哈希类名
(
wSkVaW_root/Sxvs8a_body/hHd-Xa_root,来自@deepseek-ai/dsh-client-ui-conversationdist)。
安装
社区安装(git)
# 在 profile 目录(如 ~/.dsh/profiles/web)执行:
dsh plugin --profile web add git+https://github.com/i1j/dsh-deepsea-theme.git
# Gitee 镜像:
dsh plugin --profile web add git+https://gitee.com/elite1j/dsh-deepsea-theme.git
然后把 dsh-deepsea-theme 加入 profile 的 dsh.profile.bundles,重启 dsh web。
profile 手动方式
//
/package.json
{
"dependencies": {
"dsh-deepsea-theme": "link:/path/to/dsh-deepsea-theme"
},
"dsh": {
"profile": {
"bundles": [ /* ...已有 bundle... */, "dsh-deepsea-theme" ]
}
}
}
然后在 profile 目录执行 pnpm install 并重启 dsh web。
仓库已打上 GitHub
dsh-plugin主题标签,可被社区插件搜索 (find_dsh_plugin/ dsh-recommend 榜单)发现。