- Fix types export for TypeScript 4.7 ❤️ @pkishorez
- Fix: Add "package.json" to exports map
- Fix: Make minification lossless
- Fix: Minify to name only if color is opaque
- New plugin: Color string minification 🗜
- New
delta
method to calculate the perceived color difference between two colors ❤️ @EricRovell
- Improve
mix
plugin by adding newtints
,tones
andshades
methods ❤️ @EricRovell
- Support "double split complementary" color harmony generation ❤️ @EricRovell & @lbragile
- New
closest
option oftoName
method allows you to find the closest color if there is no exact match
- New plugin: Color harmonies generator ❤️ @EricRovell
- Add new
isEqual
method ❤️ @EricRovell
- New plugin: CMYK color space ❤️ @EricRovell
- Add new
hue
androtate
methods
- Improve the precision of alpha values
- Strict string color parsing conforming to the CSS Color Level specifications
- Simplify package "exports" field to improve different environments support
- Parse a color name disregarding the case
- New
getFormat
utility - Support HWB color strings (CSS functional notation)
- Clamp LAB values as defined in CSS Color Level 4 specs
- Improvement: You can now use every angle unit supported by CSS (
deg
,rad
,grad
,turn
)
- New utility: Random color generation
- Mix colors through CIE LAB color space
- New plugin: Color mixing
- Adjust XYZ, LAB and LCH conversions to the D50 white point (according to the latest CSS specs).
- Support modern CSS notations of RGB, HSL and LCH color functions
- New plugin: CIE LCH color space
- Fix: Do not treat 7-digit hex as a valid color ❤️ @subzey
- Parser update: Turn NaN input values into valid numbers ❤️ @subzey
- New plugin: CIE LAB color space
- Make bundle 1% lighter
- Add
isValid
method
- An official production-ready release
- Sort named colors dictionary for better compression ❤️ @subzey
- Ignore
null
input in the parsers
- Shorten conversion method names (
toRgba
totoRgb
, etc)
- New plugin: HWB color model
- More accurate HSL and HSV conversions
- Names plugin: Support "transparent" keyword
- Improve package exports
- Add CommonJS exports
- New plugin: a11y (Accessibility)
- New plugin: CIE XYZ color space
- 20% speed improvement ❤️ @jeetiss
- 100% code coverage
- Make plugin available in Parcel which doesn't support exports map yet
- Fix names plugin TS declarations export
- Documentation
- New plugin: CSS color names
- Make the library ESM-first
- Add code coverage reports
- Implement Plugin API
- Support 4 and 8 digit Hex
- Basic API