Skip to content

Releases: tokens-studio/sd-transforms

v0.4.5

03 Mar 16:13
3ef8854

Choose a tag to compare

Patch Changes

  • a2b2a22: Account for undefined as a token value in transformers. This may happen if a token value is a reference, but the reference is broken. A fatal error in the transform makes it more difficult for the user to find out that they have broken references and to debug it, therefore we guard against it in our transformers.

v0.4.4

21 Feb 22:56
297d3f1

Choose a tag to compare

Patch Changes

  • e366ac0: Export transformColorModifiers function inside the main entrypoint.
  • b9f179a: Allow passing an output format to the color modify props of Tokens Studio.

v0.4.3

17 Feb 12:13
4d0a277

Choose a tag to compare

Patch Changes

  • 31c81b4: Fix property name modifier -> modify.

v0.4.2

17 Feb 11:31
e0b943a

Choose a tag to compare

Patch Changes

  • 2cff78f: Fix check and evaluate math, don't run it on non-string token values, no longer fails on simple expressions.

v0.4.1

17 Feb 10:54
787516b

Choose a tag to compare

Patch Changes

  • 5718a7b: Fix small bug in transform typography for compose, passes token value instead of full token.
  • 2d4ce90: Change regex for HEXRGBa detection space character from lazy to greedy, to more tightly match the "alpha" number without leading spaces.
  • 22f9859: Add color modifiers transform, see more info.
  • 2d4ce90: Add multi-value support for evaluating math expressions in token values.

v0.4.0

17 Feb 07:59
000e73b

Choose a tag to compare

Minor Changes

  • d4d2bc2: BREAKING: Renames typography transform to clarify it's transformed to CSS-based format.
    Previously transformTypography, now transformTypographyForCSS.

Patch Changes

  • d4d2bc2: Adds a transformer for typography tokens on Jetpack Compose

v0.3.3

14 Feb 09:55
e66ac7f

Choose a tag to compare

Patch Changes

  • 0288c1f: Include missing token types (sizing, borderWidth) in ts/size/px transform matcher.

v0.3.2

13 Feb 08:44
978e26b

Choose a tag to compare

Patch Changes

  • 5826117: Add lineheight tranform for aligning Figma and CSS behaviour. Add transform to assign Tokens Studio description to Style Dictionary comment.

v0.3.1

20 Jan 23:09
cc4f01d

Choose a tag to compare

Patch Changes

  • 631424d: No longer need to commit to using @rollup/plugin-commonjs. We prebundle the dependency that is CJS-only so users don't need to worry about it.

v0.3.0

20 Jan 17:15
ce9ef3a

Choose a tag to compare

Minor Changes

  • 6c35e0e: Add 4 more transforms necessary for dealing with Tokens Studio syntax.