把 DSH Web GUI 换成水墨武侠观感的主题(取材自《影之刃零》):素笺/墨夜两套配色、主视觉作为画布、飘落的枫叶、细雨,以及输入框上方的配色切换控件。
安装
# GitHub 源码(首次需按提示配置 allowBuilds 构建授权后重试)
dsh plugin --profile web add github:reygreen1/dsh-theme-phantom-blade-zero
装任何插件都等于在你的机器上跑第三方代码,权限和你本人一样大——能读你的文件、用你的凭据、访问网络,工具审批管不到它。GitHub 来源的插件还会在安装时执行构建脚本——pnpm 默认拦截,所以安装可能停在 ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED 或 ERR_PNPM_IGNORED_BUILDS;dsh 会打印出需要添加的确切键名,把它加进该 profile 的 pnpm-workspace.yaml 的 allowBuilds 下,重跑一次即可装上。放行构建本身就是一次信任判断:请只安装可信来源,并尽量锁定 commit(github:owner/repo#sha)。
README
该插件的 README 只有英文版本。
影之刃零 (Phantom Blade Zero) theme bundle for the DeepSeek Harness Web GUI — two complete palettes (素笺 / 墨夜), the key art as the conversation canvas, the game's 「Ø」 blade mark, drifting maple leaves, fine rain and a palette switch.
Install
From this repository:
dsh plugin add github:reygreen1/dsh-theme-phantom-blade-zero
or from an installed checkout:
dsh plugin add /path/to/dsh-theme-phantom-blade-zero
Requires DSH >=0.2.2-rc.5 <0.3.0. After installing, enable the bundle in
Settings → Plugins and restart once; the theme appears in the palette
switch above the composer.
Note on bundled artwork
client.js embeds two key-art frames as WebP data URIs. They are included for
personal, non-commercial use with the theme; the rest of the artwork (the 「Ø」
mark, the icon, the preview, the rain tiles) is drawn here. If you redistribute
this bundle, keep the artwork out unless you hold the rights to it.
What it changes
- Two complete themes — 素笺 (Rice paper, light) and 墨夜 (Ink night, dark).
Each theme is one
ctx.theme.overrideTokenslayer covering 106 design tokens (about 100 semantic roles × their token names): app and layered surfaces, borders, all three text tiers, brand and brass accents, the whole button family, menus and menu headers, cards, code blocks and inline code, markdown tags/citations, scrollbars, document selection, toasts, tooltips, hovercards, bubbles, switch thumb, illustration colors, chart colors, skeletons, states, and the macOS sidebar glass (tint washes included). - One switch, two states — the palette pill calls
ctx.theme.setThemeand swaps the token layer together, so choosing a theme also moves the Appearance preference; atheme/changesubscription keeps the layer on whichever scheme the page is in, so editing Appearance in Settings retints the theme instead of leaving a light layer on a dark page. Nothing is stored per browser. - Canvas — the owner's local key art, embedded as one data URI and painted on the conversation column itself (the frame's direct child that holds the Conversation), so the print always sits above the window canvas and below every piece of content. The light palette washes it with a paper scrim, the dark palette with an ink scrim. Fine rain drifts over the frame in dark mode. The transcript region is forced transparent so its own surface cannot wash the print out a second time.
- Autumn drift (素笺 only) — eighteen maple leaves, generated from one seed
(even lane slots with jitter; size, opacity, fall period 18–40s, start delay,
depth blur and sway period drawn independently), fall through the frame on
their own lanes and negative delays. The glyph is
the platform's 🍁 (real veins, shading and stem — a hand-drawn silhouette
reads as a paper star at 20px), toned with
saturate/sepiaand a soft shadow. Each leaf nests two elements: the outer one falls at constant speed, the inner one sways and tumbles on an off-axisrotate3don a different period, which squashes the glyph as it turns edge-on. Far leaves carry a small blur for depth. Hidden in the ink theme and under reduced motion. - Rain (墨夜 only) — two generated sheets. Every drop is a tapered streak (SVG gradient along its own bounding box: transparent tail, bright head) and nearly vertical, with random length, width and opacity; the near sheet is long and fast with a slow gust on its opacity, the far sheet short and dim.
- Sidebar artwork — a second, portrait key-art frame for the left column
only, so it never matches the conversation canvas. It is painted on the
frame's direct child that holds this theme's sidebar mark (
.pbz-side), with a mode-aware scrim over it; the rule uses:has()plus!importantbecause the host column's own glass gradients are macOS-specific and would otherwise win. - Home canvas — a
conversation.hero.frameHOC layer behind the Conversation adds a mode-aware veil, an ink vignette, the 影 watermark and splatter over the column art; it carries no second copy of the photo, which would double-print at a different crop. Inside a session it fades to 45%. - Headline — the blank-session line becomes 「以身证道,以命寻心」. The
host headline lives in the
conversationlocale namespace, which refuses a second dictionary for an existing locale, so the theme adds a language variant of the active language (<base>-pbz, falling back to<base>, labelled 影之刃零) that overrides onlyhero.headline, and selects it. Picking another language in Settings turns the line off; disabling the plugin restores the previous language and removes the pack. - Brand — the sidebar mark (
sidebar.brand.mark, priority -10) and the brand name (sidebar.brand.name, priority -10) are replaced by the game's own logomark — the brushed 「Ø」 that the blade crosses in thePHANTOM BLADE Øwordmark — and a one-line brush lockup (影之刃零 PHANTOM BLADE ZERO). The host brand row is a single fixed-height line, so a stacked two-line lockup was squeezed and clipped. The blank-session hero mark uses the same emblem with a glow, a glint, and drifting embers. - Composer — a self-sized status chip in the dock above the composer (seal, title, wordmark, live palette, 残心 dot) plus a crimson hairline on the composer card that intensifies into an inset ring on focus. A full-width strip read as loose text floating over the column, because the dock is wider than the composer card.
- Palette pill — the composer dock and the new-session row carry the same control: seal, theme name, then 素笺 / 墨夜 as two labelled chips (the earlier 11px dots were unreadable and got clipped by the dock). The switch writes the Appearance preference (so it persists through the Host settings), and disabling the plugin leaves the last chosen scheme in place.
All motion is CSS and turns off under prefers-reduced-motion. Every
registered resource is returned from ctx.effect, so disabling the plugin
restores the stock look immediately.
Files
| File | Role |
|---|---|
index.js |
Host half; registers nothing. |
client.js |
Browser half: wallpaper, palette layer, canvas stylesheet, seats, HUD, pills. |
cordis.patch.yml |
Inserts the phantom-blade-zero row. |
locale/{en,zh}.json |
Plugin Manager title, description, and detail document. |
icon.svg |
Blade-and-seal icon. |
docs/ |
One-image detail documents. |
Development notes
Hand-written browser bundle (no build step): the module registers a lazy
factory with window.__ModuleLoader__.load, requires only react, and returns
a plugin with inject: ['slots', 'theme', 'locale']. Every registered resource
is returned from ctx.effect.
Wallpaper: the key art is supplied by the owner for personal use and
embedded as a WebP data URI in client.js (WALLPAPER); it is not a
redistributable asset of this bundle and must not be republished with it. The
rest of the artwork (emblem, icon, preview, rain tile) is drawn from scratch.
Headline: the language variant is an API-level workaround for host copy, not a DOM patch. It writes a locale preference while enabled; the effect restores the previous language and removes both the dictionary and the language definition on dispose.
The status strip deliberately rides conversation.input.dock rather than
shell.bottom, which already holds the inspector panel.
Inline data URIs: every embedded artwork must close as
'url("data:image/webp;base64,…")'. A dropped closing " still parses as
JavaScript, but the resulting CSS url( string is unterminated and Chrome
silently discards the whole stylesheet after the rule that contains it — the
theme then degrades to tokens only (no wallpaper, no seats, no chip). This is
exactly the failure that shipped with the sidebar artwork; url(" and ")
counts in the generated stylesheet must match.
Emblem colors ride --pbz-* variables so the light palette darkens the steel
instead of forking the artwork. A token renamed in a later DSH release degrades
appearance only.
链接
同类插件
elysia395/dsh-wallpaper-engine★ 8176
前置要求:DeepSeek Harness 0.1.5-rc.1+(DSH Desktop ≥ 2.0.7)且 dsh-better-sidebar ≥ 0.19.0,安装或更新本插件前请先更新两者。把本机 Wallpaper Engine 的 Video/Web 壁纸实时播放到聊天界面后方,Scene 壁纸由内置渲染器输出完整场景帧,支持内容分级/类型过滤、自定义壁纸上传与 iOS 液态玻璃设置窗口。
Small-tailqwq/dsh-deep-whale#maid-atelier★ 3150
DSH Web 鲸鱼娘皮肤系列(深海女仆工坊 maid-atelier)。
Nwflower/dsh-claude-style★ 715
为 DSH Web GUI 复刻 Claude Code Desktop 的视觉与交互——象牙白/暖黑双画布、陶烬橙强调色、三字体排版、权限分段控件与品牌切换,以 CSS 覆盖与客户端 DOM override 实现。
kingOfSoySauce/dsh-liang-skin★ 406
自适应推理等级滑块皮肤,将当前模型可用档位映射到 0–30 视觉强度,并同步人物、背景和界面配色。
d-dev0101/open-sea-skin★ 403
实时 WebGPU 海洋皮肤,可快捷调节波浪、日光、玻璃不透明度与自动昼夜循环。
webkubor/dsh-bloom-theme★ 321
Bloom 莫兰迪主题:十五款变体(黛蓝 mist、朱砂 cinnabar、桃夭 petal、天青 ripple、竹青 sage、赭石 stone、青金 lapis、琥珀 amber、落霞 aurora、青莲 lavender、草色 mint、橙黄 tangerine、银红 silverrose、粉霞 dawn、轻黄 osmanthus)基于 OKLCH 调色,明暗切换不跳变;顶栏切换器精选 12 套并按色系相邻排列,每套配色右侧标出处诗句,30 组「主色 + 底色」实测全部达到 WCAG AA。
社区评论
评论公开保存在 GitHub Discussions。加载评论会连接 GitHub 和 Giscus;发表内容需要 GitHub 账号。