Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: letter spacing tokens were not being generated due to key not be… #13

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

tsuiui
Copy link

@tsuiui tsuiui commented Nov 29, 2022

…ing found in token name lookup

Converted number to string and added the unit (e.g. from 0 to '0em'). '0em' is the hash key needed to find the token name for the letterspacing (e.g., "standard"). Before fix it was just using 0 (as type number) and failing. This code fix also causes undefined or unmatched tokens to not be used in the semantic typography files rather than default them to "regular". Decided to trade-off some obscurity for having to alter the figmagic code if we want to rename a token.

Also removed some incorrect commented out code meant to assign color to the type stye.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant