In the Styles Actions, add a new "Sync styles" option which renames Styles according to their connected tokens (via Themes), deletes any styles that are not referenced, and creates new styles that do not exist yet #1196
Labels
Figma non-local styles variables
Publishing comp lib, styles and variables to consume
As users might rename, create or delete new tokens outside of the Plugin or outside of the library file we are in right now, we need to provide a way so users can 1-click Sync styles according to the new JSON.
To do that, let's add a
Sync styles
option to the Styles dropdown.Depending on if the user has an active theme:
Active theme
Not-active theme
We should probably add a Modal that appears and asks if they want to (checkboxes):
One caveat: We should respect the user's setting on
Ignore first part of token name for style
andPrefix style with active theme name
.The text was updated successfully, but these errors were encountered: