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 <path-to-this-repo>
然后重启 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
No comments yet. Be the first to write one.