Tune Styles with Natural Language
The style-tune skill lets you adjust your app’s visual character with plain English. It routes your intent to the right CSS tokens, validates WCAG contrast, and rolls back if anything fails.
Component-layer tuning
Section titled “Component-layer tuning”Adjust tokens that affect a single component:
warmer buttonsofter cardsharper inputsmore elevated dialoglarger button textThese edits go to the component’s .scss file — scoped to that component only.
Example session
Section titled “Example session”You: make the button a bit warmer
Claude: Routing to component layer → --btn-bg
Current: oklch(55% 0.22 270) Delta: hue +20° → oklch(55% 0.22 290)
WCAG pre-check: text-inverse / btn-bg: 4.8:1 ✓
Writing Button.scss ✓ --btn-bg shifted 20° warmer.
You: and rounder
Claude: Routing to component layer → --btn-radius
Current: var(--radius-md, 0.375rem) = 6px Delta: × 1.5 → 9px (0.5625rem)
Writing Button.scss ✓ --btn-radius increased to 0.5625rem.Theme-layer tuning
Section titled “Theme-layer tuning”Adjust tokens that affect all components (changes --color-* roles):
bolder primarytone down the primarycooler info colorwarmer paletteThese route through /theme-update with pre-validation.
Example
Section titled “Example”You: bolder primary
Claude: Routing to theme layer → --color-primary chroma
Current: oklch(55% 0.22 270) C: 0.22 Delta: C × 1.20 → C 0.264
WCAG pre-check (temp dir): primary / background: 4.1:1 ✗ (minimum 4.5:1)
Rollback. No files written. Suggested safe step: C × 1.09 → C 0.24 (ratio: 4.6:1)
You: ok try the smaller step
Claude: C 0.22 → C 0.24
WCAG pre-check: primary / background: 4.6:1 ✓ Writing light.css ✓Stacking adjustments
Section titled “Stacking adjustments”You can chain multiple natural language adjustments in sequence. Each is validated independently:
warmer button→ hue +20°, validated ✓, written
softer card→ radius ×1.5, validated ✓, written
bolder primary→ chroma +10%, validated ✓, writtenIf any step in the chain fails, only that step rolls back — earlier successful adjustments are preserved.
Resetting to defaults
Section titled “Resetting to defaults”To undo a component-layer change, re-generate the component:
- Delete
Button.tsxandButton.scss - Run
/kit-add button
The freshly generated files use the original defaults.
To undo a theme-layer change, re-generate the theme:
/theme-create #your-seed --mode=both