dsh-vscode-themes2: Browse and Apply VS Code Color Schemes in DSH Web UI

Preface

DeepSeek Harness (DSH) ships with a default set of design tokens in its Web UI. If you work in VS Code with themes like One Dark Pro, Dracula, or Nord, switching to the Harness settings page breaks your visual muscle memory. Writing your own CSS or forking the frontend is costly, and theme formats from the marketplace don’t directly map to DSH.

dsh-vscode-themes2 (maintained by zxbc, SkillHub category: Fun Theming) turns “pick a VS Code theme, switch skin in one click” into a DSH plugin: a VS Code Themes section appears in Settings, bundling 14 popular themes, plus search over the VS Code Marketplace, .vsix installation, mapping to DSH Web UI design tokens, and real-time skin switching by clicking a card.

What Is This

The plugin’s full name is dsh-vscode-themes2 (the trailing 2 in the package name is historical; use the install command verbatim). One-sentence positioning: Browse and apply popular VS Code color themes to the DeepSeek Harness Web UI.

The DSH ecosystem philosophy is “everything is a plugin”; SkillHub and similar catalogs are community directories, with no official affiliation to DeepSeek / High-Flyer.

Core Features

After installation and enabling in the web profile, a VS Code Themes section appears in the Harness Web UI’s Settings. Each theme card renders a preview using the theme’s own palette (sample text, semantic chips, accent buttons, etc.). The currently selected card gets an Active ring and pill.

Bundled and Installed Themes

The plugin bundles 14 popular VS Code themes (the README lists One Dark Pro, Dracula, GitHub Light, Nord, Catppuccin Mocha, Tokyo Gogh Alt, Monokai Classic, Solarized, Kanagawa, Palenight Italic, Kimbie Dark, etc.). The search box filters both local themes (installed + bundled); installed themes persist across restarts and are sorted by “most recently installed first.”

Marketplace Search and Installation

When you enter a query of 2 or more characters, in addition to local results, the Host side searches via the official VS Code Marketplace gallery API (themes category only). Marketplace hits form a separate section, complete with live swatches and an Install button. Clicking Install causes the Host to download the .vsix from gallery.vsassets.io, unpack it in-process, read the theme JSONC (stripping comments and trailing commas before parsing), and map it to DSH design tokens.

One-Click Apply and Persistence

Clicking any card applies the theme immediately; the entire site UI reskins in real time. The current selection is written to browser localStorage (key: dsh.vscodeThemes.selected), so it survives browser restarts. The installed list is stored under key dsh.vscodeThemes.installed (JSON array, most recent first).

Failure Isolation

If downloading, parsing, or mapping fails (e.g., incompatible format, missing parseable editor.background / editor.foreground), the UI displays a visible error instead of crashing the plugin or the rest of the UI.

Architecture Highlights (For Developers)

The plugin is a two-half DSH plugin: the browser half is network-restricted, and Marketplace access logic lives in the Host half (index.js + marketplace.js), exposed to the browser via a remote service named vscodeThemes (mounted by client.js through ctx.remote.$mount). The browser half handles theme registration (ctx.theme.register), the Settings UI, and localStorage persistence.

Installation and Activation

Run the following under the DSH web profile (e.g., the default web):

dsh plugin --profile web add dsh-vscode-themes2

If you already have a local plugin directory (path install, not a git clone scenario), the README also provides:

dsh plugin install /path/to/dsh-vscode-themes2

Review the repository source code and MIT license before installing; the plugin’s Host half runs with the current dsh process permissions and initiates outbound requests when you actively search or click Install (see below).

Typical Usage

  1. Install the plugin and start/restart DSH with the web profile; open the Harness Web UI in your browser.
  2. Go to Settings and find VS Code Themes.
  3. Click a bundled theme card in the gallery and confirm whether the whole page UI switches according to that palette; the selection should persist after a page refresh.
  4. Type a theme name (at least 2 characters) into the search box to see local filter results and the Marketplace section; click Install on a Marketplace entry, and once installed, the card appears in the installed list and can be clicked to apply.
  5. If a theme fails to install or apply, read the error prompt on the card or panel; known limitations include some Marketplace themes being skipped because their background/foreground colors cannot be parsed.

Permissions, Network, and Privacy

The Host half accesses the external network only on user action:

  • POST https://marketplace.visualstudio.com/_apis/public/gallery/extensionquery — theme search (when the query is ≥2 characters)
  • GET https://{publisher}.gallery.vsassets.io/…vspackage — download .vsix when Install is clicked

The README states: no telemetry, no other network calls; parsing and token mapping are done locally within the Host process. The browser side only uses localStorage (dsh.vscodeThemes.*) and does not upload theme selection data.

Use Cases and Caveats

For whom: Developers who mainly work inside the DSH Web UI and want its colors to match their VS Code habits, or who want to quickly try marketplace themes without modifying frontend code.

Notes:

  • Only web profile + DSH 0.2.1-alpha.1 is the documented compatible combination; other profiles or versions must be verified by yourself.
  • Installing a marketplace theme equals trusting that extension’s publisher and CDN; evaluate outbound policies in enterprise or restricted network environments.
  • The plugin runs with the permissions of the current Harness process; before installing, read the protocol and boundary descriptions in client.js, marketplace.js, and PROGRESS.md.

Closing

dsh-vscode-themes2 wires the VS Code theme catalog and Marketplace installation pipeline into DSH Settings, performs a one-click live re-skin of the Web UI, and keeps selections and installed themes local. For screenshots and file structure, see the GitHub README; for the community index, see the SkillHub directory page.

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

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

Xiaoye