Skip to content

Releases: tokens-studio/sd-transforms

v0.6.0

04 Apr 13:46
e65216e

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

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

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

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

Choose a tag to compare

Patch Changes

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

v0.5.3

19 Mar 14:59
21fecf0

Choose a tag to compare

Patch Changes

  • a75c420: Add engines property to pkg.json, NodeJS 15.14.0 and higher supported.

v0.5.2

17 Mar 18:28
0c77dde

Choose a tag to compare

Patch Changes

  • a94d137: Transform typography to make use of transform fontweights map for the fontWeight property.
  • 81362be: Account for token values being of type number in certain transformers.

v0.5.1

07 Mar 15:22
ec8d0f3

Choose a tag to compare

Patch Changes

  • 48846b3: Fix checkAndEvaluateMath to deal with regular values with spaces in them like linear-gradient(a, b1 b2, c1 c2).
  • 4f6da6c: Return original value if mapped fontweight is undefined.

v0.5.0

06 Mar 22:09
9407e02

Choose a tag to compare

Minor Changes

  • 2ad1630: BREAKING: remove attribute/cti transform from tokens-studio transform group, this is redundant. However, users might rely on it, therefore it is a breaking change.

v0.4.6

05 Mar 22:07
54d1537

Choose a tag to compare

Patch Changes

  • 71d12d2: Improve checkAndEvaluateMath for expressions with more than one unit.