tokens-studio / sd-transforms

Custom transforms for Style-Dictionary, to work with Design Tokens that are exported from Tokens Studio
MIT License
185 stars 28 forks source link

[Bug]: Warning shows in console for some textWeights tokens #233

Closed stonexjacob closed 9 months ago

stonexjacob commented 9 months ago

What happened?

When converting some textWeights tokens, the console throws up the following warning every time that token is referenced:

image

All tokens that referenced these textWeights tokens rendered into CSS fine, and no issues could be found, so the console warnings seem to be bugs.

The warnings trigger both in the online configurator and when using a local install of Style Dictionary. Changing the token values from numeric to descriptive (Light, Bold etc.) didn't affect the warning triggering.

Reproduction

The reproduction is here: https://tinyurl.com/mrx9tcxp

Expected output

Expected not to receive warnings in the console as tokens rendered correctly.

Version

0.9.2

jorenbroekema commented 9 months ago

I've determined that this is the same bug as https://github.com/tokens-studio/sd-transforms/issues/217 so closing this as a duplicate, but I'm actively working on this bug and trying to resolve it :)!