rea
morluto
Reverse engineer anything with agents, from app behavior down to native binaries.
DaSea/dsh-card-theme
DSH theme, has three palettes (Nord, Solarized, One Dark), per-mode customization (accent, background, foreground, translucent sidebar, contrast, wallpaper), an optional card layout for shell columns, and conversation content width.
PROJECT TOPICS
PROJECT README
Theme for the DeepSeek Harness (DSH) Web GUI, has features:

nord, solarized and onedark (One Dark for dark mode, One Light for light mode), plus the stock DeepSeek theme stock; custom config mode reuses the Nord base palettelight.* / dark.*); studio pickers write one value for both modescover / contain / auto) and alignment; the palette turns translucent so the wallpaper shows through the app chromecardLayout: true (fonts stay with the platform's own Appearance settings — the plugin does not configure them)--dsh-chat-user-width variable, so native edge-drag handles keep working and win locally. Configure in Theme Studio or with centerContentWidthctx.theme.overrideTokens API; light/dark follow the system preferencelocalStorage and survives reloads--dsw-specific-sidebar-fill variablewebserver/index-inject rows carry the first-paint stylesheet and the host config to both the HTTP index and the desktop boot payload (webServer.tapIndex fallback on older shells); ctx.theme.overrideTokens carries the live tokens; no patched vendor filesRequires DeepSeek Harness 0.2.2-rc.1 (installed and tested; 0.2.1-rc.2 and newer 0.2.x releases are supported) and a web-serving profile — web for dsh web, desktop for the desktop app. Install from the official registry (--profile names the profile that serves the GUI):
# browser build (dsh web):
dsh plugin --profile web add github:DaSea/dsh-card-theme
The desktop desktop profile belongs to the Electron application, so the dsh plugin CLI refuses it. In the desktop app use Settings → Plugins → Install instead, and paste the GitHub address or the absolute path of a local checkout.
For a local checkout, run pnpm install in the plugin directory first: a link: install does not install the plugin's own dependencies (it needs @deepseek-ai/schemastery).
Restart the profile (or the desktop app) for the plugin to take effect.
To remove:
dsh plugin --profile web remove dsh-card-theme
After a restart, open Settings → Theme Studio:
Every change applies instantly and persists locally; GUI selections take priority over host config.
The
stockpreset derives no palette: color controls are disabled and only the background image (and the global card layout) can be overridden.
| Field | Type | Description |
|---|---|---|
preset |
enum | stock · nord · solarized · onedark · custom (default nord) |
cardLayout |
boolean | card layout for the three shell columns (default false); also toggleable in Theme Studio |
centerContentWidth |
number | conversation content column width in px, clamped 400–2400; -1 = follow the platform default (680–920 px responsive; default) |
light.accent |
color | accent for light mode (primary buttons, links, …) |
light.background |
color | light-mode background |
light.foreground |
color | light-mode primary text |
light.translucentSidebar |
enum | preset · on · off |
light.contrast |
number | 0–100; -1 = keep preset value |
light.backgroundImage |
string | image URL or data: URI; empty = no image |
light.backgroundImageMask |
number | 0–100 theme-color coverage over the image; -1 = 70 |
light.backgroundImageBlur |
number | 0–60 px blur; -1 = 0 |
light.backgroundImageSize |
enum | cover · contain · auto (default cover) |
light.backgroundImagePosition |
string | CSS background-position (default center) |
dark.* |
— | same fields for dark mode |
Empty strings mean "keep the preset value"; unset fields are not overridden at all.
On DSH 0.2.x the web-shell creates client entries without config (create(loader, id) passes { name } only), so client.js no longer receives this block from Cordis. The host half publishes the config through the structured index-injection seam as globalThis.__DSH_THEME_PLUGIN_CONFIG__, and the client half reads it as the initial selection. (Older shells get the same payload as a #dsh-card-theme-config JSON block in index.html.) A selection saved by Theme Studio (localStorage) wins; host config is deliberately not written to localStorage, so later config edits still apply on reload until you touch the studio.
Example — merge into the serving profile's patch ($DSH_HOME/profiles/<profile>/cordis.patch.yml):
- id: card-theme-plugin
config:
preset: nord
cardLayout: true
centerContentWidth: 960
light:
accent: '#FF6B35'
background: '#FFFAF0'
foreground: '#1A1A1A'
translucentSidebar: off
contrast: 70
backgroundImage: 'https://example.com/light.jpg'
backgroundImageMask: 72
backgroundImageBlur: 2
backgroundImageSize: cover
backgroundImagePosition: center
dark:
accent: '#FFB07A'
background: '#1A1A1A'
foreground: '#F5F5F5'
translucentSidebar: on
contrast: 70
backgroundImage: 'https://example.com/dark.jpg'
backgroundImageMask: 80
backgroundImageSize: cover
backgroundImagePosition: center bottom
Only set the fields you want to change; leave the rest blank ('' / preset / -1).
| Preset | Style | Light bg / fg / accent | Dark bg / fg / accent |
|---|---|---|---|
stock |
DeepSeek default | — (no override) | — (no override) |
nord |
Nord cool | #ECEFF4 / #2E3440 / #5E81AC |
#2E3440 / #ECEFF4 / #88C0D0 |
solarized |
Solarized | #FDF6E3 / #657B83 / #B58900 |
#002B36 / #839496 / #268BD2 |
onedark |
One Dark (One Light in light mode) | #FAFAFA / #383A42 / #4078F2 |
#282C34 / #ABB2BF / #61AFEF |
custom uses the nord palette as its fallback base and takes every value from light.* / dark.*.
Upgrading from 0.2.x: the
codex-warmandgraphitepresets were removed in 0.3.0. Their ids are still accepted as deprecated aliases (inlocalStorageselections and host config) and resolve tonord; pick a current preset in the studio to migrate the saved selection.
index.js) — registers a webserver/index-inject listener and pushes two structured rows per index render: a style row with the first-paint token stylesheet, and a global row carrying the host config as globalThis.__DSH_THEME_PLUGIN_CONFIG__. This seam feeds both the HTTP-served index.html (via renderIndex) and the desktop boot payload (the Electron renderer receives only the row table and never runs tapIndex). Shells without the row seam fall back to webServer.tapIndex, which injects the stylesheet and the #dsh-card-theme-config JSON block before </head>.<body>, so the injected stylesheet only covers the first paint before the client bundle mounts. The steady-state palette comes from the client half (client.js), which registers the "Theme Studio" Settings section and writes each change through ctx.theme.overrideTokens.globalThis.__DSH_THEME_PLUGIN_CONFIG__ (falling back to the #dsh-card-theme-config DOM block) because 0.2.x no longer passes Cordis config to client plugins. A studio edit is saved to localStorage and takes over; a config-only setup is re-read on every reload.--dsw-specific-sidebar-fill is emitted as rgba(mix(bg, fg, 3%), 0.65) when enabled; AppFrame / SidebarRoot / WorkspaceBrowser / TrajectoryTable consume that variable directly.body::before layer (z-index: -1, above the page canvas and below the app content). With an image active, --dsw-alias-bg-base and --dsw-specific-sidebar-fill become translucent by the mask percentage, so the wallpaper is visible through the app surfaces; blur uses a negative-inset layer to avoid soft edges.html[data-dsh-card-theme]) and targets the shell structurally: the frame is the element owning [data-rightbar-col] and [data-shell-bottom], the left card is its [class*="sidebarCol"] child, the center card is the child followed by the rightbar track, and the right panel is [data-sidebar-right-panel="push"]. Card geometry and colors arrive as five --dsh-theme-* custom properties, so they follow the active palette and background image. The host half also emits a tiny boot script that applies the attribute from the host config or a saved studio selection before first paint, and the client half toggles the attribute live.--dsh-chat-content-width: var(--dsh-chat-user-width, clamp(680px, …, 920px)). The plugin simply publishes --dsh-chat-user-width: <N>px on <html>: the boot script does it before first paint (host config or saved studio selection), the client half keeps it in sync live, and -1 removes the property to fall back to the automatic width. Because the native width handles write the same variable inline on the conversation body (a closer element), manual dragging still overrides the global value locally.html body / html body[data-ds-dark-theme] (and ::before for the wallpaper); the client half writes { light, dark } pairs and lets the theme runtime pick the active mode.engines.dsh: >=0.2.1-rc.2 <0.3.0-0@deepseek-ai/cordis (^4.0.5 / ^4.0.6-alpha.1), @deepseek-ai/dsh-host-webserver (^0.2.1-rc.2 / ^0.2.2-alpha.2)pnpm install
pnpm test # host-half checks, client-half VM harness, host/client parity
The test suite is plain Node (no test framework): test/host-check.mjs exercises the schema, the derived tokens and the webserver/index-inject rows; test/client-check.mjs loads client.js in a node:vm sandbox with fake browser/React shims and drives the Theme Studio; test/parity-check.mjs fails if the presets, the token engine or the card-layout stylesheet in the two halves drift apart.
MIT © DaSea
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: deepseek-harness、deepseek-harness-plugin。