Ashung/Automate-Sketch

Add a 'Swap Library variables with local variables' option

johrclaessens opened this issue · 0 comments

I'm currently using a library with a set of variables that we copy to a new project file. This works like a charm with Automate Sketch, but I'm missing an option to replace all references inside symbols with the local layer styles, colors and font styles that I'm using.

Screenshots

  1. A symbol from the library, with a reference to a layer style in that library

Screenshot 2022-05-05 at 23 46 31

  1. Selecting the local style by navigating the menu

Screenshot 2022-05-05 at 23 48 05

Proposal

A function that replaces all references to layer styles, colors and font styles in a library with an eponymous variable in the local variable.
This should apply to layer styles, font styles and symbols.