dsh-theme-cinnabar: A Cinnabar Theme for Conversation Readability

Introduction

DeepSeek Harness (DSH) adopts a plugin architecture, with extensibility concentrated in the desktop desktop profile. During daily use, developers often need a theme with clear visuals, adequate contrast, and a comfortable reading experience. The existing default theme may fall short on text-to-background contrast in complex conversation scenarios, leading to eye fatigue during extended reading sessions. dsh-theme-cinnabar is a theme plugin designed to address this issue.

What It Is

dsh-theme-cinnabar is a theme plugin for the DeepSeek Harness web client, following a color direction of “warm ink with a touch of cinnabar.” It does not register any third-party theme; instead, it layers all tokens as an override on top of DSH’s built-in light/dark modes and adds a settings row. The plugin is enabled by default. Light/dark mode follows the Appearance settings (Light / Dark / Follow System), and once Dark is selected, it persists across restarts.

Core Features

1. Contrast Gate

The plugin’s primary goal is conversation readability: every foreground/background pair across body text, bubbles, code blocks, input fields, and the sidebar has a minimum contrast threshold. All 58 paired combinations pass the contrast test—if any pair falls short, the output is rejected.

The palette uses 165 tokens + 8 non-color declarations, written in {light, dark} pairs.

Paper White  #faf7f2        Warm neutral scale: OKLCH 80°, chroma 0.006–0.016
Ink Black    #23201c        Dark surface, equally warm-shifted
Cinnabar     #c41002        Light-mode accent (contrast 5.74:1)
             #f07461        Dark-mode accent (contrast 5.70:1)

2. Launch Animation

An approximately 1.5-second entrance animation: paper unfurls → the official whale mark floats up → mist diffuses → curtain reveal. The animation can be disabled and is suppressed under the reduced-motion system preference.

3. Sidebar Status Indicators

  • Active (running) session: a 2px cinnabar vertical bar at the line start, pulsing with the state
  • Session awaiting your reply: a 4px solid cinnabar vertical bar at the line end
  • A fading hairline divider between session rows
  • A 24px cinnabar underline beneath the current session

4. Message Identity Marginalia

User messages drop the bubble and are replaced by a cinnabar rule on the left. Body text spans the full column, and name labels like “You” are no longer displayed.

5. Turn Frame

Each Q&A turn is composed as a page: 12px rounded corners, an ink-colored spine on the left, and a cinnabar short rule beside serif questions.

6. Status Seal

Failures get a “Mis” stamp, truncations get a “Cut” stamp—a 24px square seal anchored to the left edge of the line. Completed and awaiting-reply states receive no stamp.

7. Code Block Language Seal

The language name in the header becomes a solid cinnabar mini-seal; the header line changes to a hairline. Copy/word-wrap actions appear only on hover or focus.

8. Liquid Glass

Dark ink glass / light xuan-paper glass, applied exclusively to the input field and never to menus. The status line below the input field gets a full-width card backing, and body text no longer passes behind it.

9. Reading Surface Typography

Short heading rules, paper-toned blockquotes, ledger-style tables, short dividers, and underlined links—all scoped to [data-chat-turn].

10. Paper Texture & Warm Shadows

An inline SVG noise layer over the conversation scroll area; three shadow tiers shift from black to warm ink.

11. Scrollbar & Details

Thumb turns cinnabar on hover, task checkboxes use the accent color, and kbd elements get keycap styling.

12. System Adaptation

Raises the contrast floor for prefers-contrast: more; removes paper texture under forced-colors.

Installation & Activation

The plugin is published on npm under the package name dsh-theme-cinnabar. The desktop desktop profile is exclusively handled by Electron; the CLI rejects installation requests to other profiles.

# Install to the target profile from npm; takes effect after restart
dsh plugin --profile <profile> add dsh-theme-cinnabar

Once installed, the plugin is enabled by default. You can switch between light/dark in the Appearance settings, and a one-time Dark selection persists across restarts.

Typical Usage

After installation, the theme is applied automatically. To verify the effect or review design details, refer to the project documentation:

  • docs/install.md: Which profile to install to, how to confirm it’s active, how to switch modes, and upgrading from older versions
  • docs/design.md: What each layer does, why it’s designed that way, and measured numbers

When working with a local checkout of the project, you can use the following scripts for the development workflow:

npm run verify                # Hygiene check → palette → build → preview → artifact check → smoke test
npm run render                # Produce light/dark render previews without launching the client
npm run live                  # Inspect the live DOM against a running desktop instance (requires debug port)

Target Platforms & Notes

  • Target platform: Desktop desktop profile. The theme is a styling layer for the web client; it likely works in other profiles as well, but this project has only measured contrast and run probes on desktop, so web profile support is not guaranteed.
  • Notes: Restart the client after changes to see the effect. The theme does not touch layout or modify DSH’s built-in appearance settings.
  • License: MIT. The whale mark in the launch animation is sourced from DSH’s own welcome-brand.svg—a DeepSeek trademark graphic, used solely to display DeepSeek’s own logo within the DeepSeek Harness client. If you repurpose the theme in your own product or distribute it independently, please replace it with your own mark.

Summary

dsh-theme-cinnabar provides a conversation-readability-first theme solution for the DSH desktop client through a single layer of token overrides. It includes 58 contrast-verified pairs, a launch animation, sidebar status indicators, message marginalia, turn frames, status seals, code block language seals, liquid glass, reading-surface typography, paper texture with warm shadows, scrollbar details, and system adaptations. The plugin is enabled by default, does not modify DSH’s built-in appearance settings, and is well-suited for developers who need sustained visual clarity during long conversations.

  • Catalog page: https://www.skillhub.cn/plugins/xerxescom/dsh-theme-cinnabar
  • GitHub: https://github.com/xerxescom/dsh-theme-cinnabar
羽毛球分组比赛记分
小程序二维码

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

Xiaoye