dsh-theme-switcher: A Localized Personalization Solution for DeepSeek Harness

Introduction

DeepSeek Harness (DSH) provides a pluggable architecture, yet the interface’s styling and color palette remain constrained by the native theme. For developers who want to quickly adjust the UI appearance based on personal preferences or specific scenarios, a lightweight, local personalization entry point has been missing. Some solutions on the market require network access or write to files, while the DSH plugin ecosystem currently lacks a centralized configuration panel that can modify color schemes, manage backgrounds, and control frosted-glass effects simultaneously.

About dsh-theme-switcher

dsh-theme-switcher is a browser-side DSH plugin maintained by Ernesto-yuan. It adds a dedicated “Personalization” page to DSH and pins it to the left sidebar. All configurations are stored in the browser’s localStorage, persist across page refreshes, write no files, and make no network requests. The first stable release is 1.0.0, licensed under MIT.

Core Features

Color Themes

The plugin ships with 20 built-in light/dark color palettes, plus a “Default” theme, switchable across three appearance modes: Light, Dark, and Follow System:

  • 15 solid-color themes: Northern, Sunlight, Sakura, Lavender, Forest, Graphite, Deep Sea, Midnight, Sunset, Coffee, Celadon, Red Jade, Clear Sky, Aurora, Dune
  • 5 gradient themes: Strawberry Milk, Mint Soda, Taro Foam, Lemon Fizz, Rainbow

Each palette automatically switches between its light and dark variants. Gradient themes are rendered by layering 4–6 radial color blobs to produce soft, blended blocks; the page and sidebar remain transparent to let the gradient show through, while text and borders use solid colors to preserve readability. The selection is saved locally and persists after a page refresh.

Custom Backgrounds

The “Custom Background” form allows you to create four types of backgrounds, each supporting save, rename, and delete:

  • Emoji composition: Enter or paste up to 12 emojis, rendered locally into a 1024-pixel texture. Each emoji’s size, rotation, and position are randomized with a consistent seed so the same set always produces the same result.
  • Solid color: Pick a color directly with the color picker and fill the entire page.
  • Gradient: Defaults to two colors, expandable to five. Each color can be individually picked and removed. Supports 0–360° angle. Rendered as soft, irregular radial blobs where the angle rotates blob positions.
  • Image: Select a local image. The longer edge is capped at 3840 pixels, JPEG quality at 92%, and stored in IndexedDB (unaffected by the 5 MB localStorage limit). Deleting a background also frees the associated storage.

The system includes 8 built-in emoji backgrounds (Sweetheart, Summer, Forest, Night Sky, Rainbow, Party, Yellow Face, Expressions) as read-only references—they cannot be renamed or deleted. All four custom types can be saved, renamed, and deleted.

My Backgrounds

When creating a background, you must first enter a name (if left blank, it is auto-named “Custom N”), then click Save & Apply. After saving, thumbnails are displayed by type: emoji and image backgrounds fill the card with the full image; solid-color and gradient backgrounds show a theme-card-style preview (left background strip + right text lines and color dots). Click a thumbnail to switch backgrounds, click ✎ to rename (Enter to save, Esc to cancel, empty names are ignored), and click × to delete. Deleting the currently active background reverts the page to a no-background state. Up to 12 backgrounds can be saved, and they persist across refreshes.

Gradient Overlay

When the “Gradient Overlay” toggle is enabled, the image/emoji background fills the page, and the current palette’s gradient is applied as a 50% opacity filter layered on top of the background (the palette’s own colors and logic remain unchanged). This feature only takes effect for image and emoji backgrounds; it does not apply to solid-color or custom gradient backgrounds. Turning the toggle off shows only the background itself.

Advanced Materials

The plugin adds semi-transparent panels and background blur effects to menus, popovers, tooltips, modal overlays, input cards, and the sidebar’s “New Session” button, relying on the browser’s backdrop-filter. Behind solid-color areas there is no content to blur, so the visual change is minimal.

Sidebar Entry Point

“Personalization” is a standalone top-level panel. The palette icon in the left sidebar sits between the Plugin Marketplace and Automation Tasks. Clicking the icon opens the dedicated page; its content is consistent with the settings page, and both modify the same state. The panel can be unpinned or re-pinned from “More.”

Installation & Enablement

This plugin requires a DSH version that includes the settings.section, main, and theme services (verified on 0.2.2-rc.1).

Install from npm:

dsh plugin --profile <your-profile> add dsh-theme-switcher

Install directly from the repository:

dsh plugin --profile <your-profile> add github:Ernesto-yuan/dsh-theme-switcher

Or install a tgz from a Release:

dsh plugin --profile <your-profile> add <path-to-tgz-file>

After installation, confirm it is enabled under Settings → Plugins; the client code requires one page refresh to take effect.

Typical Usage

Once enabled, access the Personalization panel via:

  • Settings → Personalization
  • Or click the palette icon in the left sidebar

In the panel, perform the following steps in order:

  1. Select a solid-color or gradient theme under “Color Themes” and observe the light/dark mode switch
  2. Create an emoji composition or upload a local image under “Custom Backgrounds,” then save and apply
  3. Enable the “Gradient Overlay” toggle and view the combined gradient-filter-over-background effect
  4. Name frequently used configurations under “My Backgrounds” and switch between thumbnails to quickly change backgrounds

All operations are performed locally; configurations persist after a page refresh.

Use Cases & Notes

This plugin is suited for users who want to quickly adjust DSH’s interface appearance or customize colors and backgrounds for different projects and meeting scenarios. It runs entirely on the browser side with no server dependency, making it ideal for privacy-conscious and locally-oriented use cases.

The plugin runs with the permissions of the current DSH process. It is recommended to review the source code and license (MIT) before installation. If you need to modify theme tokens on the host container (--dsw-alias-* and --dsw-specific-*), the corresponding selectors must be updated in sync. Gradient themes and backgrounds are implemented via body backgrounds; frosted-glass effects rely on backdrop-filter. Background images and custom emoji textures are stored as data URLs; excessively large images will trigger a prompt to use a smaller file.

Summary

dsh-theme-switcher provides a complete local personalization solution covering color palettes, gradients, emoji and image backgrounds, and frosted-glass effects, with the configuration entry point pinned to the left sidebar. All selections are stored in the browser locally, persist across refreshes, write no files, and make no network requests—ideal for developers and users who need flexible control over interface appearance.

  • Plugin directory page: https://www.skillhub.cn/plugins/Ernesto-yuan/dsh-theme-switcher
  • GitHub: https://github.com/Ernesto-yuan/dsh-theme-switcher
羽毛球分组比赛记分
小程序二维码

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

Xiaoye