Saltar al contenido principal
L

dsh-plugin-solarized-eyecare

lijiawei255/dsh-plugin-solarized-eyecare

Whole-app Solarized light and dark theme for DeepSeek Harness (Desktop app and Web GUI), with higher-contrast text and state colors tuned for long sessions.

Instalar

dsh plugin --profile web add github:lijiawei255/dsh-plugin-solarized-eyecare

README

Solarized eye-care for DeepSeek Harness

English | 中文

A whole-application, eye-care Solarized theme for DeepSeek Harness: it paints every surface with the Solarized palette, corrects the famously low-contrast text and accents that make Solarized hard to read, and follows your Appearance setting automatically. One installation covers the Desktop app and the Web GUI.

LightDark
DeepSeek Harness in the Solarized light palette: cream canvas, dark teal text and a Solarized blue send buttonDeepSeek Harness in the Solarized dark palette: deep teal canvas, muted light text and a Solarized blue send button

Screenshots taken from the running Desktop app; the Web GUI renders the same client. The palette overview illustration is in docs/preview.svg.

Features

  • Whole-application coverage — 172 semantic color tokens: canvas and layers, text tiers, borders, buttons and inputs, menus, toasts and tooltips, code blocks and syntax highlighting, diffs, the JSON tree, charts, hover cards and file-type glyphs.
  • Light, dark, and system — every token carries both a light and a dark value, so Settings → General → Appearance still decides the mode; System follows the OS, and switching repaints immediately. The plugin never writes your saved preference.
  • Higher contrast, still Solarized — the "Solarized High Contrast" accent corrections plus a deliberately tuned 5–7.5:1 text ladder, guarded by 73 WCAG contrast checks (light and dark) that run in CI.
  • No network, no data, no model requests — the whole plugin is one client-side token override layer. It sends nothing, stores nothing, makes no model calls, and never touches the DOM or your settings.
  • Off means off — disable the plugin (or unload its client row) and the built-in palette returns exactly.

Compatibility

Works in the DeepSeek Harness Desktop app and the Web GUI alike: the Desktop app is an Electron shell around the same web client that the Web GUI serves, so both render the same client and one installation covers either. Headless and CLI-only runs have no interface to theme, so they are out of scope.

dsh.client.platform: "web" in package.json names that shared browser client. It is a required manifest field of the shared client — not a Web-only limitation.

  • Built and verified against DeepSeek Harness 0.2.2-rc.5; engines.dsh is >=0.2.2-rc.5 <0.3.0.
  • If a future DSH release renames or removes a token, that single token silently falls back to the built-in value: this affects appearance only and never breaks rendering.
  • Seven private --dsw-static-* color values are overridden because the shell's file-type glyphs consume them directly; they affect only those icons.
  • If an already-open page keeps the palette after the plugin is unloaded, reload the page once — client modules are unloaded on reload.

What it changes

AreaSolarized treatment
Canvasbase3 #fdf6e3 (light) / base03 #002b36 (dark); raised layers and the sidebar step toward base2 / base02
TextPrimary #3b555d ≈7.4:1 and body #526f76 ≈5.0:1 on base3; dark mode uses base1-family ink at ≈7:1, not glare-white
Links / focus#005ca3 6.4:1 on base3 (light), #62b3fa 6.7:1 on base03 (dark)
Buttonsbase02 fill in light mode / base2 fill in dark mode, both ≈12:1 with their ink
StatesSolarized red / orange / yellow / green / violet corrected to pass AA on their canvases
Codebase2 / base02 code blocks with Solarized syntax colors (shiki token variables)
Toasts / tooltipsLight Solarized surfaces in light mode and dark surfaces in dark mode, so their status icons and keycap hints stay readable
MenusTranslucent Solarized-tinted surfaces (cream in light mode, teal in dark mode)
Hover cardsDark in both modes (the surface design keeps dark), with re-tuned ink
Diffs, JSON tree, charts, file-type glyphsRecolored onto the Solarized accents

