Styler is a plugin for Figma that generates styles based on selected layers.
Basically, you can control your styles by changing layer properties and updating the styles.
- Generate Styles
- Create: creates styles, when there is no match between layer and existing styles.
- Rename: renames styles, when there is a style attached to the layer and no style with desired new name.
- Update: update styles, when there is a name match.
- Apply Styles: apply styles to the selected layers.
- Detach Styles: detach styles of the selected layers.
- Remove Styles: remove styles based on the selected layers.
- Remove By Type: Fill, Stroke, Text, Effect, Grid
It is much faster to use bulk rename feature of figma to rename layers
Cmd
R
(Mac) orCtrl
R
(Windows). More info
Try to avoid same name for multiple layers. It will create a single style, but it will update its properties.
- [Figma limitation] While trying to rename the styles using underscore
_
or point.
prefixes, the style will not change the publish status (it will not become unpublish).☹️ - [Figma limitation] After you create styles, you cannot reorder them using Figma API. 😔
- Any change can be Undo.
- Only Local Styles are supported. Still... You can use external styles to update local ones.
- There is no support for Groups and I don't plan to support it.
- The plugin, extract only text properties from text layers.
- For layer that contains both fill and stroke properties, the plugin will add automatically a suffix to the style name
-fill
and-stroke
, otherwise the style name will be exactly as the layer name. I plan to expand this.
Many thanks to Cristi Nica for support.
Inspired by Sketch Style Generator made by Luca Orio.