You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello there :)
I'm using the following list of transforms "transforms": ['attribute/cti', 'name/cti/kebab', 'time/seconds', 'content/icon', 'color/css', 'size/px'], taken from the transform group "scss" listed in the documentation. I have added size/px, in order to add px to the number of the values, but the files I get after the build are still without the px:
The size/px was just an example as I was testing, but indeed what I want to is to have rem values :) (yes, I already tried adding size/rem transform instead of the CSS one and it didn't work either :/
The input are tokens exported from Tokens Studio for Figma, they look like this:
The DTCG type for font sizes is called "fontSize", not "fontSizes".
If I'm not mistaken, you're probably using Tokens Studio figma plugin, they are not aligned with the DTCG spec with regards to how they're naming some of the types.
You can use this package https://github.com/tokens-studio/sd-transforms -> 'ts/size/px' is the name of the transform, which matches the Tokens Studio types (fontSizes, spacing, sizing etc.)
Hello there :)
I'm using the following list of transforms
"transforms": ['attribute/cti', 'name/cti/kebab', 'time/seconds', 'content/icon', 'color/css', 'size/px'],
taken from the transform group "scss" listed in the documentation. I have addedsize/px
, in order to addpx
to the number of the values, but the files I get after the build are still without thepx
:The
size/px
was just an example as I was testing, but indeed what I want to is to haverem
values :) (yes, I already tried addingsize/rem
transform instead of the CSS one and it didn't work either :/The input are tokens exported from Tokens Studio for Figma, they look like this:
Do you have any idea why is this happening? Perhaps I'm missing something?
Thank you in advance! :)
The text was updated successfully, but these errors were encountered: