返回目录
界面增强 插件

dsh-plugin-dracula-color-theme

HoodyHuo/dsh-plugin-dracula-color-theme

DSH (DeepSeek Harness) Web GUI 主题插件:官方 Dracula 配色,覆盖 alias + specific 两层 design token 与 shiki 语法高亮,并可接管系统主题偏好。Official Dracula theme (draculatheme.com) for the DeepSeek Harness web GUI.

Stars
0
Forks
0
Issues
0
更新
9 天前

PROJECT TOPICS

项目标签

INSTALL REFERENCE

安装参考

未验证
dsh plugin --profile web add github:HoodyHuo/dsh-plugin-dracula-color-theme

该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。

PROJECT README

README

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

CLASSIFICATION EVIDENCE

分类依据

项目类型插件
功能分类界面增强
规则置信度高

系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: color-theme、dracula-theme、theme。