dsh-web-ui
zhu1090093659
Plugin and skin collection for DeepSeek Harness (DSH) Web UI - task board, git graph, right-side panel, remote mobile UI, pet, live token stats, and skin center.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:i1j/dsh-krill-theme
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
v1.0.0 · 浮游主题(Krill)· 深海世界 + 浅海世界 双模式主题插件
磷虾(krill)是蓝鲸的餐桌,也是这个插件名字的来源——「浮游主题」让磷虾般的荧光粒子 在对话栏里静静漂游:一个插件覆盖 DSH Web 的深 / 亮两套外观,深色模式 = 深海世界, 亮色模式 = 浅海世界。纯客户端 CSS 插件,零依赖、零侵入——不改 dist、不碰组件逻辑, 一处生效全站。
| 深海 · 深色模式 | 浅海 · 亮色模式 |
|---|---|
![]() |
![]() |
深色 = 深海世界(对话栏 rgb(28,35,49),正文生物荧光软白);亮色 = 浅海世界(对话栏「阳光水面」全站最白,环境海沫灰蓝退后)。
对话栏的浮游生物动画背景(APNG 真彩,实拍 30 帧,无限循环):
GIF 兜底(256 色):assets/plankton-1.0.gif
body[data-ds-dark-theme] ↔ body:not([data-ds-dark-theme])),跟随系统外观自动切换。--dsw-alias-* / --dsw-specific-* / --shiki-* token,插件只需在 body 上重定义约 95+ 个 token 声明 = 一处生效全站(侧栏 / 对话栏 / dock / 浮层 / 菜单 / 设置全部跟随)。window.__DSH_DEEPSEA__.setPlankton() / CSS 变量三种方式,见「使用与调参」。prefers-reduced-motion 时自动退化为静态帧(无障碍友好)。# 在 profile 目录(如 ~/.dsh/profiles/web)执行:
dsh plugin --profile web add git+https://github.com/i1j/dsh-krill-theme.git
# Gitee 镜像(国内更快):
dsh plugin --profile web add git+https://gitee.com/elite1j/dsh-krill-theme.git
然后把 dsh-krill-theme 加入 profile 的 dsh.profile.bundles,重启 dsh web。
// <profile>/package.json
{
"dependencies": {
"dsh-krill-theme": "link:/path/to/dsh-krill-theme"
},
"dsh": {
"profile": {
"bundles": [ /* ...已有 bundle... */, "dsh-krill-theme" ]
}
}
}
然后在 profile 目录执行 pnpm install 并重启 dsh web。
仓库已打上 GitHub
dsh-plugin主题标签,可被社区插件搜索 (find_dsh_plugin/ dsh-recommend 榜单)发现。
对话栏(L2 阅读区)带一层极轻量的深海浮游生物动画(canvas 预渲染发光 sprite,
无依赖;洋流驱动:所有粒子同向漂移、流向/流速周期性变化、个体仅微小游动扰动)。
prefers-reduced-motion 时只渲染静态帧。
亮色(浅海)下粒子仍为深海荧光色板,不做主题切换(用户裁定,2026-08-15)。
| 参数 | CSS 变量 | 默认 | 说明 |
|---|---|---|---|
| count | --dsh-plankton-count |
90 | 粒子数 |
| opacity | --dsh-plankton-opacity |
0.32 | 整体透明度(低,不干扰阅读) |
| speed | --dsh-plankton-speed |
0.0007 | 洋流基准流速(视口比例/秒) |
| baseAngle | --dsh-plankton-angle |
-1.28 | 基准流向(弧度,-π/2=竖直向上,默认斜竖向向上) |
| swing | --dsh-plankton-swing |
0.18 | 流向周期摆动幅度(弧度) |
| swingPeriod | --dsh-plankton-swing-period |
55 | 流向摆动周期(秒) |
| flowPulse | --dsh-plankton-flow-pulse |
0.45 | 流速脉动深度(0..1,潮汐感) |
| flowPulsePeriod | --dsh-plankton-flow-pulse-period |
42 | 流速脉动周期(秒) |
| diveCountScale | --dsh-plankton-dive-count-scale |
1.6 | 深潜时光点倍率(额外小光点从底部涌出) |
| diveBrightness | --dsh-plankton-dive-brightness |
1.15 | 深潜时整体亮度倍率 |
| diveGlow | --dsh-plankton-dive-glow |
0.22 | 深潜时面板辉光强度(0 关闭;呼吸幅度温和) |
// 页面加载前(如注入脚本/书签)设置
window.__DSH_DEEPSEA_PLANKTON__ = { speed: 0.0004, count: 70 }
window.__DSH_DEEPSEA__.setPlankton({ speed: 0.001, baseAngle: -1.2 })
window.__DSH_DEEPSEA__.getPlankton()
:root { --dsh-plankton-speed: 0.0004; --dsh-plankton-angle: -1.2; }
关闭:window.__DSH_DEEPSEA_PLANKTON__ = false(加载前设置)。
生成期间(对话栏出现 Deep diving... 状态)浮游生物进入深潜模式:
diveCountScale 额外涌出更小更亮的光点(从底部边缘下方
升起,深潜结束即退场)。diveBrightness(默认 1.15),生物荧光更明显。diveGlow 控制(0 关闭)。
开销:预渲染渐变仅随 resize 重建,每帧只多 1 次 drawImage,可忽略。prefers-reduced-motion 时深潜动画同样退化为静态帧(无循环、无辉光脉动)。
pnpm install
pnpm typecheck # tsc --noEmit
pnpm bundle # tsdown → lib/index.js + lib/client.js
npx tsc -p tsconfig.build.json # lib/types/*.d.ts
src/client/deepsea.css —— 主题样式唯一事实源(分段注释,可裁剪;深色段 + 浅海段)src/client/index.ts —— client 入口(样式注入 + 浮游生物挂载 + 水母按钮)src/client/plankton.ts —— 浮游生物动画(画布粒子 + 深潜辉光)src/client/params-panel.ts —— 参数面板(青色亮调)src/client/icons.ts —— 水母按钮图标(定稿:净修长款)src/index.ts —— host 入口(空)tsdown.config.ts —— raw-css 虚拟插件:.css 内联为字符串并自注入assets/ —— README 配图与动画(深浅双模式截图 + 浮游生物动画 APNG / GIF)以「光的亮度」编码信息重要程度(深色)或「清澈度」编码(亮色,反演):
| 层级 | 界面元素 | 深色(深海)视觉编码 | 亮色(浅海)视觉编码 |
|---|---|---|---|
| L0 环境 | 全局背景 / 侧栏 / dock | 最暗深海蓝黑,近乎隐形 | 海沫灰蓝,退后 |
| L1 结构 | 面板 / 边框 / 代码块 | 略亮蓝灰,只勾勒轮廓 | 海沫白,只勾勒轮廓 |
| L2 阅读区 | 对话栏 | 深海军蓝,唯一焦点区 | 阳光水面,全站最白 |
| L3 正文 | LLM 回答 / 用户问题 | 生物荧光软白,最亮 | 深海军墨,最重 |
| L4 强调 | 链接 / 按钮 / 状态 / 行内代码 | 荧光色系局部点亮 | 浅海青(白底加深档) |
| L-1 降噪 | 时间戳 / 元信息 | 暗灰,视线自动跳过 | 浪沫灰,退后 |
document.head(幂等 style[data-plugin-css="dsh-krill-theme/DeepSeaTheme.css"] 守卫),晚于 dist token 样式表加载,同特异性下后写覆盖先写。wSkVaW_root / Sxvs8a_body / hHd-Xa_root,来自 @deepseek-ai/dsh-client-ui-conversation dist)。CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: dark-theme。