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

Allow users to select which type of styles to create

Open leovogel opened this issue 3 years ago • 2 comments

Is your feature request related to a problem? Please describe. I sometimes create a new style in Figma Tokens that should exist in Figma, sometimes even creating several or dozens at a time, and I want to have Figma Tokens create all of those new styles for me in Figma. However I manage my color styles and typography styles in separate files from my main design system file. When I click Create Styles in Figma Tokens it creates all three Figma Styles and I then need to delete the two groups that don't belong in the file I'm working in (such as typography and shadows when working on my Colors file).

Describe the solution you'd like Similar to how you can import a specific group of styles I want to be able to create a specific group of styles by selecting the styles I want in a checklist.

Create Styles [ ] Color Styles [ ] Typography Styles [ ] Shadow Styles

Describe alternatives you've considered The only alternative would be to move all of my color and typography styles into my main design system file but I don't want to do this as I find it easier to manage everything by keeping them separate. I have also had issues when working with Zeroheight that I was told could be mitigated by keeping them separate.

Additional context None

leovogel avatar May 25 '22 18:05 leovogel

Thanks for the feedback! I have something like that in mind for a revamped Styles functionality, where you're able to choose what styles to create (like in Import).

I'll add this one to the Tracking issue as it covers one of the items!

six7 avatar May 28 '22 07:05 six7

We'll be moving forward with this issue like this:

There's going to be one Styles button in the bottom.

This will open a modal that houses both Import and Create.

image image

You'll be able to choose

  • what type of styles to create (typography, color, effect)
  • what token sets to consider (if for example you only want to create some sets in file A but other styles in file B - think Primitives / component specific tokens

six7 avatar Jul 06 '22 09:07 six7