What's Changed
- 🎉 NEW: Add support for modern CSS color spaces. This means you can now export and parse CSS colors in
lab()
,lch()
,oklab()
,oklch()
space. - 🎉 NEW: you can now control the standard white reference point for the CIE Lab and CIE Lch color spaces via
setLabWhitePoint
. - Breaking:
color.css()
will no longer return legacy CSS colors likergb(255, 255, 0)
but use modern CSS colors likergb(255 255 0)
instead. - fix: switch to W3C implementation of OKLab color space
- Bump follow-redirects from 1.14.7 to 1.15.6 by @dependabot in #338
- Bump @babel/traverse from 7.16.10 to 7.25.2 by @dependabot in #339
- chore: remove invalid file by @zyyv in #340
- docs: fix dead links by @zyyv in #345
- fix: not
round
forhsl2rgb
by @zyyv in #344 - pref: optimize test by @zyyv in #341
- fix: repair non-default imports by @gka in #348
Full Changelog: v2.6.0...v3.0.0