zeroheight / library-symbol-replacer

Sketch plugin to replace symbols in an existing documents with library symbols 💎 📚
MIT License
190 stars 6 forks source link
library-symbols sketch sketch-plugin sketch-plugins symbols

Overview

Replace symbols in the current document with symbols from a Library.

Sketch 47 sees the introduction of Libraries, but migrating existing files to use Library symbols is one of the first big headaches. This plugin aims to help with that by allowing you to replace symbols in the current document with symbols from a Library document - maintaining overrides where possible.

N.B. the plugin currently uses symbol name to work out what to replace with what, so be careful of any conflicts.

Installation

Download, unzip and double click the .sketchplugin

or

Usage

Using the plugin

Breaking up a big file

Multiple files

If you have nested symbols that you want to send to different libraries (e.g. components that contain icons, and you want a separate Components and Icons library) - when you copy your components symbols out of your original file, you'll bring with them the icon symbols that they contain, which would create duplicates (the same icon would become two symbols, one in Components and one in Icons).

To remedy that you can either:

Overrides should be preserved with either method. Thanks to @drasnop for pointing this out

Issues

Contact

Get in touch at robin#zeroheight.com, but use @ instead of # if you're not a 🤖

License

Copyright (c) 2017 Zero Height Limited (zeroheight). See LICENSE.md for further details.