aboutsummaryrefslogtreecommitdiff
path: root/scripts/theme-studio/app-util.js
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-06-10 00:19:34 -0500
committerCraig Jennings <c@cjennings.net>2026-06-10 00:19:34 -0500
commit74db9a526503c9cc0c273f4523ad7ef76b61fb64 (patch)
treea95aef60f22ca6ee5cd13d2e906c541c268dae41 /scripts/theme-studio/app-util.js
parentebe18d51ad99fe0a5916516c47d5dda3315e9add (diff)
downloaddotemacs-74db9a526503c9cc0c273f4523ad7ef76b61fb64.tar.gz
dotemacs-74db9a526503c9cc0c273f4523ad7ef76b61fb64.zip
feat(theme-studio): add color-family sort
sortFamilies orders the strips for display: neutrals first by lightness, then chromatic families by base hue, ties broken by base lightness then base hex. Each family's members come back sorted dark to light. Hue is compared rounded so a sub-degree hue hair from gamut quantization doesn't outrank lightness. Sorting is display-only; the stored palette order is untouched. Phase 2 of the color-families spec, pure logic. Four node tests cover the hue order, the neutral pin, within-family lightness order, and the (hue, then lightness) ordering invariant. Suite 91 to 95 green.
Diffstat (limited to 'scripts/theme-studio/app-util.js')
0 files changed, 0 insertions, 0 deletions