theme-engine
БесплатноБез исполняемых скриптовНе проверенUse when one palette must theme any surface.
от sakib-dalal227 установок в других каталогахОб этом скилле
Theme engine — one palette, every surface
A theme is not a colour picker. It is two libraries composed into tokens, then re-expressed per surface: the same inks paint a web page, a PDF, a LaTeX document, a VS Code window, a terminal and an agent's chat UI.
This skill is the whole pipeline: reference → libraries → contrast-gated tokens → surface emitters.
When to Use
Any request of the form “make it look like X” where X is an image, a brand, a poster or a mood:
- Web / frontend / UI-UX — landing pages, docs sites, dashboards, component kits, design systems.
- Documents & PDF — reports, briefs, one-pagers, course work, invoices (Word, PDF, HTML→PDF).
- LaTeX — reports, papers, posters, slides (colour + type packages).
- Editor / code — VS Code themes, syntax palettes, terminal ANSI, diffs.
- Agents & apps — Hermes skins, Electron/TUI themes, any host with CSS variables or a theme JSON.
- Brand kit / token export — JSON, CSS, SCSS, Tailwind config, Figma variables.
Don't use for a one-off colour tweak on an existing theme (change the one token instead), or for raw image generation.
The model (learn this before touching a surface)
GROUNDS (stocks/surfaces) × INKS (accent pairs) → derive() → tokens → surface emitters
- Grounds are what the eye reads as which theme it is: warm paper, newsprint, bone, cool grey, kraft, blush, sage, graphite — and dark boards for the loud families. A ground carries the stock colour and its press black.
- Inks come in families, and the family sets intent:
riso— muted, register-based print inks (Cobalt & Rose, Vermilion & Slate…)vivid— high-chroma, everyday stand-out (Vivid Magenta, Electric Blue, Ultraviolet)hi-vis— fluorescent / safety, engineered to grab attention (Hi-Vis Yellow, Laser Green)accent— one loud colour, everything else quiet (Signal Orange)
- One derivation, two polarities. Light surfaces get dark type and darkened inks; dark surfaces get cream type and lifted inks. Never write two derivations.
- Contrast is an output, not an opinion. Every pairing is measured at build time and the build fails loudly under 4.5:1 (small text) / 3:1 (fills and large type).
- Surface emitters consume tokens — they never re-derive. If a surface needs a value the tokens don't carry, add the token; do not fork the maths.
Full maths, the CLI, and the uniqueness/assignment scheme: references/engine.md.
Procedure
- Read the reference. Histogram it for the real inks — never eyeball. Done when you can name stock, 1–2 inks, the darkest ink, and their pixel shares.
- Declare the libraries in one script (grounds × inks). Keep them declarative; derivation lives
in one function. Done when
--listshows the grid and every theme has both plates. - Derive and gate. Run the build; read the ratio table it prints. Fix nothing by hand — adjust an ink or accept the walk's correction. Done when “text pairings under AA: none”.
- Emit per surface.
templates/token_engine.py --emit css|vscode|latex|json|skin. One engine, one palette, many outputs. Recipes:references/surfaces.md. - Apply and look. Apply to the real host (skin, VS Code window, compiled PDF, browser), then screenshot/compile and inspect. Done when you have looked at the artefact, not the code.
- Write it back with the generated tokens as the source of truth, and record the palette in the README.
Surface routing
| surface | emitter / recipe | artefact to verify |
|---|---|---|
| Web page / landing / UI kit | CSS custom properties on :root |
screenshot at 1440 / 900 / 390 |
| Component library / design system | token JSON → CSS + Tailwind config | component page in all states |
| Document / report (docx, PDF) | token JSON → style map (fonts, scale, colours, rules) | exported PDF, page 1 + table page |
| LaTeX (report, paper, poster) | generated .sty with xcolor definitions |
pdflatex compiles, PDF inspected |
| VS Code | theme JSON (workbench + tokenColors + terminal ANSI) | JSON parses; theme loads |
| Terminal / CLI | ANSI 16-colour map | legible on both light and dark |
| Agent / app skin | skin YAML / CSS variables | app repaints; palette resolves |
| Slides | display + body + code styles | PDF export inspected |
Per-surface code, key names and gotchas: references/surfaces.md.
Core rules that survive every surface
- Never
#000on#fff. Warm stock#F2EEE2–#FDF3E3, ink#12100E–#1D1D1D. - Two text-safe variants per accent: the raw ink is a fill; the walked ink carries small type.
- Three type roles, no more: display (high contrast, tight tracking), body (quiet grotesque), caption/mono. Body copy never in a display face.
- Hairlines and flat fields beat cards. 1px rules, 1.5px for structural breaks,
border-radius: 0unless the host demands otherwise. - **One accent does the pointing; e
Установить theme-engine в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл theme-engine?
Use when one palette must theme any surface.
Как установить скилл theme-engine?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл theme-engine запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic