Skip to content

feat: accents.json - #368

Merged
flying-sheep merged 3 commits into
mainfrom
accent-json
Oct 22, 2026
Merged

flying-sheep merged 3 commits into
mainfrom
accent-json

Conversation

@flying-sheep

@flying-sheep flying-sheep commented Oct 22, 2026 •

Copy link
Copy Markdown
Member

To get at that data in a less brittle way.

@netlify

netlify Bot commented Oct 22, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for jade-cajeta-1bcca0 ready!

Name Link
🔨 Latest commit 952a370
🔍 Latest deploy log https://app.netlify.com/projects/jade-cajeta-1bcca0/deploys/6ad9fba697be25384e854eba
😎 Deploy Preview https://deploy-preview-368--jade-cajeta-1bcca0.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@flying-sheep
flying-sheep requested a review from Zethson October 22, 2026 11:52

@Zethson Zethson left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Much better and will help us with scverse-doc

@flying-sheep
flying-sheep merged commit 39f0f33 into main Oct 22, 2026
10 checks passed
@flying-sheep
flying-sheep deleted the accent-json branch October 22, 2026 12:07
Zethson added a commit to scverse/scverse-doc that referenced this pull request Oct 22, 2026
scverse/scverse.github.io#368 moved the package colours into assets/accents.json and generates the --<pkg>-<colour> properties from it in Sass, so main.scss no longer spells them out and the sync failed with --scverse-deep-blue and --scverse-sky-blue missing.
The script now reads accents.json, converts its OKLCH values to sRGB hex, takes each package's first colour as its accent and the second colour for the packages opted in to secondary accents, so far only pertpy.
The generated files are byte-identical except spatialdata, whose rounded OKLCH chroma of 0.2 lies outside sRGB and clips to #00a8ff instead of #40a9ff; 0.158 restores it, so that is fixed on the website rather than here.
Zethson added a commit that referenced this pull request Oct 22, 2026
The OKLCH conversion in #368 rounded its chroma to 0.2, which lies outside sRGB and clips to #00a8ff on sRGB screens.
0.158 reproduces the previous #40a9ff exactly.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants