dsh-theme-presets: Applying Color Palette Families to the DSH Web GUI

Introduction

The DeepSeek Harness (DSH) Web interface natively supports three appearances: “Light / Dark / System”. However, the interface tokens remain a single default color scheme. If you spend a lot of time in DSH debugging agents, monitoring logs, or editing configurations, and you want the interface style to resemble popular editor themes like Nord or Dracula without manually editing CSS variables, you need to select a Theme Family on top of the “Light/Dark Mode”.

Here we introduce the community plugin dsh-theme-presets (Maintainer: MicroSharpAnt, Category: Fun Dress-up). Beyond the built-in DSH appearances, it provides eleven selectable presets that combine orthogonally with the Light/Dark mode.

What is this

dsh-theme-presets is a theme preset plugin for the DSH Web GUI. It does not alter the “Light / Dark / System” logic; it only overrides the color scheme at the --dsw-alias-* layer. Selecting “Default” restores the native DSH color scheme.

The current package version is 0.1.2 (see package.json in the repository), licensed under MIT. The browser-side artifact lib/client.js is committed to the repository, allowing for immediate use after installation without a local build.

Core Features

  1. Eleven Color Presets (plus “Default”): Nord, Dracula, Catppuccin, Tokyo Night, One Dark, Gruvbox, Solarized, GitHub, Everforest, Kanagawa, Rosé Pine. Each preset has distinct light and dark variants (e.g., Nord’s Snow Storm / Polar Night).
  2. Orthogonal to “Appearance”: Presets only determine the color family; lightness/darkness is still controlled by the “Appearance” setting in the previous line of “Settings → General”. For example, selecting Nord makes “Light” correspond to Snow Storm and “Dark” to Polar Night, while “System” switches between the two based on the system settings.
  3. Color Block Preview in Settings: Each color block displays the background, accent, and body text colors of the preset under the current Light/Dark mode, updating as the “Appearance” changes.
  4. Persistence: Selections are written to theme-presets.config.preset within cordis.patch.yml of the current Web profile, persisting across refreshes and restarts.
  5. Implementation: 15 semantic anchors for each theme are defined in presets.mjs, while remaining tokens are derived via color-mix() through deriveTokens(). Colors are taken from the official palettes of each theme, rather than approximated colors.

Installation and Activation

Fill in one of the following addresses in the DSH Plugin Installation Interface (refer to the README for the original text):

https://github.com/MicroSharpAnt/dsh-theme-presets.git

You can also use:

github:MicroSharpAnt/dsh-theme-presets

Or:

git+ssh://git@github.com/MicroSharpAnt/dsh-theme-presets.git

Note: Do not use the git@github.com:... scp syntax. The DSH pre-check might allow it, but pnpm will split it into incorrect package names and versions, often resulting in added 0 in the logs, meaning the plugin was not actually installed.

After installation, it works without a build. For development, you can enter the absolute path of your local working copy in the installation interface; after modifying code, you need to restart dsh web for changes to take effect.

The repository was formerly named DSH-simple-theme-plugin. The old address will redirect, but it is recommended to use the new address above directly.

Typical Usage

  1. Install the plugin and complete the DSH Web side loading.
  2. Open Settings → General → Theme Presets.
  3. Click on a color block; select Default if you need to restore the original DSH color scheme.

Switch Light/Dark in the “Appearance” section on the same page and observe if the color blocks and interface change accordingly with Light/Dark/System.

If customizing colors: Edit the light / dark anchors in PRESETS within presets.mjs or add new presets, run npm run build to regenerate lib/client.js, and refresh the browser. Restarting dsh web is not necessary if only colors are changed, but is required if host.js or src/plugin.mjs are modified.

Use Cases & Notes

Suitable for: Users who want to use well-known color schemes consistent with their editor/terminal on DSH Web while retaining the official light/dark switching. This is a “Fun Dress-up” plugin and does not change business logic.

Notes:

  • The plugin runs under the permissions of the current dsh process. You should read the repository source code before installation to confirm the MIT license and behavior meet your environment requirements.
  • Node engine requirement is >=20 (see package.json).
  • The community catalog SkillHub Plugin Page and GitHub repository are maintained by the community and are not officially affiliated with DeepSeek / High-Flyer. The DSH ecosystem emphasizes “Everything is a plugin”; installation methods in this article follow the README. Do not attempt to construct CLI installation commands based solely on the plugin name.

The repository provides npm test (five suites out-of-process) and an optional node e2e-test.mjs (requires a running dsh web and local Chrome); the end-to-end test will restore the preset active upon entry when finished.

Summary

dsh-theme-presets provides eleven persistent color families on top of the built-in Light/Dark/System modes of DSH. The settings path is clear, and it is separated from the Light/Dark mode. To understand implementation details such as preventing initial flash (FOUC) and host loading constraints, please read docs/internals.md in the repository.

  • Catalog Page: https://www.skillhub.cn/plugins/MicroSharpAnt/dsh-theme-presets
  • GitHub: https://github.com/MicroSharpAnt/dsh-theme-presets
羽毛球分组比赛记分
小程序二维码

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

Xiaoye