Skip to content

Releases: tokens-studio/sd-transforms

v0.8.3

19 Apr 18:58
f9119ce
Compare
Choose a tag to compare

Patch Changes

  • acd3ddb: Evaluate math expressions within complex value types like border, typography, shadow.

v0.8.2

19 Apr 13:44
ec4732e
Compare
Choose a tag to compare

Patch Changes

  • a25a1ff: Add excludeParentKeys option to the transform options, in order to exclude parent keys from your token files. This is useful if you use a single-file export from Tokens Studio Figma Plugin.

v0.8.1

14 Apr 15:47
124cc8c
Compare
Choose a tag to compare

Patch Changes

  • 4d3b98b: Fix package exports paths.

v0.8.0

14 Apr 13:51
e7e3057
Compare
Choose a tag to compare

Minor Changes

  • 3728d90: BREAKING: remove modifier type files, use @tokens-studio/types instead for it.

v0.7.0

14 Apr 10:00
0301a01
Compare
Choose a tag to compare

Minor Changes

  • 2f2cd8c: BREAKING: Register parser that expands composition tokens by default, and optionally typography, border and shadow tokens as well.
  • e23ec38: BREAKING: Register ts/opacity transform, to transform opacity to number between 0 and 1, which is more multi-platform than percentages%. Breaking because people might not expect to have their opacity tokens suddenly as decimal numbers.

v0.6.0

04 Apr 13:46
e65216e
Compare
Choose a tag to compare

Minor Changes

  • cc7d86b: BREAKING: move the following transforms to CSS namespace, since they are CSS-specific transforms:

    • ts/size/letterspacing -> ts/size/css/letterspacing
    • ts/color/hexrgba -> ts/color/css/hexrgba
    • ts/shadow/shorthand -> ts/shadow/css/shorthand
  • cc7d86b: New transform: ts/border/css/shorthand -> transform border objects to CSS shorthand.

  • cc7d86b: BREAKING: turn a few of our transforms from transitive to default transforms, if transitive was not necessary:

    • ts/descriptionToComment
    • ts/size/px
    • ts/size/css/letterspacing
    • ts/size/lineheight
    • ts/type/fontWeight

Patch Changes

  • f320d4a: Keep shadow shorthands as is instead of attempting to transform them again.

v0.5.7

02 Apr 19:21
83488a3
Compare
Choose a tag to compare

Patch Changes

  • 3d73476: Add inset to shadow CSS shorthand if the type is innerShadow.

v0.5.6

28 Mar 18:49
1e95985
Compare
Choose a tag to compare

Patch Changes

  • a824884: Do not use original value for transforms, use transformed value instead.

v0.5.5

26 Mar 14:42
ed77b4b
Compare
Choose a tag to compare

Patch Changes

  • df20034: Allow letter spacing to be a number value, since 0 is a legitimate value for letter spacing.

v0.5.4

23 Mar 23:14
2c2590f
Compare
Choose a tag to compare

Patch Changes

  • 2869382: Use expr-eval to evaluate math functions like roundTo().