colour-palette
Installation
SKILL.md
If .ux-profile.md exists at the project root, read it before changing layout, color, or type.
Intent
Restrained interfaces feel layered, not loud. Color budget follows 60-30-10 so the eye knows where to act. Depth comes from subtle borders and soft shadows — not heavy drop-shadows or saturated surface fills. This skill keeps surfaces readable in light and dark mode without decorative noise.
Hard Rules (Non-Negotiable)
- 60% canvas/background, 30% structural surface (cards/sidebars), 10% accent (interactive). Measured on a screenshot of a typical viewport — not token counts, class names, or “accent is on the CTA.” Sample major regions from the image. One primary accent hue carries CTAs, links, and focus; neutrals carry everything else. See surface roles in reference/elevation-tokens.md. Fail if structural area is ~0%.
- A list, table, or board is an L1 surface. It must have a 1px subtle border, or a one-step background shift and hairline row/column dividers. A table of text on L0 canvas is a fail.
- “Borders rare” / paper profiles still require hairlines on lists. Stripping decorative card chrome is fine. Stripping the table frame is not.
- Elevation via 1px subtle border first. Every raised surface (L1+) defines separation with a 1px border at low contrast before any shadow. Light mode: border alpha ~6–12% of foreground. Dark mode: border alpha ~8–14% of foreground or a +4–8% lightness step.
- Soft diffused shadows: alpha <0.08 in light mode. If shadow is used,
box-shadowcolor alpha must stay below 0.08. Prefer large blur, low spread, y-offset 1–4px. Never hard drop-shadows (high alpha, tight blur, strong offset, orfilter: drop-shadowmimicking a sticker edge). - Dark mode: subtle edge lighting, not glow stacks. Use top-edge highlights (
inset 0 1px 0 rgba(255,255,255,0.04–0.08)) and border contrast instead of bright outer glows. Shadow alpha may be higher on dark canvas but must remain diffuse — no crisp dark halos.