Add Radix Colors palette#22
Open
LeaVerou wants to merge 1 commit into
Open
Conversation
✅ Deploy Preview for colorjs-palettes ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
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.
Adds Radix Colors as a new palette.
Source
Imported the light-mode solid sRGB scales from
radix-ui/colors/src/light.ts. Alpha (A) and Display P3 (P3/P3A) variants are excluded, matching the single-coherent-set convention used elsewhere in this repo (e.g.primer-light).Radix ships 30 light scales of 12 steps each: 6 neutrals (gray, mauve, slate, sage, olive, sand) and 24 chromatic hues (tomato, red, ruby, crimson, pink, plum, purple, violet, iris, indigo, blue, cyan, teal, jade, green, grass, brown, bronze, gold, sky, mint, lime, yellow, amber, orange).
Why it's hand-tuned
Radix's docs explicitly describe a hand-designed system where each of the 12 steps has a fixed semantic role (app background, subtle background, UI element backgrounds, borders, solid colors, hover/active states, low/high-contrast text). Step 9 in particular is the "pure" brand color and is not constrained to fit a lightness grid — it is chosen per hue for its intrinsic appearance (e.g. yellow9
#ffe629is intentionally much lighter than violet9#6e56cf).OKLCH sanity check across 8 representative hues (gray, red, blue, green, amber, violet, orange, pink) confirms this — L stddev per step:
At step 9 the lightness spread is ~0.31 between the lightest and darkest hue — nothing like the σ≈0.01 grid-lock that flagged Pico as algorithmic. Even the "in-grid" steps 6-8 have σ that grows with darkness (0.012-0.021), consistent with per-hue tuning rather than a single L curve applied across hues.
Changes
data/raw/radix-light.js— upstream light-mode solid sRGB scalesdata/colors/radix.json— normalized to{hue: {level: hex}}data/palette_metadata.json— entry added as the 2nd item (afteropencolor)data/palettes.json+data/hues.json— regenerated vianpm run build:dataGenerated by Claude Code