Skip to content

v2.0.0

Choose a tag to compare

@danburzo danburzo released this 13 Oct 10:26
· 117 commits to main since this release

⚠️ Breaking changes

➸ Please consult the Migration guide to upgrade from version 1.x to 2.0.

  • xyz mode renamed to xyz50, along with all functions referencing it (e.g. convertLabToXyz becomes convertLabToXyz50) (#152). mode: 'xyz' is no longer supported.
  • <number> for L no longer valid in lab() and lch() (#151)

New features

  • All color components in all CSS color syntaxes now accept the none keyword, in line with the latest changes in the CSS Color 4 spec. (w3c/csswg-drafts#6107)
  • Allow any number of components in the color() CSS syntax, and fill in omitted components with 0.