Skip to content

v0.20.0

Compare
Choose a tag to compare
@danburzo danburzo released this 05 Aug 10:48
· 141 commits to main since this release

New features

  • culori.parse() now accepts the color() notation; this makes Culori understand things like color(display-p3 0.5 0.1 0.2 / 0.75), as well as any string it produces via culori.formatCss().
  • culori.formatCss() produces a CSS-compatible string representation of the color, where color spaces are generally serialized as color(--mode), unless they're predefined (in which case we use their appropriate CSS identifier, e.g. color(display-p3)), or they have their own functional notation (in which case we use that, e.g. lab()).