Skip to content

v4.5.2

Choose a tag to compare

@hefler hefler released this 16 Oct 09:19
· 2 commits to main since this release
dd7e30f

What's Changed

  • Fix colours linked at their own opacity exporting as NaN/null by @hefler in #31

Export

  • A colour variable that links to another colour at its own opacity — e.g. palette/white at 97%, or a colour with a linked opacity — no longer exports as #NaNNaNNaN (CSS, JS, CSV) or null (JSON).
  • CSS & Tailwind keep the links: color-mix(in srgb, var(--palette--white) 97%, transparent).
  • JSON writes the colour it renders as in $value and keeps the links in $extensions.figma.composedColor; import rebuilds the linked colour + opacity from it.
  • JavaScript & CSV write the colour it renders as.

Dependencies

  • Patched shell-quote (critical), brace-expansion and source-map-js advisories in build tooling.

Full Changelog: v4.5.1...v4.5.2