DeepSeek Harness Web GUI 的 Catppuccin 主题插件:Latte / Frappé / Macchiato / Mocha 四种主题一键切换,内置可开关的玻璃质感(Glassmorphism)
在 DeepSeek Harness 终端运行:
dsh plugin --profile web add NoNameLeGo/dsh-catppuccin
中文 | English
DeepSeek Harness 的
Catppuccin 主题插件——一个包同时适配
Web GUI(dsh web)、DSH Desktop 与 dsh-TUI 终端:Web / 桌面端做全界面换色与玻璃质感,
TUI 端自动同步四套官方主题色板。
它内置 Catppuccin 的四个主题——Latte、Frappé、Macchiato、Mocha——
把整个界面的配色都换成对应的 Catppuccin 色板;并在 设置 → 常规 → 外观
下方提供一行 Catppuccin 快捷切换,选择会自动保存、重启自动恢复。
同时内置一套可开关的玻璃质感(Glassmorphism)皮肤:顶栏、侧边栏、
输入框、统计行、轨迹视图、聊天气泡、新会话按钮都变成磨砂玻璃卡片,
模糊度、磨砂度、背景亮度均可自由调节,玻璃颜色自动跟随当前
Catppuccin 主题。
~/.dsh-tui/themes/,见安装 · dsh-TUI四个主题在 DeepSeek Harness 中的实际效果(截图来自本地 GUI,文首大图为四主题斜切合成):
🌻 Latte(浅色)
🪴 Frappé(深色)
🌺 Macchiato(深色)
🌿 Mocha(深色)
同一会话在浅色(Latte)与深色(Mocha)下的磨砂玻璃效果:顶栏、侧边栏、
聊天气泡、输入框与统计行都是玻璃卡片,消息滚过页面边缘时被柔化,
背景为主题底色的纯色(截图来自本地 GUI):
🌻 Latte(浅色玻璃)
🌿 Mocha(深色玻璃)
dsh plugin --profile web add @nonamelego/dsh-catppuccin
装完重启 dsh web 即可,dsh plugin 会自动把它加进 profile 的 bundles。
其他 profile 把命令里的 web 换成对应名字即可(如 headless)。
DSH Desktop:桌面版默认激活的 profile 就叫 desktop,把命令里的 web
换成 desktop 即可:
dsh plugin --profile desktop add @nonamelego/dsh-catppuccin
在桌面的 DSH 终端里运行即可(dsh plugin 默认作用于当前激活的 profile,
若在托盘里选了别的 profile 就换成那个名字),装完重启 DSH Desktop 生效。
从仓库安装的方式同理:dsh plugin --profile desktop add https://github.com/NoNameLeGo/dsh-catppuccin-theme。
dsh plugin --profile web add https://github.com/NoNameLeGo/dsh-catppuccin-theme
从 git 安装时 pnpm 可能要求允许构建脚本——按 pnpm 的提示把对应包加进 profilepnpm-workspace.yaml 的 allowBuilds 后重跑一次即可。
与 Web GUI 插件同一个包。用标准的插件安装命令装进 dsh-tui profile:
dsh plugin --profile dsh-tui add @nonamelego/dsh-catppuccin
从仓库安装同理(npm 版尚未发版时可用 git 形式,效果一致):
dsh plugin --profile dsh-tui add https://github.com/NoNameLeGo/dsh-catppuccin-theme
包里带一个只做主题同步的小插件行(dsh-catppuccin-tui-themes,不依赖任何服务):dsh-TUI 启动时自动把四套主题 JSON 同步到 ~/.dsh-tui/themes/,之后升级包即同步新版配色。装完启动 dsh --profile dsh-tui,在 dsh-TUI 里用 /theme 选择 Catppuccin Latte / Frappé / Macchiato / Mocha,或直接 /theme catppuccin-mocha 切换(选择会持久化,下次启动自动恢复)。
💡 已为 Web GUI 装过本插件、同时用 dsh-TUI 的话,无需重复安装:Web 端每次
启动会自动同步主题到~/.dsh-tui/themes/(仅当该目录已存在)。
📁 不想装包也可手动复制:把
themes/*.json拷进~/.dsh-tui/themes/
(Windows:%USERPROFILE%\.dsh-tui\themes\),只是不随版本自动更新。
⚠️
catppuccin-*.json归本插件所有、同步时会被覆盖;想自定义请改名另存。
💡 TUI 主题只管 TUI 内部配色,终端背景由你的终端决定——建议也配上对应
风味的 Catppuccin(见 Catppuccin ports 列表),观感最一致。
http://127.0.0.1:3080);在 DSH Desktop 中则直接打开桌面应用即可。在 设置 → 常规 的 Catppuccin 主题 正下方找到 玻璃质感 行:
玻璃配色自动跟随当前主题,切换 Latte / Frappé / Macchiato / Mocha 时即时
变色;所有设置跨重启自动恢复。
在 设置 → 常规 的 玻璃质感 正下方找到 检查 Catppuccin 插件更新 行:
web)。link: / file: / git)时不显示 npm 升级git pull 或重新构建。latest 标签;预发布版同时跟随 beta(升级命令@beta)。离线或网络失败时显示原因并可重试。玻璃拟态是一种视觉风格:界面面板像一片磨砂玻璃——半透明填充、
背景模糊(backdrop-filter: blur())和玻璃细节(描边、内高光、柔和投影),
透过它能看到并柔化背后的内容。
本插件的具体效果:
pnpm install
pnpm typecheck # tsc --noEmit 类型检查
pnpm test # vitest 跑配色表 / 契约 / e2e 覆盖测试
pnpm build # tsdown 构建 -> lib/index.js(服务端)+ lib/client.js(浏览器)
配色表由生成器脚本产出——修改 scripts/generate-palettes.mjs 后重跑
(--pin <sha> 可把上游 commit SHA 写进 palettes.ts 头部,见docs/plugin-improvements.md 的 L 项):
node scripts/generate-palettes.mjs [--pin <upstream-sha>]
对外 API(./client、./tui-themes 子路径导出)的 typedoc 文档生成到docs/api/(GitHub Pages 发布交给 maintainer):
pnpm docs:api
贡献指南见 CONTRIBUTING.md;状态契约的版本迁移约定见
docs/state-migrations.md。
克隆到本地后,把包链接进 profile 并加入 bundles(路径换成你自己的):
pnpm --dir C:\Users\LeGo\.dsh\profiles\web add link:D:\Vibe-Coding\dsh-catppuccin
再把 @nonamelego/dsh-catppuccin 加进 profile package.json 的dsh.profile.bundles,重启 dsh web。DSH Desktop 用~/.dsh/profiles/desktop 对应路径。
catppuccin namespace,存于dsh web、dsh web --port 自定义端口,catppuccin-state.json 会在首次dsh plugin --profile web update @nonamelego/dsh-catppuccinadd 最新版)。在 DSH Desktop 中,把 web 换成 desktopdsh plugin --profile desktop update @nonamelego/dsh-catppuccin),dsh plugin update(默认作用于当前 profile)。
Copyright © 2021-present Catppuccin Org
登录后即可为该插件评分和评价。
还没有人评价这个插件,来抢个沙发吧!