Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

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от 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 default family unless the user says to keep Backend.AI's shipped families selectable — default is what renders with no family chosen, and the family selector only appears with allowThemeMode = true. When the user wants both, keep the shipped families and add the brand under a slug key with a familyLabels entry.
  • Output path. Write the draft where the user says; with no path, write .agent-output/themes/<slug>.theme.json (git-ignored). resources/theme.json is 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 the playwright-cli skill and read computed styles — the primary call-to-action button's background-color, a body link's color, the header/nav background, :root custom properties, and the logo element's src/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.
Полный SKILL.md на GitHub

Установить theme-builder в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

references/appearance-document.mdscripts/theme-builder.mjsscripts/theme-builder.test.mjs

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 запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить theme-builder с