sigtm / sketch-style-libraries

Sync layer & text styles from any Sketch Library
137 stars 5 forks source link

Note: Since Sketch 51, libraries also include text & layer styles. I will therefore no longer be updating this plugin, and I can't guarantee that it works from v51 onwards.


Icon

Sketch Style Libraries

A lightweight plugin that lets you sync layer & text styles with a Sketch Library, so your project is always in sync.

πŸ‘Œ Keep your whole design system in your library, and not just the symbols

πŸ‘Œ No export/import via separate "style files" or another cloud service

πŸ‘Œ Also merges duplicate styles, and deletes the ones you don't want anymore

Usage

  1. Install plugin
  2. Plugins -> πŸ”— Sync styles with library -> Fetch from... or Push to...
  3. Pick a library
  4. Profit

Installing

The easiest way to install Style Libraries is via Sketch Runner. Otherwise, you can clone this repo or grab the latest release and double click the .sketchplugin file to install it manually.

What it does

Existing styles are updated (matched by name), and missing ones are added. If you use "strict mode", it will remove any styles that don't exist in your library – and vice versa if you're pushing to a library.

It also has a merge function, which will merge duplicate styles by the same name.

What's new

2.0.4

2.0.3

2.0.2

2.0.1

2.0

1.0

What's next

Acknowledgements

This plugin was made almost entirely by repurposing bits of code from existing plugins, as it was the only way I could figure out how to do anything.

Particular credit goes to these excellent plugins, which I wholeheartedly recommend:

All of Jason Burns' plugins

Styles Generator

Shared Text Styles

Move to library

Input

Hopefully this functionality will be added natively soon, but I will keep maintaining this in the meantime. If you have any thoughts, suggestions or feedback, please don't hesitate to create an issue!