Skip to content

v4.5.0

Choose a tag to compare

@hefler hefler released this 26 Aug 22:58
· 7 commits to main since this release

What's Changed

  • Fix float-point precision, add unit options and DTCG-compliant values by @hefler in #26

Closes #21, #23, #24, #25.

Numbers

  • Decimals no longer export with floating-point noise — 732.8 exports as 732.8, not 732.7999877929688. Every format.

Units

  • New dropdown for numeric variables: none, px or rem, with a root font-size field when rem is chosen. CSS, Tailwind and JSON; JS and CSV keep exporting plain numbers.
  • Import asks for the root font size when a file carries rem values, instead of silently rescaling them.

DTCG

  • JSON now writes dimensions as {"value": 16, "unit": "px"} and colours as the Color Module object, per the 2025.10 spec. One option, on by default, restores the old "16px" and "#ff00ff" strings.
  • $type no longer claims what a value cannot satisfy — an out-of-range fontWeight reports number. Values are never altered. JSON only; the CSV column and JS field are unchanged.
  • Import reads colours in all fourteen colour spaces, converting the wide-gamut ones to sRGB with a warning, and picks a variable's type from its value so a fontWeight of "bold" imports correctly.

CSS

  • The single-dash group separator is now available for plain CSS, not just Tailwind, so text/h1--line-height can export as --text-h1--line-height.

Interface

  • The export preview and the scrollbars are legible in light theme.
  • Long help tooltips became readable footnotes, options are reordered, and the CSS format is named "CSS & Tailwind".

Full Changelog: v4.4.1...v4.5.0