返回目录
界面增强 插件

dsh-dracula

lzylyd/dsh-dracula

A third-party Dracula dark theme for the DeepSeek Harness web UI

Stars
1
Forks
0
Issues
0
更新
4 天前

PROJECT TOPICS

项目标签

INSTALL REFERENCE

安装参考

未验证
dsh plugin --profile web add github:lzylyd/dsh-dracula

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

PROJECT README

README

dsh-dracula

A third-party Dracula dark theme for the DeepSeek Harness web UI. Dark-only, covers the full --dsw-alias-* layer plus --shiki-* syntax highlighting, and ships a "Themes" settings page for switching.

Quick read (for agents)

  • What it is: a DSH bundle npm package that registers a third-party theme (dracula) through the client theme service ctx.theme.register(...), recolouring the whole web UI by overriding --dsw-alias-* and --shiki-* CSS tokens.
  • Shape: one package is both the bundle and the client plugin — package.json declares dsh.bundle.patch (→ cordis.patch.yml) and dsh.client (→ ./client).
  • Files: src/client.tsx (theme registration + settings page + persistence), src/index.ts (empty host half), cordis.patch.yml (one self-referential row dsh-dracula).
  • Persistence: localStorage key dsh.dracula-theme.preference mirrors every theme/change; restores on startup, defaults to dracula on first run. Guarded against quota/privacy/parse failures.
  • Build: pnpm install && pnpm build (tsdown → lib/client.js, lib/index.js).
  • Install on another DSH: dsh plugin --profile web add dsh-dracula.

Install / use

dsh plugin --profile web add dsh-dracula
dsh web

Then open Settings → Themes to switch between Light / Dark / System / Dracula.

Develop

pnpm install
pnpm build      # or: pnpm watch

Publish

Tag a v* release; GitHub Actions runs pnpm install && pnpm build && pnpm publish using the NPM_TOKEN secret.

Design record

See ../doc/CONTEXT.md (glossary) and ../doc/adr/0001-dracula-theme-persistence.md (persistence decision).

CLASSIFICATION EVIDENCE

分类依据

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

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