figma-plugin
figma-plugin copied to clipboard
Add support for Expand Composition tokens in Export
We should add support for expanding composition tokens in the Export modal
An expanded composition token should have a value and a type property. The type property should have the type of the property that was set.
For example, the following input
{
"cardDefault": {
"type": "composition",
"value": {
"borderWidthLeft": "{sizing.md}",
"borderRadius": "{radii.md}
}
}
would produce this output:
{
"cardDefault": {
"borderWidthLeft": {
"value": "{sizing.md}",
"type": "borderWidth"
},
"borderRadius": {
"value": "{radii.md},
"type": "borderRadius"
}
}
This is connected to #1000