Command Palette

Search for a command to run...

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

shadcn-theme

БесплатноЗапускает вложенные скриптыНе проверен

Generate shadcn/ui OKLCH color themes for light and dark mode. Use when the user asks for a shadcn theme, palette, or color system.

ronykaxот ronykax★ 379 звёзд на GitHub

Об этом скилле

shadcn Theme

Create a coherent color system, not a bag of attractive swatches. Produce every resolved semantic token in both light and dark modes, with each value justified by its role, surrounding surface, and relationship to the theme identity.

This skill is self-contained. Do not assume any sibling skill, sample theme folder, authoring repository, or external palette exists. Do not defer the color design to another skill.

Required references

Read these files from this skill before generating values:

  1. references/token-inventory.md — the only definition of the built-in canonical token list, plus how to reconcile a project inventory and the CSS shape.
  2. references/oklch-reasoning.md — read it before selecting any L, C, or H value.
  3. references/aesthetic-strategies.md — read it when the request names a product, brand, mood, or visual style.

Examples and existing themes can inform relationships, but they are never the schema and never a source to copy. The active project's semantic token contract is authoritative; the built-in inventory in token-inventory.md is the fallback.

Workflow

1. Capture the intent

Extract what the user already supplied:

  • theme name
  • brand, mood, or aesthetic
  • reference product or “like X” direction
  • supplied colors, base hues, or neutral temperature
  • contrast/accessibility requirement
  • constraints such as restrained chroma, pure black, warm paper, or P3
  • whether they want a preview or an explicit installation

Proceed when there is at least one useful visual anchor: a color, hue family, brand/reference, or sufficiently specific mood. Infer a concise theme name when the name alone is missing. If every visual anchor is missing, ask one compact question that requests the mood/reference and preferred hue; do not conduct a long preference interview.

Treat “generate,” “make,” “design,” or “show me” as a preview request. Only phrases such as “apply,” “install,” “write this into,” or an equally explicit instruction authorize editing a project stylesheet.

2. Inspect the project read-only

When project files are available:

  1. Inspect components.json for the configured global CSS path.
  2. Otherwise locate the active stylesheet by looking for @theme inline, --background, and the light/dark theme selectors.
  3. Read the semantic mappings plus both mode blocks.
  4. Note selector style, token order, formatting, alpha convention, and custom semantic tokens.

Do not edit anything during inspection. If no project theme exists, continue with the built-in inventory in token-inventory.md instead of asking the user to create one.

3. Resolve the complete token set

Follow references/token-inventory.md.

  • With project context, use the union of mapped runtime tokens, light declarations, dark declarations, and relevant project semantic colors.
  • Without project context, use every built-in color token from references/token-inventory.md in both modes.
  • Fill tokens that exist in only one project mode; do not reproduce a partial inventory.
  • Include project-specific foreground partners and semantic status colors when they exist.
  • Keep derived --color-* mappings out of the mode blocks unless the user asks for a full integration scaffold.
  • Treat --radius, fonts, shadows, spacing, and tracking as separate design dimensions. Preserve them unless the request explicitly includes them.

Before designing, write an internal checklist of every resolved token. The light and dark name sets must end up identical. Verify that checklist yourself against token-inventory.md or the project — do not rely on a script for coverage.

4. Design the OKLCH system

Follow references/oklch-reasoning.md rather than improvising numbers.

First choose a small set of anchors:

  • one neutral hue/temperature and neutral chroma discipline
  • one primary hue and target vividness
  • one accent strategy
  • one destructive family
  • one chart strategy

Then reason through every token using this internal worksheet:

token role → hue source → lightness tier → chroma level → foreground/surface pair

Do not emit the worksheet unless the user asks for detailed rationale, but do not skip it. A value is justified only when its role and relationships explain why its L, C, and H belong there.

Build in this order:

  1. Light page, card, popover, muted, secondary, accent, border, and input surfaces.
  2. Light foregrounds paired to those surfaces.
  3. Light primary, destructive, and ring.
  4. Light charts and the nested sidebar system.
  5. Dark neutral/surface ladder derived by role from the light identity.
  6. Dark foreground pairs, then brand/semantic colors, charts, and sidebar.

Repeated values are acceptable when roles are intentionally equivalent. Unexamined duplication is not. Preserve recognizable hue families across modes, but retune lightness and

Полный SKILL.md на GitHub

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

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

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

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

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

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

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

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

references/aesthetic-strategies.mdreferences/oklch-reasoning.mdreferences/token-inventory.mdscripts/check_contrast.pyscripts/requirements.txtscripts/to_oklch.py

FAQ

Что делает скилл shadcn-theme?

Generate shadcn/ui OKLCH color themes for light and dark mode. Use when the user asks for a shadcn theme, palette, or color system.

Как установить скилл shadcn-theme?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл shadcn-theme запускает скрипты?

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

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

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