figma-plugin icon indicating copy to clipboard operation
figma-plugin copied to clipboard

[Bug]: Trying to create variables from Opacity tokens does not create any variables

Open six7 opened this issue 1 year ago • 0 comments

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:

  1. Create an opacity token with value 0.5
  2. Create a theme group that would lead to a valid collection
  3. Click Create variables

Expected behavior Variable is created

CleanShot 2024-01-29 at 09 50 34@2x
{
  "large": {
    "value": "0.5",
    "type": "opacity"
  },
  "largex": {
    "value": "0.5",
    "type": "number"
  },
  "large2": {
    "value": "{largex} / 2",
    "type": "number"
  }
}

six7 avatar Jan 29 '24 08:01 six7