鱼皮AI导航
鱼皮AI导航
  • 主页
  • 社区
  • AI工具
  • AI知识库
  • AI提示词
  • MCP
  • Skills
  • AI学习资源
  • AI资讯
  • GitHub开源
登录/注册

dsh-theme-plugin

DSH Web GUI 主题工作室:5 套内置预设 + 完全可自定义的浅/深配色(强调色、背景、前景、UI 与代码字体、半透明侧栏、对比度),即时热切换并持久化到 localStorage。

主题皮肤
访问 GitHub
文档README

dsh-theme-plugin

English · 简体中文

Theme studio for the DeepSeek Harness (DSH) Web GUI: five built-in presets plus fully customizable light/dark palettes — accent, background, foreground, UI and code fonts, translucent sidebar and contrast — applied instantly, with no page refresh.

Features

  • 🎨 5 built-in presets — codex-warm, nord, solarized, graphite, plus the stock DeepSeek theme
  • 🖌️ Full customization — per-mode (light.* / dark.*) accent, background, foreground, UI font, code font, translucent sidebar and contrast; custom mode starts from scratch
  • ⚡ Instant hot-swap — a Settings GUI ("Theme Studio") applies changes immediately through the official ctx.theme.overrideTokens API; light/dark follow the system preference
  • 💾 Persistent — the selection is saved in browser localStorage and survives reloads
  • 🧮 70+ derived tokens — three colors plus a contrast value expand into the whole semantic token set (borders, layers, scrollbar, tooltip, code blocks, bubbles, sidebar states…)
  • 🪟 Translucent sidebar — real frosted sidebar via the --dsw-specific-sidebar-fill variable
  • 🔌 Official seams only — host-side injection through webServer.tapIndex, no patched vendor files

Installation

Requires DeepSeek Harness with the web profile enabled. Install from the official registry:

▼
sh
复制代码
dsh plugin --profile web add github:BeiZi6/dsh-theme-plugin

Restart dsh web for the plugin to take effect.

To remove:

▼
sh
复制代码
dsh plugin --profile web remove dsh-theme-plugin

Usage

Settings GUI (recommended)

After a restart, open Settings → Theme Studio:

  • Preset — one-click chips: DeepSeek default / Codex warm / Nord / Solarized / Graphite / Custom
  • Colors — color pickers for accent, background and foreground, with a "follow preset" reset
  • Fonts — dropdowns for the UI font and the code font (common stacks included)
  • Translucent sidebar — follow preset / on / off
  • Contrast — slider 0–100 with preset restore

Every change applies instantly and persists locally; GUI selections take priority over host config.

The stock preset derives no palette: color controls are disabled and only fonts can be overridden.

Config reference

FieldTypeDescription
presetenumstock · codex-warm · nord · solarized · graphite · custom (default codex-warm)
light.accentcoloraccent for light mode (primary buttons, links, …)
light.backgroundcolorlight-mode background
light.foregroundcolorlight-mode primary text
light.uiFontCSS font-familyUI font stack
light.codeFontCSS font-familycode font stack
light.translucentSidebarenumpreset · on · off
light.contrastnumber0–100; -1 = keep preset value
dark.*—same fields for dark mode

Empty strings mean "keep the preset value"; unset fields are not overridden at all.

Example — merge into the web profile patch ($DSH_HOME/profiles/web/cordis.patch.yml):

▼
yaml
复制代码
- id: theme-plugin config: preset: codex-warm light: accent: '#FF6B35' background: '#FFFAF0' foreground: '#1A1A1A' uiFont: '"Inter", "PingFang SC", sans-serif' codeFont: '"JetBrains Mono", Consolas, monospace' translucentSidebar: off contrast: 70 dark: accent: '#FFB07A' background: '#1A1A1A' foreground: '#F5F5F5' uiFont: '"Inter", "PingFang SC", sans-serif' codeFont: '"JetBrains Mono", Consolas, monospace' translucentSidebar: on contrast: 70

Only set the fields you want to change; leave the rest blank ('' / preset / -1).

Presets

