theme-builder
БесплатноЗапускает вложенные скриптыНе проверенBuild a Backend.AI WebUI theme — the v2 appearance document that `resources/theme.json` / `resources/theme.schema.json` describe — from a brand reference: a…
от lablup★ 137 звёзд на GitHubОб этом скилле
Theme builder
Turns "here is our brand" into a document the loader accepts, with the preview
steps the user needs to see it. Everything about the document's shape — field map,
seed semantics, what reads it, the preview surfaces — is in
references/appearance-document.md; read it once per session before writing JSON.
Helpers (plain Node, no install; run from the repository root):
S=.claude/skills/theme-builder/scripts/theme-builder.mjs
node $S extract <url> [--scripts] [--json] # brand colour / font / logo candidates from a site
node $S check <theme.json> [--json] # hex format + WCAG contrast per family, dark-seed suggestions
node $S validate <theme.json> [--json] # resources/theme.schema.json, one line per offending path
1. Take the brief
Accept any of: a URL, hex colours (with roles if the user names them), logo files or image URLs, a company name, or a description ("KT Cloud BI", "deep navy with a gold accent"). Proceed on what is given — do not ask for a full palette. Ask only when there is nothing usable at all (no URL, no colour, no name).
Decide two things up front and say them in the report:
- Family placement. The brand becomes the
defaultfamily unless the user says to keep Backend.AI's shipped families selectable —defaultis what renders with no family chosen, and the family selector only appears withallowThemeMode = true. When the user wants both, keep the shipped families and add the brand under a slug key with afamilyLabelsentry. - Output path. Write the draft where the user says; with no path, write
.agent-output/themes/<slug>.theme.json(git-ignored).resources/theme.jsonis only the preview copy (step 5) — do not leave the shipped document overwritten unless the user asked to replace it.
2. Extract the identity
From a URL, run extract first. It fetches the HTML and linked stylesheets, ranks
saturated colours by frequency with a background/colour/border breakdown, and lists
brand-named CSS variables, theme-color, fonts, logo <img>s and icons.
- Few or no colours means the site styles from JS bundles. Re-run with
--scripts(scans up to 20 script files), then confirm in a browser: open the page with theplaywright-cliskill and read computed styles — the primary call-to-action button'sbackground-color, a body link'scolor, the header/nav background,:rootcustom properties, and the logo element'ssrc/currentColor. Computed values beat frequency counts; a colour used on three CTAs is the brand colour, a colour used in 400 borders is not. - From an image or logo, sample the dominant saturated colour and one secondary; state that they are sampled, not declared.
- From hex colours the user supplies, use them as given.
Map what you found to roles. Say which evidence backed each pick.
| Role | Pick |
|---|---|
accent |
The brand's primary action colour (CTA background, theme-color, --primary/--brand variable). |
link |
The site's link colour when it differs from accent; otherwise the accent. |
info |
A cooler secondary from the brand if there is one; otherwise the accent. info is also the admin-role accent. |
error / success / warning |
Keep the shipped values unless the brand system defines them. |
Установить theme-builder в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл theme-builder?
Build a Backend.AI WebUI theme — the v2 appearance document that `resources/theme.json` / `resources/theme.schema.json` describe — from a brand reference: a website URL, a logo, a set of hex colours, or a plain-language description, then validate it and walk the user through previewing it (dev server, or the Branding page's JSON Config → Preview → Apply). Trigger on: "테마 만들어줘", "theme.json 만들어", "이 사이트 BI/프라이머리 컬러로 webui 테마", "브랜드 컬러 테마", "make a WebUI theme from <url>", "brand the WebUI", "generate theme.json", "custom theme for <customer>", or any request to match the WebUI's colours/logo to a company's identity. Not for editing the theme pipeline itself (`react/src/astryx-theme/`) or the schema.
Как установить скилл theme-builder?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл theme-builder запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
docx
Use this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include…
от AnthropicUse this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple…
от Anthropicxlsx
Use this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing…
от Anthropicpptx
Use this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or…
от Anthropic