跳到正文

nevertoday/dsh-theme-plugin

111最近提交 2026年8月15日

dsh-theme-plugin DSH 插件

该插件提供 49 种锚色 × 亮/暗 = 98 个主题,每个主题定义完整的 DSH 令牌词汇。它包含 12 个精选主题的快捷列表。主题以中国画为灵感,设计为纸、帘、印三层,所有 3136 个对比度断言均通过 WCAG AA。

如何安装 dsh-theme-plugin DSH 插件

dsh plugin --profile web add dsh-theme-plugin@latest

复制不会执行命令。安装 dsh-theme-plugin DSH 插件前请核对仓库和版本。

dsh-theme-plugin DSH 插件数据来源

dsh-theme-plugin DSH 插件快照日期:2026年8月16日

discovered

dsh-theme-plugin DSH 插件能做什么

  • 98 个主题覆盖全部 49 种锚色,均含亮色和暗色模式。
  • 每个主题设置所有 98 个 CSS 变量(89 个 `--dsw-*` + 9 个 `--shiki-token-*` 语法槽),实现完整的 UI 和代码高亮。
  • 所有 3136 个对比度断言(包括前景、语法和焦点元素)通过 WCAG AA。
  • 主题按纸类(素绢、熟宣、雪青、赭纸)和工作心情(6 个层级,如心流、禅定、攻坚)组织。
  • 选择器支持浏览、按心情筛选、按中文名/拼音搜索,以及仅查看精选主题。
  • 深层链接可通过 URL 哈希(如 #theme=zhuqing-light)实时切换主题。

dsh-theme-plugin DSH 插件适合哪些场景

  • 自定义 DSH 界面以匹配个人审美偏好。
  • 根据工作心情选择主题(例如,「心流」用于专注编码,「夜航」用于深夜工作)。
  • 使用 12 款精选主题快速获得设计师验证的配色方案。
  • 为开发环境应用中国传统色彩美学。

dsh-theme-plugin DSH 插件适合谁

  • 追求美观且具有文化底蕴主题的 DSH 用户。
  • 注重细节色彩设计和可访问性(WCAG AA)的开发者。
  • 在不同光照条件下工作、需要亮色/暗色主题切换的用户。

dsh-theme-plugin DSH 插件的限制

  • 仅适用于 DeepSeek Harness(DSH),不能作为独立主题或其他应用使用。
  • 记住的主题存储在 localStorage 中,而非 `settings.yaml`,因此不会跨设备同步。
  • 需要 DSH 已安装并运行 web 配置文件(`--profile web`)。
  • 该主题包处于早期开发阶段,未明确提及稳定版本号。

dsh-theme-plugin DSH 插件的仓库 README 摘录

以下文字摘自 dsh-theme-plugin DSH 插件的上游仓库 nevertoday/dsh-theme-plugin 的 README,版权归原作者,仅作引用。

Chinese traditional colors as a **DeepSeek Harness theme pack**. 49 anchor colors × light/dark = **98 themes**, each writing the full token vocabulary (98 tokens: 89 `--dsw-*` plus 9 `--shiki-token-*` syntax slots) and clearing WCAG AA on all 3136 contrast assertions. Twelve of the anchors are marked as a curated shortlist. 📖 [中文文档](./README.zh-CN.md) <p align="center"> <img src="https://raw.githubusercontent.com/nevertoday/dsh-theme-plugin/main/docs/img/theme-zhuqing-light.png" alt="竹青 light: raw-silk paper, a green wash on the bubble, and a send button in the anchor green itself" width="49%"> <img src="https://raw.githubusercontent.com/nevertoday/dsh-theme-plugin/main/docs/img/theme-zhuhong-dark.png" alt="朱红 dark: sized-xuan paper in warm ink, a deep maroon wash, and a vermilion send button" width="49%"> <br> <img src="https://raw.githubusercontent.com/nevertoday/dsh-theme-plugin/main/docs/img/theme-qunqing-light.png" alt="群青 light: violet-tinted silk paper, a blue wash, and a blue send button" width="49%"> <img src="https://raw.githubusercontent.com/nevertoday/dsh-theme-plugin/main/docs/img/theme-tenghuang-dark.png" alt="藤黄 dark: ochre paper in olive ink, an olive w

阅读完整 README仓库许可: MIT

dsh-theme-plugin DSH 插件常见问题

如何安装 DSH 主题插件?

在终端中运行 `npx -y @deepseek-ai/dsh plugin --profile web add dsh-theme-plugin@latest`。这将下载并注册插件到 'web' 配置文件。然后使用 `npx -y @deepseek-ai/dsh --profile web` 启动 DSH,打开提供的 URL。验证安装:在浏览器控制台看到 'registered 98/98 themes',或运行 `dsh --profile web --dump-config` 看到 'theme-zhongguo' 行。

如何更新主题插件?

再次运行相同的安装命令:`npx -y @deepseek-ai/dsh plugin --profile web add dsh-theme-plugin@latest`。这将从 npm 获取最新版本并替换现有版本。无需额外步骤。

如何卸载主题插件?

使用 DSH 插件移除命令:`dsh plugin --profile web remove dsh-theme-plugin`。这将从 'web' 配置文件中删除插件。主题将不再在设置中显示。

如何切换主题?

打开 DSH 的设置面板,进入 'Traditional Colors',从选择器中选取一个主题。它会立即生效。你也可以使用深层链接:在 URL 中添加哈希,例如 `#theme=zhuqing-light`,以切换到特定主题。哈希变化会实时生效,并覆盖之前记住的主题。

如何快速找到某个颜色主题?

在主题选择器中使用搜索框。它支持匹配中文名称、拼音、印章名称和心情。例如,输入 'lv' 就能找到所有十二个绿色主题,无需切换键盘。你也可以按工作心情筛选(例如选择 '凌晨 夜航' 获取暗色安静主题),或使用 '仅精选' 切换来查看十二个精选主题。