Skip to main content
I

dsh-mera-theme

italycalibur2019/dsh-mera-theme

MERA persona theme: raspberry rose, pearl white and ink navy, translucent panels and a frosted sidebar, plus a sunny-day wallpaper in light appearance and a rainy-night one in dark. Its HTTP routes have no DSH access check, so a web page open in your browser could call them.

Install

dsh plugin --profile web add github:italycalibur2019/dsh-mera-theme

README

dsh-mera-theme · MERA 主题(DeepSeek Harness 插件)

MERA / 玫拉 — Mermaid.js 的拟人角色("把代码编译成图的人鱼工程师")——配色主题,做成了 DeepSeek Harness 的可安装插件。

English | 中文


English

A DeepSeek Harness theme plugin based on the anthropomorphic persona MERA, the Diagram Mermaid (Mermaid.js gijinka): calm, precise, friendly engineer, “Write text. See the diagram.”

  • Palette: raspberry rose #FF3670 × pearl white × ink navy #111827
  • Wallpapers: light appearance gets the 「白天晴朗」sunny day wallpaper, dark gets the 「雨夜 NIGHTCODE」rainy night one; panels turn translucent so the artwork shows through behind the UI
  • Paints MERA light「珍珠白 · 工作台」 and MERA dark「墨蓝 · 夜间编译」 over the built-in palettes
  • Works with every Appearance choice — Light, Dark, and System keep working (OS scheme flips included); the MERA look re-applies on every load
  • Windows: follows the OS app mode even when the Electron shell misses a live theme change — the Host reads AppsUseLightTheme and the client polls it, so PowerToys' scheduled Light switch is picked up within a few seconds. macOS and other platforms keep their native switching (no Host probe, no client sync)
  • Touches surfaces, brand accents, sidebar, chat bubbles, code blocks, menus, charts, scrollbars and illustration layers via --dsw-* alias-token overrides — no layout changes, no external resources
  • Frosted glass on the left sidebar (all platforms) and on the composer capsule, so scrolling content does not read through either; on Windows the caption strip is frosted too
  • Disable the plugin in Plugins and the built-in colors come right back

Install

  1. Download or clone this repository.
  2. In DeepSeek Harness, open Plugins → Add plugin, and pick this directory (dsh-mera-theme/).
  3. Enable it. The MERA palette applies immediately and follows your appearance setting.

Requirements: a DeepSeek Harness installation with the Web GUI (the theme ships with the app's built-in @deepseek-ai/dsh-client-ui-theme).

How it works

client.js stacks one ctx.theme.overrideTokens layer (source-keyed dsh-mera-theme) carrying every MERA token as a { light, dark } pair over the built-in base palettes. Because the user's appearance preference is never rewritten, the built-in ThemeRuntime keeps resolving system and switching body[data-ds-dark-theme]; the layer's values follow the active scheme. The effect disposer removes the layer when the plugin is disabled, restoring the stock palette in place.

The same module injects one <style> element that defines a --mera-wallpaper custom property (light artwork by default, rainy-night artwork under body[data-ds-dark-theme]) and paints html/body plus a page-level fixed <div> at z-index: -1. The fixed layer avoids background-attachment: fixed, which Chromium can skip painting inside transparent macOS vibrancy windows. The settings dialog keeps a near-opaque surface so its text stays readable over the artwork. The images are embedded as base64 WebP data URLs because the plugin has no static-asset route; client.js is generated from src/client.template.js by scripts/build.mjs (node scripts/build.mjs). Surface tokens are translucent so the artwork reads through the panels.

Files

PathPurpose
client.jsGenerated client module: MERA token layer + wallpaper stylesheet
src/client.template.jsSource template for client.js (wallpaper placeholders)
scripts/build.mjsEmbeds wallpapers/*.webp into client.js
wallpapers/mera-light-day.webp (sunny day) and mera-dark-rain.webp (rainy night)
cordis.patch.ymlLoader patch inserting the mera-theme plugin row
locale/en.json, locale/zh.jsonPlugin Manager display metadata
icon.svgMERA badge (raspberry rounded square + white mermaid tail)
docs/Detail-page document and preview image

中文

一个基于拟人人设 MERA / 玫拉(Mermaid.js 拟人:把代码"编译"成图的人鱼工程师)的 DeepSeek Harness 主题插件,通过别名 token 覆盖层实现,不改动官方主题选择逻辑。

  • 标志色:玫红 #FF3670 × 珍珠白 × 墨蓝 #111827
  • 壁纸:浅色外观使用「白天晴朗」壁纸,深色外观使用「雨夜 NIGHTCODE」壁纸,面板半透明让壁纸透出
  • 通过 ctx.theme 覆盖层呈现两套主题:MERA 浅色「珍珠白 · 工作台」 与 MERA 深色「墨蓝 · 夜间编译」
  • 与设置里的外观三种选择完全兼容——浅色 / 深色 / 跟随系统(含系统深浅实时切换)都不受影响,每次加载都会重新应用
  • 通过 --dsw-* 别名 token 覆盖表面色、品牌色、侧栏、聊天气泡、代码块、菜单、图表、滚动条与插画层——不改布局、无外部资源
  • 在 插件 面板停用即可恢复内置配色

安装

  1. 下载或克隆本仓库。
  2. 在 DeepSeek Harness 中打开 插件 → 添加插件,选择本目录(dsh-mera-theme/)。
  3. 启用后 MERA 配色立即生效,并跟随外观设置。

人设出处

角色设定(人鱼工程师 MERA:玫红长发渐变珍珠白、白色科技水手外套、墨蓝紧身衣、珍珠白鳞片尾、玫红圆角方块 + 白色人鱼尾徽记)来自本项目作者的创作设定集。

License

MIT

Related plugins