figma-plugin
figma-plugin copied to clipboard
[Bug]: Trying to create variables from Opacity tokens does not create any variables
Describe the bug
If you have an opacity token and you try to create a variable out of it, it won't work. If you change type to number
it will work.
To Reproduce Steps to reproduce the behavior:
- Create an opacity token with value 0.5
- Create a theme group that would lead to a valid collection
- Click Create variables
Expected behavior Variable is created
{
"large": {
"value": "0.5",
"type": "opacity"
},
"largex": {
"value": "0.5",
"type": "number"
},
"large2": {
"value": "{largex} / 2",
"type": "number"
}
}