dsh-warm-ui: DSH Web GUI Warm Theme and Input Bar Cleanup

Introduction

When using the DSH Web GUI for conversation and debugging over extended periods, the default color scheme tends to be a cool blue-gray. If third-party controls like prompt-optimizer are stacked in the input toolbar, the sliders, capsules, and help buttons often feature glowing effects and varying heights, creating visual clutter when placed alongside DSH’s native “Access Mode.” The community plugin dsh-warm-ui (maintainer yunliya-cuter) does three things for the Web client: it overlays a warm color theme token, adds a liquid glass material to input cards (in Chromium-based browsers), and compresses the cluster of controls in the input bar to 24px height with aligned positioning. The following section explains what it is, how to install it, and how to verify and fine-tune it after installation.

What is this

dsh-warm-ui is a DSH (DeepSeek Harness) client plugin package, categorized as “Fun Customization” in the community catalog. It does not alter DSH’s business logic; instead, it modifies the appearance on the browser side through official extension points and includes styling and narrow-screen interaction refining for the prompt-optimizer toolbar.

Item Description
Catalog Page https://www.skillhub.cn/plugins/yunliya-cuter/dsh-warm-ui
Source Code https://github.com/yunliya-cuter/dsh-warm-ui
Package Version 0.1.0 (see package.json in repo)
License MIT

The DSH ecosystem philosophy is “everything is a plugin”; community catalogs like SkillHub are independent sites and have no official affiliation with DeepSeek or Hithink RoyalFlush. The plugin loads with the current DSH process permissions; it is recommended to review the source code and license before installation.

Environment Requirements

Item Requirement
DSH >=0.1.7-rc.2 <0.2.0 (Tested in README with 0.1.7-rc.2)
Profile web (This plugin is only meaningful within the Web GUI)
Browser Chromium-based browsers can fully render glass refraction; Firefox is usable but lacks the SVG filter backdrop refraction layer, having only blur/tint
Runtime Dependency Sub-package dsh-warm-shared from the same repository; must be installed alongside the main package

The main package declares @deepseek-ai/dsh-client-ui-theme and @deepseek-ai/dsh-client-ui-slots as capability sources via peerDependencies (for warm token writing and sidebar footer slots). These are provided by DSH itself and do not need to be installed separately.

Core Features

Warm Theme

DSH color schemes have two levels of variables: --dsw-static-* (color scales) → --dsw-alias-* (semantic aliases). The plugin uses ctx.theme.overrideTokens to override key color scales: cool blue-gray neutrals are changed to warm brown-gray, brand blue accents are changed to warm amber/terracotta, and Shiki syntax highlighting is adjusted to a Gruvbox-oriented warm palette. Both light and dark themes take effect simultaneously.

Liquid Glass

Input cards, menus, etc., use glass material (refraction, edge light, surface reflection). For implementation details and Firefox limitations, see Section 6 of contract/ui-contract.md in the repository. In Chromium, you can check the console:

window.__dshWarmExtra.glass   // => { alive: true, generation: 1 }

Input Bar Toolbar Shaping

The stylesheet only targets .dpo-controls within the input bar (the cluster of controls rendered by prompt-optimizer in the toolbar): height set to 24px, no glow, no capsule background; a hairline separator is added between it and the DSH native “Access Mode” on the left.

On wide screens (≥1241px), items like “Gear/Permissions” are collapsed into a single 24px “Optimize” capsule. Clicking it expands a small popup upward, and internal clicks are still forwarded to the plugin’s original slider buttons; at ≤1240px, it yields to the plugin’s built-in narrow-screen form. If the slider buttons cannot be detected, it automatically reverts to the original state to avoid empty shell buttons.

The plugin registers an “Appearance · Current Gear” button in the official slot sidebar.footer.action. The panel contains six dimensions (Surface Brightness, Warmth, Text Brightness, Text Color, Boldness, Heading), each with a row of small toggle buttons. Clicking takes effect immediately and writes to localStorage, persisting through refreshes and restarts. Settings exist only in the current browser; if the slot or React is unavailable, the panel will not mount, but the theme itself remains usable.

Default settings summary (reviewed 2025-09-13):