172 token overrides and 73 WCAG contrast checks (light and dark) all pass the project's targets. A few targets are intentionally below AA because the surface is an icon (≥3:1) or a secondary hint (≥4:1); every primary reading surface is AA or better, mostly 5–7.5:1. Nothing outside color tokens is touched: fonts, sizes, radii, shadows, motion and layout stay at their built-in values.

Installation

A. From the plugin index (Discover)

The repository publishes a static plugin index on GitHub Pages:

https://lijiawei255.github.io/dsh-plugin-solarized-eyecare/index.json
  1. Open Plugins in DSH.
  2. If your build hides user-added indexes behind an experiment, enable Custom plugin indexes (under the experimental plugin settings) first — the feature is still marked experimental in DSH.
  3. Open Discover and choose Add index source.
  4. Paste the URL above.
  5. Find Solarized eye-care in the list, install it, then enable it.

B. From a local directory

  1. Clone the repository (or download the release tarball and extract it):

    git clone https://github.com/lijiawei255/dsh-plugin-solarized-eyecare.git
    
  2. In Plugins, choose Add plugin and select the cloned/extracted directory.

  3. Enable it.

C. From the awesome list / dsh-market

The plugin is being submitted to the DSH ecosystem list awesome-dsh-plugin/awesome-dsh-plugin under category: theme. Once the submission is merged it appears in that list, and entries under the theme category are surfaced in the Themes tab of the dsh-market plugin market. Until then, use method A or B.

Turning it off / rollback

  • Disable or uninstall the plugin in Plugins; or remove its entry when it was added as a local directory.
  • Nothing is written to your settings or profile, so there is nothing else to undo.
  • If an already-open page still shows the palette, reload the page once.

Privacy

The plugin makes no network requests, sends no telemetry or usage data, reads no credentials, and stores nothing. It ships a static table of color values in client.js and registers a single theme token override layer while enabled; there is no background process and no model interaction.

Unofficial

This is an unofficial community plugin. It is not affiliated with, endorsed by, or sponsored by DeepSeek. "DeepSeek" and "DeepSeek Harness" are trademarks of their respective owners.

Credits

  • Solarized — the palette is © Ethan Schoonover, MIT License. https://ethanschoonover.com/solarized/
  • Selenized — the contrast targets used while tuning this palette were informed by its published WCAG analysis, © Jan Warchoł, MIT License. https://github.com/jan-warchol/selenized
  • Solarized high-contrast ports — the higher-contrast accent values were cross-checked against public ports, including bbatsov/solarized-emacs (GPL-3.0-or-later). This plugin contains no code from those projects; only numeric color values were referenced. All implementation code here is original.

See NOTICE for the full attribution and trademark statements. NOTICE does not modify the LICENSE.

Files

  • client.js — client-side module (the interface shared by the Desktop app and the Web GUI); registers one ctx.theme.overrideTokens layer. Nothing else runs, and unloading the plugin removes the layer.
  • index.js — empty Host half, so the Loader row can be enabled or disabled.
  • cordis.patch.yml — inserts the single solarized-eyecare row.
  • locale/en.json, locale/zh.json — Plugin Manager title and description.
  • icon.svg — plugin icon.
  • docs/ — light and dark screenshots, the palette illustration, the detail-page markdown, plus .nojekyll and the generated plugin index.
  • screenshots.json — declares the light and dark screenshots for storefronts (dsh-market and the awesome list).
  • design/ — palette definition, WCAG checks, and the generator that writes client.js and design/tokens.json (development source; not shipped).
  • scripts/update-index.mjs — regenerates docs/index.json and the index icon.

Development

node design/generate.mjs   # print the 73/73 contrast report, write client.js + token dumps
npm run check              # regenerate and fail if any generated file changed
npm run build              # alias for node design/generate.mjs
node scripts/update-index.mjs --commit <sha>   # regenerate docs/index.json (defaults to HEAD)

design/ is the source of truth for the palette: design/palette.json holds the Solarized and correction values, design/generate.mjs defines every token pair and its contrast target, and the generated client.js is committed so the plugin can be installed straight from the repository.

The GitHub Actions workflow only checks: it regenerates the theme and fails on a diff, validates docs/index.json when present, and publishes nothing.

License

MIT © 2026 Jiawei Li.

Plugins relacionados