agentleFS
cumabozkurtcumabozkurt/god-of-design/skills/god-color/SKILL.md

god-color

Skill0 starsChanged 2 months agoMITView on GitHub

Color theory and palette engineering - harmony schemes, 60-30-10, OKLCH scales, semantic color roles, dark mode, WCAG contrast math, color-blind safety, cultural color meanings, gradients and print vs screen color. Use when choosing, fixing or explaining colors, building a palette from a brand color, or checking contrast.

The file

We split this skill into the rules it gives an agent

6 rules. About 0 are common, 4 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈4

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Build scales in OKLCH: Use 11 steps (50–950) per hue with steady lightness steps and slightly reduced chroma at the extremes.

    line 18
  2. Very specific:

    Assign roles: Use bg, surface, surface-raised, border, text, text-muted, accent, accent-contrast, success, warning, danger, info, focus.

    line 19
  3. Very specific:

    Design dark mode separately: Don't just invert. Use dark grey surfaces (oklch(0.18–0.22 …)), lighter surfaces for elevation, desaturated …

    line 21
  4. Distinctive:

    Test colour-blind safety: Never encode meaning by hue alone.

    line 22
  5. Distinctive:

    Use close hues (≤ 60° apart) or one hue + neutral.

    line 51
  6. Distinctive:

    Add 2–4% noise to prevent banding on large areas.

    line 52

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

God Color

Procedure

  1. Start from meaning, not from a wheel. What should the colour do: signal trust, appetite, energy, calm, heritage? Check cultural meaning for the audience (references/color-reference.md, cultural table).
  2. Pick an anchor. Choose one brand or accent hue. Everything else is neutral or supporting.
  3. Choose a harmony (see below) and a proportion: the 60-30-10 rule (dominant neutral / secondary / accent) is a safe default. Bold styles may use 50-40-10.
  4. Build scales in OKLCH. Use 11 steps (50–950) per hue with steady lightness steps and slightly reduced chroma at the extremes. OKLCH keeps perceived lightness consistent across hues, unlike HSL.
  5. Assign roles. Use bg, surface, surface-raised, border, text, text-muted, accent, accent-contrast, success, warning, danger, info, focus. Components use roles, never raw hex.
  6. Check contrast. Text ≥ 4.5:1 (large text ≥ 18.66px bold / 24px regular: ≥ 3:1). UI components and graphics ≥ 3:1 (WCAG 1.4.3, 1.4.11). Use the formula in the reference, or run node scripts/contrast.mjs <fg> <bg> (path relative to this skill folder).
  7. Design dark mode separately. Don't just invert. Use dark grey surfaces (oklch(0.18–0.22 …)), lighter surfaces for elevation, desaturated accents, and off-white text (oklch(0.93 0 0)).
  8. Test colour-blind safety. Never encode meaning by hue alone. Add icons, labels or patterns. Avoid pairing red and green as the only cue.

Harmony schemes

SchemeConstructionFeelUse
MonochromaticOne hue, varied L/CCalm, premiumMinimal brands, dashboards
Analogous3 neighbours (±30°)Harmonious, naturalWellness, food
ComplementaryOpposite (180°)Vibrant, high tensionCTAs, sports, posters
Split-complementaryBase + two neighbours of its complementLively but balancedMarketing sites
Triadic3 at 120°Playful, boldKids, Bauhaus, Memphis
Tetradic / square4 at 90°Rich, hard to balanceIllustration
Neutral + one accentGreys + single hueModern, focusedSaaS, Swiss, editorial

Fast palette recipe (from one brand hex)

accent      = brand hex (OKLCH L between 0.45 and 0.65 for text-on-white or white-on-accent)
bg          = oklch(0.985 0.005 <brand hue>)      # tinted off-white
surface     = oklch(0.97 0.007 <hue>)
border      = oklch(0.90 0.01 <hue>)
text        = oklch(0.22 0.02 <hue>)              # tinted near-black; no pure #000 on #fff
text-muted  = oklch(0.48 0.02 <hue>)              # must still hit 4.5:1 on bg
accent-contrast = white or text, whichever passes 4.5:1 on accent

Gradients that don't look generic

  • Interpolate in OKLCH (linear-gradient(in oklch, …)) to avoid muddy middles.
  • Use close hues (≤ 60° apart) or one hue + neutral. Default purple→blue→pink reads as AI slop.
  • Add 2–4% noise to prevent banding on large areas.

Screen vs print

  • Screen: sRGB by default. Display-P3 for vivid accents via color(display-p3 …) with an sRGB fallback.
  • Print: CMYK conversion shifts saturated RGB (especially greens, blues and oranges). Specify Pantone/CMYK for brand colours. Rich black for large areas C60 M40 Y40 K100; body text 100K only. See god-print.

See references/color-reference.md for contrast math, OKLCH ramps, curated palettes, cultural colour meanings and colour-blind-safe sets.

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.