dsh-matrix-rain
awa-123-cw
DeepSeek Harness WebUI 动效美化插件:聊天背景黑客帝国代码雨,雨字内容 = 当前会话 AI 思考链(流式实时),设置页调色盘 + 全套 DIY
PROJECT TOPICS
PROJECT README
freestyle-dsh-theme 是 DeepSeek Harness (DSH) 的 Web GUI 主题体验插件:基于 OKLCH 色彩模型,提供「主题提案」与「主题设计器」两大能力,让用户一键换肤、自由调色。作为常驻 Web 插件热插拔安装,跨重启持久化。
|
主题提案 · 6 套风格预设 + 智能提案,点卡片即应用 |
主题设计器 · 主色 / 副色 / 面板 三通道独立调节 |
以下为软件内真实设置页面截图(设置 → 通用 → 主题 → 自定义…)。
主题提案 · 6 套风格预设 + 8 套智能提案,点卡片即应用
主题设计器 · 主色 / 副色 / 面板独立通道 + 实时预览 + 通道锁定 + JSON 导入导出
每套主题由三个通道的 OKLCH 值定义,映射到 DSH 的完整 --dsw-alias-* / --dsw-specific-* 设计令牌(约 85 个,明暗两套),实现全覆盖换肤——背景层级、文字层级、边框、按钮、交互态、状态色、侧边栏等全部随主题切换。
| 通道 | 含义 | 映射到 |
|---|---|---|
主色 th / c1 / l1 |
品牌强调色 | brand-primary、按钮、交互态 |
副色 th2 / c2 / l2 |
次要强调色 | 侧边栏选中态 |
面板 ths / sc / bg |
背景表面色 | 各级背景层级 |
文字 tx |
正文墨色 | label-primary 等 |
侧边栏 sb |
左侧栏明度 | sidebar-fill(默认与主区一体) |
本插件为「双面」Web 插件:Host 半(AI 命名路由)运行在 DSH 进程,Client 半(主题 UI)加载到浏览器。
git clone https://github.com/suzike/freestyle-dsh-theme.git
cd freestyle-dsh-theme
pnpm install
pnpm build
构建产物:lib/index.js(Host 半)、lib/client.js(浏览器半)。
在 ~/.dsh/profiles/<profile>/package.json 的 dependencies 里加入:
{
"dependencies": {
"@linxin666/freestyle-dsh-theme": "link:../path/to/freestyle-dsh-theme"
}
}
在 ~/.dsh/profiles/<profile>/cordis.patch.yml 末尾追加:
- insert:
- id: theme
name: '@linxin666/freestyle-dsh-theme'
然后:
cd ~/.dsh/profiles/<profile>
pnpm install
重启 DeepSeek Harness(或 dsh web 进程),刷新浏览器即可。
freestyle-dsh-theme/
├── src/
│ ├── index.ts # Host 半:/api/freestyle-dsh-theme/name AI 命名路由
│ └── client/
│ └── index.ts # Client 半:主题提案 + 设计器 UI
├── shared/ # 客户端打包预设(tsdown)
├── cordis.patch.yml # 插件行注册
├── package.json # 包声明(dsh.client / dsh.bundle)
├── tsdown.config.ts # 构建配置
├── docs/images/ # 可视化配图
└── README.md
本项目遵循 语义化版本 SemVer。每个发布版本打一个 git tag:
git tag v0.1.0
git push --tags
版本历史见 Releases。
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。