dsh-label-tune: Tone down overly bright text in the DSH Web dark theme

Preface

When staring at the DSH Web GUI’s dark interface for long periods, the正文 (body text) label colors can feel too bright. On Windows, bold text rendered by Chromium appears even more jarring due to synthesized bold weighting. While the official contrast ratio is high, the visual experience may not be suitable for long-term reading. Here, we introduce the community plugin dsh-label-tune: a pure client-side, zero-dependency solution that overrides label tokens and font weights to suppress body text, bold text, and headings to a more restrained hierarchy. It takes effect immediately upon refreshing the page.

What is this

dsh-label-tune is released by maintainer Upstream196 and categorized as “Fun Customization” in the SkillHub Plugin Directory. The repository description reads: Dims overly bright text in the DSH Web GUI, includes softer label tokens, relaxed bold weight (500), and heading weights; scope is limited to the dark theme.

In terms of implementation, it does not touch host code, has no runtime dependencies, and requires no build step. All styles reference official static variables var(--dsw-static-neutral-bluish-N) rather than hardcoding RGB values, making it easy to follow upstream color schemes. Current version 0.1.0, License MIT.

Core Features

The plugin injects CSS to adjust the following visual hierarchies within the dark theme (Contrast ratios are manually calculated against a background color of rgb(21,21,23); body text references WCAG AAA 7:1 requirements):

Part Official This Plugin
Body --dsw-alias-label-primary bluish-50, approx 17.4:1 bluish-200, approx 14.5:1
Body dimmed -primary-dimmed bluish-100 bluish-300 (Avoids being brighter than body text / hierarchy inversion)
Secondary -secondary / Tertiary -tertiary bluish-300 / bluish-400 Unchanged
Bold <strong> Same color as body, weight 600 Color bluish-300, weight 500
Headings h1–h3 / h4 700 / 600 600 / 500

Reason for handling bold separately: DSH does not provide a separate color token for bold text; bold inherits the body color and increases font weight. On Windows, Microsoft YaHei’s real weights are mostly 400/700, so 600 is synthesized by the browser. When strokes appear blurry, it looks even brighter. Therefore, the plugin dims the color one level and reduces the weight to 500.

The README notes: Tokens like --dsw-font-markdown-base-strong* were tested but showed no change in visual feel after override; the plugin does not enable this section and only retains selector-level rules.

Installation and Activation

The installation method depends on whether you are using the Desktop App or the CLI web profile. The desktop desktop profile is managed exclusively by the Electron application; the CLI cannot add plugins to this profile.

Desktop App

Search for dsh-label-tune in the App’s built-in plugin market or install via repository URL, then restart the App. If you run dsh plugin --profile desktop add ..., it will be rejected with the error: profile "desktop" is managed exclusively by the Electron application.

CLI + web profile

First, add the plugin, then write the package name into the profile’s bundles:

dsh plugin --profile web add github:Upstream196/dsh-label-tune

Then, add dsh-label-tune to dsh.profile.bundles in %USERPROFILE%\.dsh\profiles\web\package.json.

Local Development (link)

dsh plugin --profile web add link:F:\path\to\dsh-label-tune

Replace the path with the directory where you cloned or downloaded the repo locally.

Zero-Install (Not via DSH Plugin System)

Paste the dsh-label-tune.css from the repository into a Stylus user style (domain http://127.0.0.1:19387), or write it into the Custom CSS box of plugins like dsh-custom-css or dsh-theme-studio.

Activation Method

Pure client-side: Simply save and refresh the page (F5); generally, no need to restart dsh web. A restart of the DSH process is only required when “adding a configuration layer” (e.g., just after installing the plugin).

Typical Usage and Fine-tuning

No additional configuration is needed after installing the default rules. If you need it brighter or darker, you can modify the corresponding variables or paragraphs in the plugin CSS (refresh the page after making changes):

Desired Effect Where to Change
Body text one level brighter --dsw-alias-label-primary → bluish-150 or bluish-100
Body text one level darker → bluish-300
Bold text darker strong section bluish-300 → bluish-400
Bold text using real Bold strong section font-weight: 500 → 700
Bold text keeps original color Delete the color line in the strong section
Headings less heavy h1–h3 600 → 500, or delete corresponding sections
Apply to light theme as well Uncomment the optional section at the end

The maintainer provides an offline self-test in the repository:

node --test test/verify.mjs

Used to verify module contracts, ensure styles are injected only once, and check that color scales and bold/heading rules are in place.

To uninstall, simply remove the plugin; to temporarily restore for the current session only, execute in DevTools:

document.getElementById('dsh-label-tune-style')?.remove()

Use Cases and Notes

Suitable for: Developers who primarily use the DSH Web Dark Theme, want to reduce the harshness of labels and bold text during long reading sessions, yet still wish to maintain relatively high contrast.

Notes:

  • The plugin runs with the permissions of the current DSH process; before installation, please review the GitHub Source Code and MIT License to ensure the scope of changes complies with your security policy.
  • peerDependencies declares an optional @deepseek-ai/cordis (>=4.0.0). Starting from 0.2.0-rc.1, the host performs a semver gate during the boot phase; bundles outside the range may be silently skipped (logs may show dsh: skipping profile bundle "X").
  • SkillHub and similar sites are community directory sites and have no official affiliation with DeepSeek / High-Flyer; the DSH ecosystem emphasizes “Everything is a Plugin,” and this plugin is a pure CSS fine-tuning path within that ecosystem.

Conclusion

dsh-label-tune does not refactor the theme; it only performs minor dimming and weight reduction on overly bright labels and synthesized bold text in the dark interface. The installation path is clear, and verification is immediate upon refresh. Directory page: SkillHub - dsh-label-tune; Source code and full instructions: github.com/Upstream196/dsh-label-tune.

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

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

Xiaoye