CVD-safe default categorical palette#61
Open
FarhanAliRaza wants to merge 1 commit into
Open
Conversation
Merging this PR will not alter performance
Comparing Footnotes
|
…lette Tableau10's adjacent red/green collapsed to dE 1.2 under deuteranopia and half its slots sat below the chroma floor. The new eight-slot palette keeps every step in the OKLCH lightness band shared by light and dark surfaces (L 0.48-0.67) and passes the validator on both reference surfaces: worst adjacent-pair CVD dE 8.5 (>=8 target), worst adjacent normal-vision dE 19.1 (>=15 floor), all slots >=3:1 contrast. Slot order is the safety mechanism (adjacency drives the dE gate), so the palette must be re-validated before any re-order or extension. Updates the hardcoded segment colors in the Reflex demo app and the visual-regression chrome shell.
FarhanAliRaza
force-pushed
the
cvd-safe-default-palette
branch
from
July 17, 2026 17:38
b605467 to
5701f77
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Replaces the Tableau10 default categorical palette with an eight-slot CVD-safe palette (§20/§36 default theme).
Why: Tableau10's adjacent red/green pair collapsed to ΔE 1.2 under deuteranopia — effectively indistinguishable — and slots 1/5/7/9/10 sat below the chroma floor.
The new palette keeps every step in the OKLCH lightness band shared by light and dark surfaces (L 0.48–0.67) and validates against both reference surfaces (
#fcfcfb/#1a1a19):The slot order is the safety mechanism — adjacency drives the ΔE gate — so the config comment now warns against re-ordering or extending without re-running the validator.
Also in this PR
examples/reflex/assets/charts/*.html, which also picks up the current embedded render client (colormap stops, colorbar chrome CSS) from recent main commits.Checks
pre-commit run --all-files,ruff check,ruff format --checkall pass.