Amber Commons: A Warm Cream Developer Theme for DeepSeek Harness

Introduction

The default interface style of DeepSeek Harness (DSH) can cause visual fatigue after extended use. For developers who frequently switch themes, a theme with soft color palettes and clear visual hierarchy can significantly improve the experience. Amber Commons is an original warm cream-toned theme designed for the DSH Web GUI, providing design tokens for both light and dark modes, along with an accessible component layer.

Plugin Positioning & Maintainer

The plugin is named dsh-hf-theme, and the core theme is called Amber Commons. It is maintained by ohmybro. This theme does not use any third-party brand logos, names, or illustrations. All icons and brand marks are original linear stacked resource graphics.

Core Features

Design Tokens & Theme Switching

The theme defines colors exclusively through src/palette.json, which is the sole location where colors are written. This file contains light/dark color scales, static scales, and --dsw-* alias mappings. When the theme is activated, it writes light/dark pairs for 171 --dsw-* aliases via ctx.theme.overrideTokens(SOURCE, TOKENS). These tokens are injected as inline CSS variables into <body> by DSH’s renderer, thereby recoloring all host components without modifying any existing component files.

Component Layer & Host Adaptation

src/components.css provides a token-based raw component layer (using dshhub-* class names) with all interactive states. src/app.css handles page layout, resource cards, repository details, run views, the component gallery, and overlays. src/host.css applies global styles to the actual Harness GUI using only stable semantic hooks (such as [data-dsh-frame], [data-slot='sidebar.session.action'], [aria-current='page'], etc.), avoiding hashed CSS Module class names.

On-Demand Resource Center

The theme provides an amber-colored launcher (as well as a composer dock mark) that opens a full-screen, dismissible overlay. This overlay mounts the same src/app.js used by preview.html, containing the resource directory, repository details, Harness run views, and the component gallery. It does not override the host interface by default and can be closed via Esc or “Return to Harness.” The theme does not persist any settings (no localStorage is used); dark mode follows the user’s existing light/dark/system preference.

Interaction & Accessibility

The theme supports ⌘/Ctrl + K to open the theme command palette, where theme commands invoke ctx.theme.setTheme('dark' | 'light'). A MutationObserver monitors body[data-ds-dark-theme] to keep the overlay in sync. All interactions use URL hash state (shareable/refreshable), keyboard navigation supports ← → / Home / End, dialogs feature Esc dismissal and focus restoration, every control is labeled, and every icon button has an aria-label. When prefers-reduced-motion is set to reduce, the 140–180 ms transition animations are disabled, ensuring no horizontal overflow within a 390px width.

Installation & Activation

Already enabled in the web configuration and linked to the local link:/root/dsh-hf-theme. To use the published repository version, run:

dsh plugin --profile web add github:ohmybro/dsh-hf-theme

Once enabled, visit https://dsh.ohmy.sh/ to load the newly built client bundle.

Local Development & Verification

The plugin includes a full verification script chain. After modifying source code, run the following in sequence:

npm run build      # Regenerate client.js, preview.html, tokens.json, src/tokens.css
npm run check      # Build + contract tests + lint + type check + interaction tests
npm run shots      # Regenerate screenshots + verify live GUI

To run a specific check individually:

npm test                      # 24 contract checks (light/dark WCAG AA)
npm run test:interaction      # 30 Playwright interaction checks
npm run lint                  # oxlint checks
npm run typecheck             # tsc type checking
npm run shots                 # 16 screenshots + live GUI assertions
node --check client.js        # Syntax check

npm run verify runs the entire check chain.

Use Cases & Caveats

This theme is ideal for developers who want soft, warm tones in DeepSeek Harness, particularly those who spend long hours facing a terminal or editor and wish to reduce visual fatigue. The theme runs with the current DSH process privileges; source code and the license (MIT) should be reviewed before installation.

Limitations & Scope Decisions

  • No new host routes, API calls, or data structures are introduced. The resource directory, details, and run pages are client-side overlays with demo data and do not persist Harness resources.
  • No permanent secondary navigation bar is injected into the host GUI. The full top bar exists only in the preview and the on-demand resource center; global search is accessible via ⌘ K.
  • The --dsw-static-* decorative illustration color scales are not overridden. Card borders fall below 3:1 contrast, but cards are differentiated by surface color and spacing; form controls use --color-control-border, meeting 3:1 contrast in both modes.

Summary

Amber Commons provides DeepSeek Harness with a complete warm cream-toned theme solution, including light/dark mode support, a token-based component layer, and an on-demand resource center. All style layers are disposable—disabling or removing the package restores the default appearance. To view the directory page or source code, visit:

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

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

Xiaoye