This 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.
Creates layers based on local styles.
This can be useful to transfer style from a project to another, or for libraries that already have styles created, but needs to make bulk changes.
Extract Styles will generate layers in the current page starting at position 0. (you'll be zoomed at the created layers)
Is a multi-purpose action for creating, renaming or updating styles based on layer properties.
- Create, when there is no match between layer and existing styles.
- Rename, when there is a style attached to the layer and no style with desired new name.
It is much faster to use bulk rename feature of figma to rename layers
Cmd
R
(Mac) orCtrl
R
(Windows). More info - Update, when there is a name match.
Currently, this action apply the styles based only on layer name and local styles found.
Works on selected layers.
- All Types
- By Fill Type
- By Stroke Type
- By Text Type
- By Effect Type
- By Grid Type
- Notification timeout: changes the duration of all notification alerts that appears while interacting with Styler.
- Show last style in description: appends the name of the latest style that was applied to the layer to the current style description.
This is working nice with Update using local styles and remote styles that were applied before making the changes.
- Update using local styles: this option will change the behaviour of Generate Styles action and as results, local styles can be used as base to modify an existing style.
Is working only with local styles and sometimes produces unexpected results.
For example, if you'll try to rename layers from layer-01, layer-02, layer-03 to layer-00, layer-01, layer-02, instead of renaming, it will only rename 1 of them, and update the rest. - Extend name match: also changes the behaviour of Generate Styles by looking for a partial name match between layer name and style name, as results will be many styles found.
Use this with caution. - Texts per column and Frames per row controls the grid of the extracted layers.
- Reverse generation layers: change the order of how styles are created when using Generate styles
- Some of the Type details of the text layers are not saved into the style. This is also a limitation of the API... 😭
[Fixed]1. While trying to rename the styles using underscore_
or point.
prefixes, the style will not change the publish status (it will not become unpublish). This is a limitation of the API.☹️
[WIP]After you create styles, you cannot reorder them using Figma API. 😔
- Any change can be Undo.
- Try to avoid same name for multiple layers. It will create a single style, but it will update its properties.
- 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.
- For text layers, styler gets only the text properties by default, but now is possible to get other properties by adding
+
as prefix to the layer name.
Many thanks to Cristi Nica for support.
Inspired by Sketch Style Generator made by Luca Orio.