patternfly / design-tokens

MIT License
1 stars 8 forks source link

Transformer - Extra `px` on the default box-shadow color tokens #24

Closed srambach closed 5 months ago

srambach commented 7 months ago

Adding tokens.attributes.type === 'box-shadow' in StyleDictionary.registerTransform() adds an extra px onto the default box-shadow color tokens (but not dark?)

_Originally posted by @srambach in https://github.com/patternfly/design-tokens/pull/20#discussion_r1495209630_

Adding that transform is necessary to properly generate box shadow tokens, but maybe there's another way to accomplish that without adding the 'px' to the wrong tokens.

github-actions[bot] commented 5 months ago

:tada: This issue has been resolved in version 1.2.1 :tada:

The release is available on:

Your semantic-release bot :package::rocket: