dsh-theme-skin-authorlisted
Install: claude install-skill renjie2026/dsh-skills
# Authoring an RJ-style dsh theme skin
A dsh theme is **data, not UI code**. A theme plugin contributes a list of token
maps to the official theme service; the service and its presenter do all the
painting. That means the hard part is never the code — it is the **data model** and
the **colour assignment**.
This skill encodes both, plus the two faults that make a skin register, select,
report a correct id and token count, and still paint absolutely nothing.
## When to Activate
- Porting a palette from an existing web system into a dsh theme
- Creating a new skin alongside 山青婷彩 / 梦海游鱼
- A skin is selected and "applied" but the UI shows no theme
- **A skin's colours appear and then vanish; clicking it once does not bring them back**
(§4.3 — the service's `adopt()` reverts the preference; the fix is a token layer)
- **The artwork appears but the colours never do** (§12 — the presenter subscribes after mount)
- A ported palette reads as plain white
- Tuning token values or the reading-state easing
- A skin seems fine but the app's memory climbs or the UI repaints constantly — sample the
process, not just the window (a skin can look perfect while spinning the renderer)
---
## 1. Where a skin lives
```
dsh-theme-gallery/
├── lib/themes/shan-qing-ting-cai.json ← one file per skin
├── lib/themes/meng-hai-you-yu.json
├── schema/theme.schema.json ← the contract, incl. x-required-tokens
├── scripts/embed-themes.mjs ← validates then inlines into lib/cl