tokens-studio / figma-plugin

Official repository of the plugin 'Tokens Studio for Figma' (Figma Tokens)
https://www.figma.com/community/plugin/843461159747178978
MIT License
1.35k stars 194 forks source link

2830 20 font weight tokens using numbers like 300 are not created properly #2836

Closed robinhoodie0823 closed 3 months ago

robinhoodie0823 commented 3 months ago

Why does this PR exist?

Current plugin has problem for creating fontWeight tokens as variables in case of its value is a numeric value.

Closes #2830

What does this pull request do?

Figure out the problem and convert numeric value into string value for the function convertFontWeightToFigma.

Testing this change

Additional Notes (if any)

https://github.com/tokens-studio/figma-plugin/assets/103296157/83a3cbd0-8fef-444d-a4c4-5a5edfb25219

changeset-bot[bot] commented 3 months ago

⚠️ No Changeset found

Latest commit: de720f2112d2a8c5152df2f523d7a941ef7f7377

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR