Cerrda/dsh-cerrda-theme0

dsh-cerrda-theme

DSH 部署级静态 Web 插件:DSH Web GUI 的 cerrda 暗色重构主题(玫瑰/紫色 oklch 配色、液态玻璃输入栏、WebGL2 背景等)。

AI 分析

核心用途是为 DSH Web 界面提供一套极具现代感的暗色液态玻璃视觉主题。适合追求个性化、高颜值暗色界面的 Web 端用户。

包名
dsh-cerrda-theme
版本
0.1.0
许可证
MIT
最近更新
2026年8月17日

安装

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:Cerrda/dsh-cerrda-theme

dsh-cerrda-theme

DSH(DeepSeek Harness)Web GUI 的 cerrda 暗色主题——以部署级静态 web 插件发布, 免审批、进程重启后自动加载

  • rose/purple oklch 配色体系、Sora / Fraunces / JetBrains Mono 字体
  • Liquid Glass 输入栏 / hero 面板 / 回到底部按钮(SVG 位移滤镜)
  • Silk WebGL2 动态背景、CardSpotlight、Ripple、ShimmerBorder
  • CSS 液态玻璃:侧边栏、详情列、会话头部、工具卡片、浮层

安装

在 DSH 环境里执行(需要 pnpm 在 PATH 上):

dsh plugin --profile web add dsh-cerrda-theme

然后重启 DSH 进程(web profile 的 HMR 已禁用,bundle 层只在启动时应用)。 重启后主题自动生效,无需任何审批。

本地未发布版本(本仓库根目录就是包,在仓库根执行):

dsh plugin --profile web add .

卸载

dsh plugin --profile web remove dsh-cerrda-theme

重启后即恢复默认外观。

验证

dsh --profile web --dump-config | grep dsh-cerrda-theme

浏览器 DevTools 网络面板应出现 /plugins/dsh-cerrda-theme/client.js

工作原理

本包是一个 bundle 包(profile 层),与 @deepseek-ai/dsh-base@deepseek-ai/dsh-web-app 同一机制:

字段作用
dsh.bundle.patch: ./cordis.patch.ymldsh plugin add 后自动把本包追加进 dsh.profile.bundles 层栈,cordis.patch.yml 在启动时参与组合
dsh.client: { platform: "web" }声明浏览器 half,dsh-client-modules 把它收进 window.__DSH_BOOT__ 名录,服务 /plugins/dsh-cerrda-theme/client.js
main: lib/index.js空宿主 half(carrier 行)——让 loader 行激活,名录只收录已激活的行
exports["./client"]: lib/client.js浏览器 bundle:window.__ModuleLoader__.load({id, factory}) 注册,require("react") 取 React,CSS 以 data-plugin-css 风格 style 标签注入

开发

  • src/cerrda-theme-client.js —— 动态插件版原始 Client half 源码(单一事实来源)。
  • lib/client.js —— 静态 bundle,由 src/ 经固定变换生成(包一层 __ModuleLoader__.loadrequire("react")、手动 CSS 注入、末尾 return 改为 module.exports)。 变更源码后需重新生成 lib/client.js
  • docs/ —— 设计(plan)、动态恢复说明(restore)、分享说明(share)。

发布

npm publish

License

MIT