Preface¶
The DeepSeek Harness (DSH) Web interface has a built-in design system: interface colors, sidebars, conversation areas, code blocks, etc., all ultimately rest on CSS custom properties (design tokens). If you only want to switch between light/dark appearances, fine-tune accent colors or body fonts, modifying the frontend source code directly or hand-writing global CSS is costly and prone to desynchronization during theme switching.
Below we introduce the community plugin dsh-theme-studio (maintainer marselarts). Instead of building another style system, it works through Harness’s public ctx.theme.overrideTokens extension point, editing the tokens the client is already using separately for light / dark, and supports presets, live preview, and custom CSS. The plugin is categorized as “Fun Dress-up” in the SkillHub directory.
What is this¶
Theme Studio for the DeepSeek Harness Web UI: Open the theme studio in Settings, or edit the same set of editors via a movable panel above the application; what is being changed are the semantic colors, component fill colors, static color scales, and font variables already present in the design system. Changes are written to host storage and take effect immediately in the interface.
The plugin package name is dsh-theme-studio, the version in current documentation is 0.1.0, license MIT. Runtime requirements are Node.js ≥ 20, DSH ≥ 0.2.0-rc.1 (see package.json).
Core Features¶
The objects the plugin edits are the same variables used by the Harness Web client when drawing the interface, mainly including:
- Semantic tokens — 107
--dsw-alias-*variables (surfaces, text, borders, accents, states, buttons, code, diff, menus, tooltips, scrollbars, etc.), consistent with the design system token table. - Component fills — 11
--dsw-specific-*surfaces (sidebar columns and their rows, message bubbles, input areas, menu materials, selectors, etc.). - Static palette — 77
--dsw-static-*color scale steps; aliases can resolve to these step values, making it easy to swap tints from a certain level (e.g.,--dsw-static-deepseek-500) wholesale. - Typography —
--dsw-font-family(interface),--ds-font-family-code(code and diff),--dsw-font-family-brand(brand wordmark), plus the conversation body font size written viatheme.setFontSize(). - Custom CSS — the plugin’s own stylesheet, for parts not covered by token overrides.
The editor is organized into tabs (as described in the documentation):
| Tab | Purpose |
|---|---|
| Colors Simple | Edit only the colors relevant to a block (text, app background, conversation, sidebar, panels, menus, accents, states, code and diff, controls, etc.) by block; the left list shows the number of modified colors per block |
| Colors | Full grid: searchable, grouped, one control each for light/dark, color blocks and free input (var(...), color-mix(...), transparent, etc.), single-token reset, “only modified” filter |
| Fonts | Three font-family slots, local font detection (uninstalled fonts are marked), conversation font size and live sample |
| Presets | Five starting points (Warm paper, Nord, Solarized, Rosé Pine, High contrast), JSON export/import, reset all |
| Advanced | Free stylesheet with one-click snippets (UI scale, heading colors, rounded corners, opaque menus, warm reading surfaces, etc.) |
Overrides are merged into the current theme snapshot via theme.overrideTokens and written to body; light/dark switching, first paint, and unloading are still handled by Harness.
Editing beside the interface: The Settings dialog covers the main interface, making it inconvenient to compare effects against the conversation area. Open beside the interface in the toolbar closes the dialog and floats a draggable panel in a corner of the app under the same store; position, collapse state, and whether it is open are saved in the browser’s localStorage, consistent with the Settings page data.
Installation and Activation¶
The package declares dsh.bundle.patch and dsh.client; the official installer mounts it and adds it to the profile’s bundle stack. The documented installation method is a local directory link (installation from remote URL as described in the git clone instructions requires consulting later sections of the README yourself):
dsh plugin --profile desktop add <absolute path to this directory>
This records a link: dependency; the profile points to that directory rather than copying it. After modifying src/, run npm run build to update the plugin. Uninstall:
dsh plugin --profile desktop remove dsh-theme-studio
After installation, reload the Web GUI. The entry point is Settings → Theme Studio. If you only want to disable it without uninstalling, override in the profile’s cordis.patch.yml:
- id: theme-studio
disabled: true
Typical Usage¶
- Install and reload the Web GUI, open Settings → Theme Studio (or open the floating panel from the editor toolbar).
- Pick a starting point in Presets, or fine-tune by block in Colors Simple, then refine individual tokens in Colors.
- In Fonts, choose the interface/code/brand fonts; family names not installed locally will be marked, and if you select a name without the actual font, the interface may show no visible change.
- When effects beyond the token scope are needed, edit custom CSS or use snippets in Advanced.
- Once satisfied, the configuration is persisted on the host side; the client also mirrors it to
localStoragefor faster first paint, but the host files take precedence.
The main configuration file path (as stated in the documentation):
<DSH_HOME>/dsh-theme-studio/theme.json
It contains the master switch, override mappings, and custom CSS; the host writes via POST /api/dsh-theme-studio and validates fields (token names must be custom properties, value length limits, etc.).
Developers modifying plugin source:
npm run build # regenerate lib/client.js
npm run check # build validation + offline activation/render/routing checks
Render-related checks require locally installed React 18.3.1 (see the .devdeps note in the README); without it, npm run check skips render assertions and reports skip.
Use Cases and Notes¶
Suitable for: Users who use the Harness Web UI in a desktop profile long-term and want systematic light/dark skin swaps and/or font fine-tuning without forking the frontend; also suitable for developers who want to understand DSH’s design token layering (alias / specific / static).
Notes:
- The plugin runs under the current DSH process permissions. Before installing, read the GitHub repository source code and the MIT license, and assess the trust boundary yourself.
- The installation command follows the README; the documented approach is
dsh plugin --profile desktop addwith a local absolute path. Do not fabricate commands likegithub:owner/repobased on the plugin name. - Some components hard-code font stacks before variables (e.g., in ui-conversation:
Inter, var(--dsw-font-family)); if Inter is installed locally, it may still take priority. - The SkillHub directory (plugin page) is a community ecosystem index, with no official affiliation with DeepSeek / High-Flyer; star counts and other metadata follow the directory page (GitHub stars in the documentation are 0).
Conclusion¶
dsh-theme-studio turns the Harness Web UI’s existing design tokens and theme extension points into an editable, preset-capable, floating-panel-comparable Theme Studio, suitable for experimenting with light/dark palettes and fonts without touching the frontend repository. For further information and issues, see GitHub: marselarts/dsh-theme-studio; the directory entry is at the SkillHub plugin page.