Closed atlas-ui closed 1 year ago
Hi!
Noticed a funky bug with a recent export of Figma variables where certain rational numbers are exporting as non-rational.
Here is a screenshot of the tokens in Figma Variables as expected:
Below is the json output, see number-3 and number-4:
number-3
number-4
{ "testing": { "mode 1": { "number-1": { "type": "size", "value": 1, "extensions": { "org.lukasoppermann.figmaDesignTokens": { "mode": "Mode 1", "collection": "Testing", "scopes": [ "ALL_SCOPES" ], "variableId": "VariableID:11014:71479", "exportKey": "variables" } } }, "number-2": { "type": "size", "value": 1.25, "extensions": { "org.lukasoppermann.figmaDesignTokens": { "mode": "Mode 1", "collection": "Testing", "scopes": [ "ALL_SCOPES" ], "variableId": "VariableID:11014:71480", "exportKey": "variables" } } }, "number-3": { "type": "size", "value": 1.7799999713897705, "extensions": { "org.lukasoppermann.figmaDesignTokens": { "mode": "Mode 1", "collection": "Testing", "scopes": [ "ALL_SCOPES" ], "variableId": "VariableID:11014:71481", "exportKey": "variables" } } }, "number-4": { "type": "size", "value": 2.3299999237060547, "extensions": { "org.lukasoppermann.figmaDesignTokens": { "mode": "Mode 1", "collection": "Testing", "scopes": [ "ALL_SCOPES" ], "variableId": "VariableID:11014:71482", "exportKey": "variables" } } } } } }
Should be fixed, this is an issue with how figma handles those values.
Hi!
Noticed a funky bug with a recent export of Figma variables where certain rational numbers are exporting as non-rational.
Here is a screenshot of the tokens in Figma Variables as expected:
Below is the json output, see
number-3
andnumber-4
: