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
Describe the bug
There seems to be a bug in the type field of some tokens after using token-transformer with --expandTypography=true. Expanded typography tokens have types that are in singular form (fontSize, fontWeight, ...) whereas regular typo tokens have types in plural form (fontSizes, fontWeights, ...) as they are exported from the figma plugin.
EDIT: I found out that this happens due to the value keys of the typography token being used as the type for the expanded tokens. (if that makes sens 😅 )
To Reproduce
Steps to reproduce the behavior:
Transform this input JSON (exported from Figma Tokens)
Expected behavior
I'd expect the types to be exactly the same instead of the expanded ones being singular and the others being in the plural form. Preferably they'd all be in the singular form for consistency with other types. So, like this:
Describe the bug
There seems to be a bug in the type field of some tokens after using token-transformer with --expandTypography=true. Expanded typography tokens have types that are in singular form (fontSize, fontWeight, ...) whereas regular typo tokens have types in plural form (fontSizes, fontWeights, ...) as they are exported from the figma plugin.
EDIT: I found out that this happens due to the value keys of the typography token being used as the type for the expanded tokens. (if that makes sens 😅 )
To Reproduce
Steps to reproduce the behavior:
Transform this input JSON (exported from Figma Tokens)
with the command
The result is (notice the difference in the
type
fields):Expected behavior
I'd expect the types to be exactly the same instead of the expanded ones being singular and the others being in the plural form. Preferably they'd all be in the singular form for consistency with other types. So, like this:
The text was updated successfully, but these errors were encountered: