Generates shadcn/ui OKLCH color themes for light and dark mode. Reads project config and token inventory to produce a complete semantic color system.
Ships in rony-kati. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
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.
Read these files from this skill before generating values:
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.
Extract what the user already supplied:
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.
When project files are available:
components.json for the configured global CSS path.@theme inline,
--background, and the light/dark theme selectors.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.
Follow references/token-inventory.md.
references/token-inventory.md in both modes.--color-* mappings out of the mode blocks unless the user asks
for a full integration scaffold.--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.
Follow references/oklch-reasoning.md rather than improvising numbers.
First choose a small set of anchors:
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:
Repeated values are acceptable when roles are intentionally equivalent. Unexamined duplication is not. Preserve recognizable hue families across modes, but retune lightness and chroma for the new canvas. Never make dark mode an unrelated palette, a mechanical inversion, or a copy of light mode.
When the user provides a color (hex, rgb, hsl, named, etc.), convert it with the bundled converter instead of eyeballing it:
python3 <path-to-this-skill>/scripts/to_oklch.py "#1d9bf0"
Use the converted color as an anchor, then derive role-appropriate variants.
Perform all of these checks:
token-inventory.md or the project inventory yourself).oklch() value; alpha
uses slash syntax. Do this yourself — the bundled scripts do not check
CSS/OKLCH syntax.Manually review relationships the contrast script cannot infer:
ring against page, card, input, and sidebar surfacesborder and input against every adjacent surface where the boundary mattersdestructive in its actual component treatment when the project has no
destructive-foreground tokenWhen command execution is available, install script deps once
(pip install -r <path-to-this-skill>/scripts/requirements.txt), then run the
contrast checker on the preview through stdin so review does not create or
modify project CSS:
python3 <path-to-this-skill>/scripts/check_contrast.py - <<'CSS'
<complete theme preview>
CSS
Only two scripts exist:
to_oklch.py — any CSS color → OKLCHcheck_contrast.py — semantic text-pair WCAG contrast onlyNeither validates OKLCH syntax, token coverage, or light/dark name parity.
Those are your job using token-inventory.md (or the project). Treat every
warning as a design review item: fix it or briefly explain why the user's
explicit constraint requires it. Use check_contrast.py --strict when every
checked text pair must meet WCAG 2.x AA (4.5:1).
The contrast script is a deterministic safety net, not a substitute for semantic reasoning. It cannot know whether five chart colors suit the user's data or whether an accent is too loud for the intended mood.
Default output:
When no project conventions are known, use :root and .dark, the inventory
order from references/token-inventory.md, three decimals for L/C and up to
three for H, with unnecessary trailing zeros removed.
Return actual CSS, never a token sample, ellipses, placeholders, or “continue similarly.” Do not include unrelated component, layout, or API changes.
If the user explicitly asks to install or apply the theme:
@theme inline mappings, @custom-variant, base layers,
custom selectors, comments, and unrelated variables.check_contrast.py after the edit.If the user did not explicitly authorize installation, stop after the preview.
Do not write to globals.css, another CSS file, or component source.
references/token-inventory.md is present.oklch() (agent-checked; scripts do not verify
syntax) and has a role-based L/C/H rationale.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
/rony-kati:shadcn-themefrom rony-kati
rony-kati@kheskills is listed by hktitan/skills — review the source before installing
npx claudepluginhub hktitan/skills --plugin rony-kati3 skills in this plugin
/draw-iconsDraw custom SVG icons for a product, from a single icon to a full set, in whatever visual style it calls for (outline, solid, duotone, sharp, rounded, pixel, hand-drawn, layered, carved, inflated, sketched…), fitted to the product's look and matching any custom icons drawn for the project before. Use this whenever the user wants new or redrawn icons, icons in a named style or mood, or their own icons in place of an icon library, even if they only say "add an icon for X"./make-stickersDraw cute, hand-painted SVG stickers in one fixed style. Use when the user asks for stickers, doodles, or decorative accents for a site or app.Other plugins' skills for the same job