Introduction¶
DeepSeek Harness (DSH) splits capabilities into plugins, and the interface appearance is typically determined by the host’s built-in theme service and design tokens. If you only want to change the accent color, adjust content density or fonts, without hand-writing a full CSS file or modifying the DOM, you need a plugin that uses the official theme API and only covers tokens that actually exist in dsh. dsh-theme-studio targets this need: centrally modify themes in settings, and apply overrides via ctx.theme.overrideTokens(), rather than directly modifying page styles.
What Is This¶
dsh-theme-studio is a DSH plugin published by maintainer hj01857655, with the npm package name also being dsh-theme-studio, categorized as “fun customization” in community directories like SkillHub. It customizes the dsh client UI theme through accent presets, custom accent colors, content density, fonts, animation toggles, and raw tokens/custom CSS.
The plugin declares modifiable tokens based on dsh’s actual stylesheet (such as @deepseek-ai/dsh-client-ui-theme), constrained in src/tokens.ts and tests; capabilities that cannot be faithfully implemented (e.g., global border radius) will not be provided. Since dsh-theme-studio@0.7.0, development and releases have migrated to the monorepo hj01857655/dsh-plugins under packages/dsh-theme-studio; the independent repository hj01857655/dsh-theme-studio mainly retains history. New issues and PRs should be posted to the monorepo.
What Can Be Changed and What Cannot¶
The following points come from the README’s explanation of the mechanism and host limitations, worth reviewing before installation.
- Only writes design tokens that exist in dsh. Changes are written through the dsh theme service’s
ctx.theme.overrideTokens('dsh-theme-studio', overrides). Uninstalling the plugin will remove the entire override layer from this source, leaving no stale tokens. - No border-radius control. dsh hardcodes corner radii on various components (including circular shapes, etc.) without providing radius tokens, so the plugin does not offer this feature.
- Animation toggle is not a token. dsh has no motion token; when animations are disabled, the plugin injects a stylesheet to reduce transition/animation durations to
0.001ms(instead of0s) to avoid some components that depend ontransitionend/animationendhanging; after uninstallation, the stylesheet is removed along with the plugin’s scope.
Core Features¶
Accent Colors and Presets¶
- 12 presets: Ocean, Forest, Sunset, Monochrome, Nord, Dracula, Gruvbox, Solarized, Tokyo Night, Catppuccin, Rosé, Ember.
- Dark mode aware: If a preset has a different accent in dark mode versus light mode, it automatically adapts when dsh enters dark mode.
- Custom accent, with a separate dark mode accent setting.
- Contrast guard: When the dark accent falls below the WCAG luminance threshold, it brightens step by step, and the panel indicates that adjustments have been made.
Density, Fonts, and Animation¶
- Density: Compact / Comfortable / Spacious. Density does not write to
--dsh-content-font-sizein the override layer, but callsctx.theme.setFontSize(), consistent with the font size stepping in the official Appearance settings; when changing font size in official settings, the corresponding preset here will highlight, and vice versa. - Font family: System / Monospace / Serif.
- Animation toggle: See the mechanism explanation above.
Custom CSS and Theme Files¶
- Custom CSS: Can override any
--dsw-*or--dsh-*token (including setting--dsh-content-font-sizeyourself in the custom CSS box). - Import / export: Themes can be imported and exported as validated JSON; the
densityfield from older exports is ignored during import (font size is now managed by host state). - Live preview: Renders using the same variable names as the application; if the preview doesn’t match the actual tokens, it will be reflected in the preview.
Preferences entering via localStorage, imported JSON, or manual config editing are uniformly validated and normalized through normalizePreferences().
Installation and Activation¶
In an environment where dsh CLI is already installed, the installation method given by the README is:
dsh plugin add dsh-theme-studio
After installation, the plugin registers a settings.section slot (order 47) in settings, allowing theme adjustments in the corresponding section; preferences are persisted in localStorage.
The plugin runs with the permissions of the current dsh process. Before installation, you should review the source code and license (MIT) yourself; the community directory SkillHub is an independent site with no official affiliation with DeepSeek/High-Flyer.
Typical Usage¶
- Run
dsh plugin add dsh-theme-studioand restart or refresh the dsh client (follow your local dsh plugin loading method). - Open settings and find Theme Studio (or the theme-related section registered by the plugin).
- Choose one of the 12 presets, or fill in custom accent / dark accent; switch Density, Font family, and Animation as needed.
- Write
--dsh-*/--dsw-*overrides in Custom CSS as needed; the live preview in the panel allows comparison with the currently active accent. - Once satisfied, use export to save the JSON; use import to restore when switching machines or reinstalling. Reset restores host states such as font size to what they were before first changing density in this plugin.
Installing from a local source link (provided by the README, requires Node >= 20 and a build environment):
git clone https://github.com/hj01857655/dsh-theme-studio.git
cd dsh-theme-studio
npm install && npm run build
dsh plugin add link:.
Regular users can simply install via the npm package name; to follow new versions, watch for releases in packages/dsh-theme-studio in the monorepo.
Brief Mechanism Overview (Coexistence with Multiple Plugins)¶
Plugin inject dependencies include slots, locale, theme. Each theme change goes through overrideTokens to layer a partial token; multiple layers are composed in order, with later writes overriding earlier ones for the same token; each value must be a { light, dark } pair to avoid unreadability in the other color scheme. Layers are keyed by source dsh-theme-studio; republishing replaces the entire layer, so when narrowing the override set, no old tokens will remain. Two theme-type plugins can coexist, each only affecting the tokens it writes.
Use Cases and Considerations¶
- Suitable for: Users who use DSH long-term for agent or tool development, want unified accent colors and reading density, and want consistency with official Appearance font sizes.
- Not suitable for: Users who need to globally change border radius, or visual effects that depend on tokens not exposed by dsh; such needs can only wait for the host to extend tokens, or be explored within the scope of Custom CSS.
- Security and trust: The plugin persists preferences and modifies theme tokens; only install versions you have reviewed, and be aware that it runs within the same process as dsh.
Conclusion¶
dsh-theme-studio consolidates “preset accents + official font size API + token layering + JSON theme files” into a single settings panel, constrained within dsh’s actual tokens, avoiding conflicts with the host theme service. Directory page: https://www.skillhub.cn/plugins/hj01857655/dsh-theme-studio; code and documentation: https://github.com/hj01857655/dsh-theme-studio (for 0.7.0 and later, see https://github.com/hj01857655/dsh-plugins/tree/main/packages/dsh-theme-studio).