Skip to content

/palette: four colors from one - #10

Merged
gntrs merged 1 commit into
mainfrom
feat/palette-skill
Nov 26, 2026
Merged

gntrs merged 1 commit into
mainfrom
feat/palette-skill

Conversation

@gntrs

@gntrs gntrs commented Nov 26, 2026

Copy link
Copy Markdown
Owner

a new skill. give it one hex and it returns an accent, a soft tint and a dark, every step made with the golden ratio.

  • accent: the hue turned back 137.5 degrees
  • complementary: same hue, saturation cut by 61.8%, brightness 81
  • contrast: same hue and saturation, brightness times 0.382

skills/palette/palette.mjs does the math, node only. it prints the four colors, the text color to use on each, and the wcag contrast between every pair. --css and --json for the output, --accent-brightness because the method fixes the accent's hue and nothing else. a gray or a near black is refused, there is no hue to turn.

the result is a proposal. main and accent are two hues, so the skill says to pick one as the accent and give the other a job, which keeps it in line with design's one accent.

the method is from this reel: https://www.instagram.com/p/DgF3iQBRcXG/
its worked example (#00B2A9 to #F29F00, #80CFCB, #004541) is in the self test and comes out exact.

checked:

  • node skills/palette/palette.mjs --self-test: 68 lines, all pass
  • bash scripts/check.sh: ok
  • bash scripts/test-install.sh: 107 passed, 0 failed
  • npm test: exit 0
  • installed into a throwaway home and ran the installed script

not checked: install.ps1 (no pwsh here), the skill inside a fresh claude code session.

me and my color taste

@gntrs
gntrs merged commit 85df7e0 into main Nov 26, 2026
4 checks passed
@gntrs
gntrs deleted the feat/palette-skill branch November 26, 2026 22:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant