Additional context needed: existing brand colors.
Introduce color as hierarchy, meaning, and atmosphere. Preserve confirmed brand and semantic conventions; do not replace a visual world under the guise of colorizing it.
Read DESIGN.md, tokens, assets, current themes, and representative states. Identify:
If a new identity is required, use new-work.md. Ask only when a binding brand decision cannot be inferred.
Name the intended emotional temperature, dominant relationship, contrast range, and color dosage before editing. The strategy may be restrained or immersive; it must follow the brief and selected world rather than a fixed percentage rule.
Build roles, not a bag of swatches:
Use the project's existing color space. For a new web palette, prefer OKLCH because lightness and chroma can be adjusted predictably. Choose hue from product meaning and visual direction, never from a default category association.
Decoration without a relationship to hierarchy, state, content, or the visual world is not a color strategy.
Verify computed foreground/background pairs:
| Content | WCAG AA minimum |
|---|---|
| body text | 4.5:1 |
| large text | 3:1 |
| controls, icons, focus indicators | 3:1 |
Do not rely on eyesight alone. Check interactive states, overlays, text on images, disabled content, and both themes. Simulate common vision deficiencies. Information conveyed by color also needs text, shape, iconography, or position.
When deriving OKLCH ramps, vary lightness and reduce chroma near white and black. Do not keep high chroma at extreme lightness merely to make the math uniform. Prefer explicit colors over chains of translucent overlays when alpha would make contrast context-dependent.
When the palette earns its place, hand off to /impeccable polish for the final pass.
When invoked from live mode, every variant declares a color-amount parameter. Author CSS against var(--p-color-amount, 0.5) so the user can move from neutral to the variant's full color strategy without regeneration.
{"id":"color-amount","kind":"range","min":0,"max":1,"step":0.05,"default":0.5,"label":"Color amount"}
Add at most two variant-specific parameters, such as palette, temperature, or tint behavior. Follow live.md's parameter contract.