Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: use oklab implementation from W3C #350

Merged
merged 1 commit into from
Aug 17, 2024
Merged

fix: use oklab implementation from W3C #350

merged 1 commit into from
Aug 17, 2024

Conversation

gka
Copy link
Owner

@gka gka commented Aug 17, 2024

Previously chroma.js used the original OKLab implementation by Björn Ottosson. When comparing the results with W3C oklab() colors as rendered in web browsers I realized some subtle differences, so I ended up replacing the chroma.js implementation with the one kindly published by W3C.

This PR also fixes the issue that CSS colors in lab() and lch() space were not interpreted using the D50 white illuminant.

@gka gka merged commit f5e7432 into main Aug 17, 2024
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.

1 participant