dsh-web
zhu1090093659/dsh-webDeepSeek Harness(DSH)Web 插件聚合生态包 · 一切皆插件,创意工坊分发(dsh-market.com)
Claude warm-ivory appearance for DeepSeek Harness: color tokens + serif typography, extracted verbatim from dsh-animation-optimization. Appearance only — no behavioral layer, so it coexists with dsh-smooth-stream.
Claude's warm-ivory appearance for DeepSeek Harness — color tokens plus serif typography, and nothing else. Appearance only, so it coexists with
dsh-smooth-stream.给 DSH 换上 Claude 的暖米色配色 + 衬线字体,只做外观、不含任何行为层, 因此可以和
dsh-smooth-stream(流式渲染)同时开启。
拥有:
--dsw-alias-*全套配色 token(light + dark 两份)与衬线字体层(--dsw-font-*)。 冲突时:与dsh-ui-harmonizer同写 alias token —— 本插件是完整皮肤,以本插件为准;harmonizer 只应保留「官方缺陷归一」那部分。 回滚:删 profilecordis.patch.yml里 idclaude-theme的 insert + 重启应用。
COLOR_CSS 覆盖一整套 --dsw-alias-* token,含 light 与 [data-ds-dark-theme] 两套。FONT_CSS 用 SERIF(Anthropic Serif → Tiempos → Georgia → 宋体)作用于标题 / 路径面包屑 / 引用 / headline。BADGE_CSS(自有修补):修「推荐」徽章橙底橙字不可见。MenuSurface 的 .material(var(--dsw-menu-surface-fill) 半透明填充 +
var(--dsw-menu-backdrop-filter) 毛玻璃),主题不去动这两个 token,菜单保持官方默认外观。body:not([data-dsh-colors=off]) / body:not([data-dsh-font=off]) 前缀只是沿用上游写法,
body 上不会出现这两个 off 属性,所以装了就是全量生效,没有开关(手动给 body 加上 data-dsh-colors=off
可临时关掉配色层,用于排查)。apply() 先删掉所有 style[data-dsh-claude-theme] 再重新写入当前 CSS
(不是「标签已存在就 return」—— 那样在热重载下会跑成「新 JS + 旧 CSS」)。未包含:BASE_CSS(行为层:流式揭示 / 视口跟随 / 展开收起)、logo 层(星爆头像,靠 DOM 替换实现)、三个设置开关。
两种装法任选其一(都会往 profile 的 dependencies 加一项,再配一行 insert):
# ① npm(快,走 registry)
dsh plugin --profile <profile> add dsh-claude-theme
# ② GitHub(源码直装,跟随 main 分支)
dsh plugin --profile <profile> add github:jipika/dsh-claude-theme
# ~/.dsh/profiles/<profile>/cordis.patch.yml
- insert:
- id: claude-theme
name: dsh-claude-theme
desktop profile 被 Electron 独占(CLI 子命令会被拒),需手改 package.json(dependencies 加
github:jipika/dsh-claude-theme)+ pnpm install,再 insert 同一行。
改 lib/client.js 后让页面重新加载:DSH 0.1.7 起 host 对 client.js 是磁盘热读,重新打开页面(一次新导航)
就会加载新代码;若界面没变化,再重启 host 进程(⌘Q 重开应用)。注意 ⌘R 不触发新导航,改了等于没改。
删掉 cordis.patch.yml 里那行 insert(或给该行加 disabled: true)→ 重启:配色与字体全部恢复官方样式。
lib/client.js 里的 SERIF / COLOR_CSS / FONT_CSS 是逐字切片
(grep -n 定位锚点 → 按行号取值 → 与源字符串逐字比对校验)自
kelemiao/dsh-animation-optimization
(MIT)的 client half 第 53 / 199-377 / 533-556 行;切片脚本是一次性工具,未随本仓库分发。
与源唯一的差异:COLOR_CSS 里 --dsw-specific-menu 的 light / dark 两行已删除 ——
那是菜单类浮层(模型选择 / 右键菜单)的表面色,按用户要求交回官方默认,本主题不覆盖它。
上游包是 MIT,本插件因此沿用 MIT 并在此声明出处。上游更新后行号会漂移,重新切片前请先核对锚点。
FONT_CSS 命中官方 CSS Module 的哈希类(如 .wSkVaW_crumbCurrent、.pXSMma_headline),
前端重建后选择器可能失效 —— 届时改这部分选择器即可。dsh-smooth-stream。MIT © 2026 jipika(CSS 部分来自 MIT 许可的 dsh-animation-optimization,见上)