Add Polaris palette#19
Merged
Merged
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.
Summary
Adds the Shopify Polaris color palette, sourced from the foundational base ramps in
@shopify/polaris-tokens(thecolors.tsmodule — these are the underlying hue × step scales, not the semantic surface/text tokens layered on top). 13 hue families (gray, azure, blue, cyan, green, lime, magenta, orange, purple, red, rose, teal, yellow), each with 16 steps from 1 (lightest) to 16 (darkest). Alpha-only ramps (blackAlpha,whiteAlpha) are excluded since this repo is sRGB / light-mode only.Hand-tuning evidence
Sampled OKLCH L across hues at each step (azure, blue, green, red, yellow, purple). Per-step lightness standard deviation:
σ exceeds 0.02 across the mid/dark range (peak ≈ 0.032 at step 13), so L is clearly not algorithmically locked — these are designer-curated ramps. Polaris designers tune each hue's progression for perceptual balance, especially the chromatic mid-tones (steps 10–14) where ramps shift from chroma growth into darkening. Design rationale: https://polaris.shopify.com/tokens/colors
Files
data/raw/polaris.ts— verbatim source frompolaris-tokens/src/colors.ts.data/colors/polaris.json— normalized{hue: {step: hex, ...}}, light-mode sRGB.data/palette_metadata.json— Polaris entry inserted as 8th entry, right after Primer.data/hues.json,data/palettes.json— regenerated vianpm run build:data.Test plan
npm run build:dataruns clean (no errors).Generated by Claude Code