PresetStyleLight bg / fg / accentDark bg / fg / accent
stockDeepSeek default— (no override)— (no override)
codex-warmCodex warm#F5F3EE / #1D1B16 / #DA7756#2D2D2B / #F9F9F7 / #CC7D5E
nordNord cool#ECEFF4 / #2E3440 / #5E81AC#2E3440 / #ECEFF4 / #88C0D0
solarizedSolarized#FDF6E3 / #657B83 / #B58900#002B36 / #839496 / #268BD2
graphiteGrayscale minimal#FAFAFA / #171717 / #525252#171717 / #FAFAFA / #A3A3A3

custom starts from the codex-warm palette and takes every value from light.* / dark.*.

How it works

  • Host half (index.js) — registers a webServer.tapIndex hook so every served index.html gets a <style> block injected before </head>, after the stylesheet links, letting the overrides win by cascade order. This is the same official seam the built-in UI theme uses.
  • Specificity — selectors are written as html body / html body[data-ds-dark-theme] to outrank the theme's static CSS variables.
  • Token derivation — from background / foreground / accent plus a contrast factor, a small functional engine derives 70+ semantic tokens (border levels, layers, scrollbar, tooltip, markdown code blocks, bubbles, sidebar states…). Status colors (success / error / warn) keep their stock meaning.
  • Translucent sidebar — --dsw-specific-sidebar-fill is emitted as rgba(mix(bg, fg, 3%), 0.65) when enabled; AppFrame / SidebarRoot / WorkspaceBrowser / TrajectoryTable consume that variable directly.
  • Client half (client.js) — a web-shell module that registers a "Theme Studio" section under Settings and writes every change via ctx.theme.overrideTokens; the theme presenter emits the tokens inline on <body>, so the effect is instant and survives until the next selection. Selections persist in localStorage.

Compatibility

  • DeepSeek Harness Web GUI (dsh web)
  • Node.js >= 22.19
  • Peer dependencies: @deepseek-ai/cordis (^4), @deepseek-ai/dsh-host-webserver (^0.1.0-rc.6)

License

MIT © Xu Yuanshan

Links

  • Repository: https://github.com/BeiZi6/dsh-theme-plugin
  • Issues: https://github.com/BeiZi6/dsh-theme-plugin/issues

中文简介

为 DeepSeek Harness (DSH) Web GUI 打造的主题工作室插件:5 套内置预设(Codex 暖色 / Nord / Solarized / Graphite / 默认)+ 完全自定义;设置页内热切换、立即生效并持久化;通过官方 webServer.tapIndex 接缝向 index.html 注入主题 CSS,由背景/前景/强调三色与对比度函数式推导 70+ 语义令牌,并支持半透明侧边栏。

主题皮肤

快捷安装

复制到终端去安装插件

dshplugin--profilewebaddgithub:BeiZi6/dsh-theme-plugin

温馨提示

装插件等于在本机跑第三方代码,权限与你相同,能读文件、用凭据、访问网络,工具审批管不到。请只装可信来源,并尽量锁定 commit。

站长:程序员鱼皮 老鱼简历 商务合作 增值电信业务经营许可证
2026 鱼皮AI导航 | 沪ICP备19026706号-6
站长:程序员鱼皮 老鱼简历 商务合作 增值电信业务经营许可证
2026 鱼皮AI导航 | 沪ICP备19026706号-6
🔥热门工具
朱雀AI检测朱雀AI检测
朱雀AI检测助手朱雀AI检测助手
LovartLovart
老鱼简历老鱼简历
WritePass官网WritePass官网
面多多面多多
CursorCursor
星月写作星月写作
零感AI零感AI
墨得问题墨得问题
dsh 插件推荐
dsh-client-ui-seaglass
Seaglass是一个高自由度的玻璃质感主题。
dsh-plugins#dsh-theme-black-hole
适用于 DeepSeek Harness Web UI 的可切换 WebGPU 黑洞主题:沿用内置深色配色,仅在新会话页面显示动态背景。
dsh-client-ui-skin-qingxiao
以《鸣潮》清宵为主题的 DSH Web 界面皮肤,冰蓝·青碧·月白配色,含剑气流光与可更换背景。
dsh-theme-taojian
陶笺:奶油纸浅色主题,陶橙强调色,界面思源宋,代码 Cascadia Mono。非官方,与 Anthropic、DeepSeek 无关。
dsh-xia-plugins#packages/client-game-assistant
DSH Web 界面的樱花主题与陪伴功能:审批/任务/回答提醒、消息朗读、语音设置。