dsh-plugin-theme-workbench: Provides five persistent light/dark themes for the DSH Web Client

Preface

The DeepSeek Harness (DSH) web client has a hardcoded “Appearance” option row: light, dark, and follow system, with these three options fixed in the interface. If the community registers third-party themes via ctx.theme.register(), they won’t appear in the official selector, and in the implementation, ctx.theme.setTheme(third-party-id) only writes light|dark|system into the settings, while other IDs are lost upon restart. The upstream README’s statement on third-party themes is: the extension point exists, but it is not a first-class capability.

If you just want to switch to a more pleasing color scheme while keeping light/dark preferences and system switching working normally, you need an implementation that doesn’t compete with register(). Below is the dsh-plugin-theme-workbench released by maintainer kjx-talesofai (SkillHub category: Fun Dress-up): five themes, each containing light and dark palettes, with selections written to Host preferences rather than the browser’s localStorage.

What is This

dsh-plugin-theme-workbench is a theme plugin for the DSH web client. It adds a Theme selector row in “Settings → General”, providing five color schemes; you can still switch light / dark / follow system in the Appearance section on the same page. The plugin overlays a layer of tokens on top of the current built-in theme, and the light/dark mode switches to the corresponding palette.

The plugin is not published to the npm registry and can be installed via DSH’s “Add Plugin” or CLI from a specified GitHub release.

Core Features

Five Themes with Dual Light/Dark Palettes

Each theme is derived from three seed colors each for light and dark (canvas, ink, accent) to generate approximately 117 tokens, rather than manual filling, avoiding color schemes deviating from the same hue.

Theme id Chinese Name (README) Feature Summary
cream (default) 米白 Warm cream paper feel, default option
novel 书卷 Old paper with brown ink
calm 静谧 Soft sage green
modern-classic 现代经典 Cool paper white + deep blue accents
deep-work 深度工作 Near black and white

When switching Appearance to light / dark / system, the corresponding palette of the currently selected theme takes effect. No need to install separate plugins for themes that “only support one mode”.

Implementation: overrideTokens, Not register

The plugin uses the official channel ctx.theme.overrideTokens(), overlaying a layer of tokens keyed by package ID on top of the currently active built-in theme; re-applying replaces rather than stacks, and can retract upon uninstall. Therefore:

  • Light/dark preferences and OS color scheme switching maintain DSH’s original behavior;
  • Does not rely on the “invisible and non-persistent” path of ctx.theme.register().

At the same time, the plugin draws its own settings row (settings.general.item, order: 13) and saves the selection as a Host-side .volatile() Config, which enters the profile’s cordis.patch.yml like other DSH settings (namespace corresponds to Loader row ID).

Capability Boundaries

The README clearly states: this is a palette plugin, not a full-site skin change. The following are out of scope:

  • Fonts, border radius, syntax highlighting, wallpapers;
  • Creating hierarchy through shadow recipe changes (DSH declares shadows on body, body *, body-level overrides are invalid; hairline colors can vary with theme);
  • macOS sidebar has system vibrancy, plugin tokens can only partially “tint” it, cannot change it to opaque solid color blocks without affecting appearance.

First screen: the persisted theme ID is injected into globalThis.__DSH_THEME_WORKBENCH__ as global via webserver/index-inject, avoiding the flash of default schema first.

Installation and Activation

Open “Add Plugin” in the DSH desktop client, fill in one of the following. Restart the desktop client after installation (Host side only loads at startup). Changing themes itself does not require restart or page refresh.

GitHub (pinned to currently available release):

github:kjx-talesofai/dsh-plugin-theme-workbench#v0.1.4

Local development directory (must be an absolute path, relative paths will be rejected by DSH):

/absolute/path/to/dsh-plugin-theme-workbench

CLI equivalent command (when profile is desktop):

dsh plugin --profile desktop add github:kjx-talesofai/dsh-plugin-theme-workbench#v0.1.4

When upgrading: uninstall first, then install the new version; overwriting reinstallation on existing entries is not supported.

Typical Usage

  1. Open Settings → General → Theme.
  2. Click color blocks: left side is the light palette, right side is the dark, middle dot is the accent color.
  3. Switch light / dark / follow system in Settings → General → Appearance to view the other palette of the same theme.

You can also directly write configuration in the profile’s cordis.patch.yml (equivalent to UI):

- id: theme-workbench
  name: 'dsh-plugin-theme-workbench'
  config:
    theme: cream # cream | novel | calm | modern-classic | deep-work

Uninstall: uninstall dsh-plugin-theme-workbench in DSH’s “Plugins” list and restart. If you need to clear residual configuration, you can edit the profile’s cordis.patch.yml and delete the section corresponding to - id: theme-workbench.

Applicable Scenarios and Considerations

Suitable for Whom

  • Daily users of the DSH Desktop web client who want interface color schemes closer to paper feel, low contrast, or focus scenarios, and want to link with system light/dark;
  • Users who understand the DSH plugin ecosystem (community directory SkillHub is an independent site with no official affiliation with DeepSeek / High-Flyer) and are willing to install plugins from specified GitHub releases that are not on npm.

Runtime and Trust

The plugin runs with the current DSH process permissions. Before installation, it is recommended to browse the repository source code and MIT license to confirm compliance with your security and compliance requirements.

Environment and Limitations (from README self-description)

  • When accessing non-loopback, DSH places some settings in memory scope, themes take effect this time but may be lost after refresh.
  • The maintainer has done end-to-end verification on macOS (Apple Silicon) + DSH Desktop 0.2.0-rc.2; on 0.2.1-rc.2, verified that token names and settings row still exist. Windows / Linux not tested; DSH minor version upgrades may change upstream contracts, need to pay attention to the repository’s Compatibility description yourself.

Conclusion

dsh-plugin-theme-workbench uses overrideTokens and self-built settings row to fill the gap of third-party themes “cannot enter official appearance, selected but not persistent”: five derivable light/dark color schemes, coexisting with DSH’s built-in light / dark / system switches. If you need to change fonts or full-page reskin, you should look for other extensions; if you only need stable, profile-writable color schemes, you can install according to the above commands and select in “Settings → General → Theme”.

羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye