diff options
| author | Craig Jennings <c@cjennings.net> | 2026-06-08 20:44:33 -0500 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2026-06-08 20:44:33 -0500 |
| commit | 163d37305ce74254e8ad42c8a12544c06619ef14 (patch) | |
| tree | a1eebb65bc84d7049dc0be3f2fe6513638f33d2f /scripts/theme-studio/package-inventory.json | |
| parent | be6e89087a23384e324d6329163dda62b18e34dc (diff) | |
| download | dotemacs-163d37305ce74254e8ad42c8a12544c06619ef14.tar.gz dotemacs-163d37305ce74254e8ad42c8a12544c06619ef14.zip | |
feat(theme-studio): warn on too-similar palette colors by ΔE
Perceptual-metrics Phase 3. renderPalette now runs a pairwise OKLab ΔE over the palette and warns on any pair below the named DELTAE_MIN threshold (0.02). The warning lists the closest pairs first, caps at five, and appends "and N more" so a noisy palette never hides the count. Each chip's tooltip gains its nearest-neighbor ΔE.
paletteDeltas computes the pairs and the per-color nearest distance in one pass, feeding both the chip titles and the warning list. Palette names go through esc before they reach the warning markup. A #deltatest headless guard asserts a near-identical pair fires and names itself, a spread palette stays quiet, and a tight cluster caps at five in ascending order with the overflow suffix.
Diffstat (limited to 'scripts/theme-studio/package-inventory.json')
0 files changed, 0 insertions, 0 deletions