Dimension Default Gear localStorage Key
Surface Brightness 0 Night dsh-warm-surface
Warmth 3 Neutral Surface + Warm Accents dsh-warm-level
Text Brightness 3 Medium-Dark −20% dsh-warm-text
Text Color 0 Cool (Close to DSH default gray) dsh-warm-tint
Boldness 1 Warm · Very Weak dsh-warm-bold
Heading 4 Neutral Pure Gray · Darker −20% dsh-warm-heading

You can temporarily test settings by setting key values in the console and refreshing, e.g., localStorage['dsh-warm-surface']='2'; deleting the corresponding key reverts to the default values hardcoded in the code.

Installation and Activation

Both packages must be installed: The main package requires dsh-warm-shared. Missing the shared package will prevent the Web-side module from activating, potentially causing “Failed to load plugins” on the page.

Execute under the web profile (commands from the repo README):

dsh plugin add --profile web \
  'git+https://github.com/yunliya-cuter/dsh-warm-ui.git' \
  'git+https://github.com/yunliya-cuter/dsh-warm-ui.git#path:preview/shared'

The second entry #path:preview/shared is pnpm subdirectory syntax, pointing to dsh-warm-shared within the same repository. When installing from a fork, replace yunliya-cuter with your GitHub account.

After installation, DSH will automatically write the bundle into the profile based on each package’s dsh.bundle.patch; no manual configuration changes are needed. Refresh the browser with F5.

Verification

  • A line labeled “Appearance · Current Gear” appears in the bottom left corner.
  • The site’s accent colors lean towards warm amber, and input cards have a glass texture.
  • Optional: Run window.__dshWarmExtra.glass in the console to check if the glass layer is alive.

Uninstallation

dsh plugin remove --profile web dsh-warm-ui dsh-warm-shared

Refresh the page to restore factory color settings.

Typical Usage and Local Development

Daily Skin Switching

After installation and refresh, simply click the dimensions in the “Appearance” panel at the bottom of the sidebar. No code changes or reinstallation are required.

Development from Local Path

When modifying lib/client.js in this repository, you can install using local absolute paths (README note: Source code is the product, no build steps; changes to client JS take effect upon browser refresh):

dsh plugin add --profile web \
  "$(pwd)" \
  "$(pwd)/preview/shared"

If you modify the package’s dsh.client manifest (e.g., external), you must restart DSH to force a re-read of package.json metadata.

Modifying Defaults or Materials Yourself

Edit the tables at the beginning of the lib/client.js file (with Chinese comments), such as WARM_NEUTRAL, WARM_ACCENT, WARMTH_LEVELS, GLASS_MATERIAL, GLASS_WARP, and the .dpo-controls section in STYLESHEET. Note that the glass flow parameter GLASS_WARP does not work on Firefox. Simply refresh the page after making changes; no plugin reinstallation is needed.

To ensure all devices open with a specific setting out of the box, you need to modify the second default parameter of the corresponding currentXxx() function in the *_LEVELS tables in the source code, rather than just changing local localStorage.

Scope and Notes

Who is it for

  • Users who primarily use DSH in the Web GUI (web profile) for long periods and want a warmer interface and a tidier input area.
  • Users who have installed or plan to install prompt-optimizer and want its toolbar to visually unify with DSH native controls.
  • Users using Chromium-based browsers who wish to see the full liquid glass effects.

Considerations

  1. Only meaningful for the web profile; CLI or other profiles are not target scenarios.
  2. dsh-warm-shared is not an optional decoration; the installation command must specify both specs simultaneously.
  3. Firefox lacks the full glass refraction layer, but warm colors and shaping remain available.
  4. The plugin relies on client UI extension points from the DSH 0.1.7-rc.2 era; check the version range in the README after major version upgrades.
  5. The repository provides self-check scripts like node tools/check.mjs; you can run them yourself when changing package structure (see README).

Conclusion

dsh-warm-ui replaces the cool color scales of the DSH Web GUI with warm brown-grays and warm amber accents, and adds liquid glass to cards and menus on Chromium. It also flattens and aligns the prompt-optimizer controls in the input bar, and provides a six-dimension “Appearance” switching panel in the sidebar. Remember to add both the main package and the shared package under preview/shared to the web profile during installation, and refresh to use.

  • Community Catalog: https://www.skillhub.cn/plugins/yunliya-cuter/dsh-warm-ui
  • GitHub: https://github.com/yunliya-cuter/dsh-warm-ui
羽毛球分组比赛记分
小程序二维码

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

Xiaoye