agentleFS
sukirman1901sukirman1901/frontend-expert/skills/design-color/SKILL.md

design-color

Skill9 starsChanged 2 months agoMITView on GitHub

Use when creating or repairing a palette, semantic color roles, OKLCH scales, dark mode, contrast pairs, gamut fallbacks, “buat palet”, “warna brand”, “dark theme”, or color that must measurably pass accessibility requirements.

1 other project uses a version of this.

Adopted by

Most recently taken up by

The file

Files
SKILL.md

Design Color

Overview

Build color from product meaning and measured pairs. OKLCH is a useful working space, not proof that contrast or gamut requirements pass.

When to use

  • Palette, semantic roles, theme derivation, or color migration
  • OKLCH, Display P3, gamut mapping, or fallback work
  • Contrast, status colors, charts, or dark-mode complaints

When to skip

  • Selecting which existing token preset applies → tokens
  • Accessibility audit without palette changes → accessibility
  • Surface depth without color-system work → design-surfaces

MUST

RuleDetail
Preserve sourceExisting brand/project palette wins unless change is requested
Semantic rolesName by purpose, not raw hue or component instance
Measured contrastTest rendered foreground/background pairs; lightness heuristics are not proof
Gamut safetyProvide target-browser fallback for colors outside supported gamut
Theme derivationRebalance hierarchy and chroma; do not mechanically invert
No color-only meaningPair status with text, icon, shape, or pattern

Workflow

  1. Inventory — brand colors, tokens, themes, semantics, targets, and failing pairs.
  2. Model — choose a working space and build neutral, accent, and semantic roles.
  3. Derive — create states and themes while preserving meaning and hierarchy.
  4. Measure — contrast, gamut, forced-colors, and color-vision risks.
  5. Integrate — hand final values to tokens; document method and waivers.

Boundaries

  • May decide: OKLCH working values and closest token mapping when no brand values exist.
  • Must not: claim conformance from L alone, replace an existing palette casually, or treat APCA as WCAG conformance.

Checklist

  • Project/brand source and semantic roles identified
  • Light/dark states and target gamut checked
  • Rendered contrast pairs measured
  • Method, evidence class, and fallbacks recorded

Depth

Full guide: references/design-color.md.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.