-
-
Notifications
You must be signed in to change notification settings - Fork 146
Open
Description
Hi, thanks for the great plugin. While working with it, I noticed that when exporting JSON, it does not take into account the "Include token prefix in token names" setting when generating aliases. That's why when converting JSON to CSS, I get an error that "Reference doesn't exist".
Here is an example of a generated file with one token and an alias:
{
"color": {
"gray": {
"200": {
"type": "color",
"value": "#d3d3d3ff",
"blendMode": "normal",
"extensions": {
"org.lukasoppermann.figmaDesignTokens": {
"collection": "Primitives",
"scopes": [
"ALL_SCOPES"
],
"variableId": "VariableID:1:4",
"exportKey": "variables"
}
}
}
},
"text": {
"secondary": {
"type": "color",
"value": "{primitives.color.gray.200}",
"extensions": {
"org.lukasoppermann.figmaDesignTokens": {
"collection": "Tokens",
"scopes": [
"ALL_SCOPES"
],
"variableId": "VariableID:1:10",
"exportKey": "variables"
}
}
}
},
}
}
I managed to fix it, so I'm ready to create a PR.
Metadata
Metadata
Assignees
Labels
No labels
