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

Allow creation of Variables from sets (when not using Themes)

Open CITguy opened this issue 1 year ago • 4 comments

In #2406 an option Export to Figma is added on clicking the button Styles & Variables

Image

If the user is a non-pro user they will have the option to create variables from sets.

Image

  • The number of enabled sets will be shown
  • ~Show the summary of variables Created, Removed, Changed and Issues~

Image

  • Clicking on Export to Figma will create each set as a variable collection. There will be no modes created when creating variables from sets.

A pro user can also create variables from sets by toggling to Sets

If a user does not have any tokens created the below screen will be shown:

For non-pro user

Image

For pro user

Image


Original issue description

Allow users using the non pro version of the plugin to create variables from sets.

This is now captured in #2302

Describe the bug Clicking Styles & Variables > Create variables doesn't seem to work.

To Reproduce See Screenshots below.

Expected behavior I would expect Local variables to have been updated to include newly created variables.

Screenshots or Screencasts

Step 1: No styles or variables PixelSnap 2023-06-21 at 12 48 15@2x

Step 2: Click "Create variables" PixelSnap 2023-06-21 at 12 48 48@2x

Step 3: Result of Step 2

  • No change in Local variables
  • No feedback to indicate if action started, succeeded, or failed.
  • No console errors or messages to indicate success or failure.

PixelSnap 2023-06-21 at 12 49 00@2x>

CITguy avatar Jun 21 '23 18:06 CITguy

the same happens to me

neiltonline avatar Jun 21 '23 18:06 neiltonline

Make sure you're using Themes and Theme groups, such as creating a theme called Light in a group called Color, another theme called Dark inside the same group. This will create a collection called Colors of the two modes Light and Dark.

https://docs.tokens.studio/variables/creating-variables as well as https://docs.tokens.studio/variables/references

we'll put some video guides out soon, please let us know if the docs aren't helpful 🙏

six7 avatar Jun 21 '23 19:06 six7

So, does it only work if you have the PRO version? Will it be available for the FREE version or will it remain exclusive to the PRO version?

GRosewarneFever avatar Jun 22 '23 08:06 GRosewarneFever

Yes for now it only works for the Pro version. Eventually we will change it so it works for Free too but our focus for now is on making sure it works great with Themes. I get the frustration, but time is limited - if you'd like to contribute PRs are welcome 🙏

six7 avatar Jun 23 '23 17:06 six7