HoodyHuo/dsh-plugin-dracula-color-theme ↗★ 0

dsh-plugin-dracula-color-theme

为 DSH 界面应用 Dracula 经典暗黑主题 适合喜爱 Dracula 配色并希望统一 DSH 界面与代码高亮的用户。

包名
dsh-plugin-dracula-color-theme
兼容性
待验证
版本
0.1.0
许可证
MIT
最近更新
2026年9月21日

安装

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:HoodyHuo/dsh-plugin-dracula-color-theme

dsh-plugin-dracula-color-theme

Dracula 配色 for the DeepSeek Harness (DSH) Web GUI。第三方主题插件:注册 Dracula 色板、覆盖 alias + specific 两层 design token、接管 shiki 语法高亮,并带一个"接管系统主题偏好"开关。

English: a third-party DSH theme plugin that applies the official Dracula palette (backgrounds #191a21 / #21222c / #282a36 / #343746, selection #44475a, the seven accent colors), overrides the --dsw-alias-* and --dsw-specific-* token layers, retunes the shiki css-variables syntax palette, and keeps the theme active against the persisted built-in preference.

特性 / Features

  • 全量配色覆盖:背景按官方 VS Code 分层(标题栏 #191a21 → 侧栏/面板 #21222c → 主内容 #282a36 → 浮层 #343746),侧边栏、会话气泡、输入框、菜单等 specific 层表面单独映射。
  • 代码高亮:shiki css-variables 主题的 14 个变量按 Dracula 语法色重写(关键字粉、函数绿、常量紫、字符串黄、参数橙、diff 三色等)。
  • 守护机制:第三方主题 id 不会被持久化,宿主会在设置加载/推送/重连时把内置偏好(light/dark/system)重新采用回来。本插件以 body 内联 token(级联必胜)+ theme/change 监听 + 1.5s 轮询三层守护,任何回退都会被自动纠正。
  • 设置开关:设置 → General → "接管系统主题偏好(Dracula)"。关闭后仅每次启动应用一次,可正常使用内置浅/深色切换。状态存于 localStorage。

安装 / Install

dsh plugin --profile web add dsh-plugin-dracula-color-theme
# 或直接从 GitHub:
# dsh plugin --profile web add https://github.com/HoodyHuo/dsh-plugin-dracula-color-theme.git
# 或本地路径:
# dsh plugin --profile web add 

然后重启 dsh web(或在 patchReload: live 下刷新页面)。

更新 / Update

git -C  pull   # 以克隆方式使用时
# 或重新安装即更新:
dsh plugin --profile web add https://github.com/HoodyHuo/dsh-plugin-dracula-color-theme.git

各版本变更见 CHANGELOG.md。 See CHANGELOG.md for release notes.

卸载 / Uninstall

dsh plugin --profile web remove dsh-plugin-dracula-color-theme

License

MIT — HoodyHuo