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 | 17e34ca79ac900a14f709e67eafe9cd17aa3c761 (patch) | |
| tree | a1c617a1d7ececb417922196d6ed6eb6acd5290f /scripts/theme-studio/dupre.json | |
| parent | c537a1cbb476ed565c5f4fd160ccf77420b89278 (diff) | |
| download | dotemacs-17e34ca79ac900a14f709e67eafe9cd17aa3c761.tar.gz dotemacs-17e34ca79ac900a14f709e67eafe9cd17aa3c761.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/dupre.json')
0 files changed, 0 insertions, 0 deletions
