Skip to content

A plugin for Sketch to convert selected layers to individual symbols.

Notifications You must be signed in to change notification settings

demersdesigns/sketch-batch-create-symbols

Repository files navigation

alt="Sketch Batch Create Symbols"

Download from Sketchpacks.com Compatible Sketch Version

Overview

In Sketch, when you have a bunch of layers that need to be converted to symbols you have to select them one by one and use the 'Convert to Symbol' function. Multiple selections will be merged into one symbol.

This plug-in will create a symbol for every item that is currently selected. This is really handy when you need to convert a bunch of layers to symbols.

Usage

Select the shapes, layers, images, or groups that you want to convert into symbols. Then from the Plugins menu, choose 'Batch Create Symbols' and pick one of the options.

Use Layer Names will create symbols and use the existing layer names.

Use Custom Names option will allow you to add your own name that the newly created symbols will use.

This works by taking the name you enter into the input and adding a number after it for each symbol to be created.

For example, if you have three layers, and you enter 'portfolio' as the custom name, each symbol will be named portfolio-1, portfolio-2, and portfolio-3.

Use Custom Prefix option will allow you to add a prefix to the exsiting layer names followed by a dash (-)

Use Custom Folders allows you to create symbols within a folder structure.

If you select a layer or multiple layers and choose Custom Folders, you can enter in a series of names separated by slashes to create a series of nested folders in the insert symbols menu.

For example, entering iOS/3x/assets/ would create iOS>3x>assets>symbol-names.

Please note: you must have a trailing slash at the end of your folder structure for this to work properly.

Manual Installation

  1. Download from Github
  2. Unzip
  3. Locate and double-click on the BatchCreateSymbols.sketchplugin file
  4. When Sketch alerts you that the plugin has successfully been installed, you are ready to go!

Install Sketch Batch Create Symbols with Sketchpacks

Changelog

v 2.0 - Updates to support Sketch 66. Adds custom prefix option. Thanks clemens-schulz & michelve!

v 1.1 - Add Use Custom Folders option. Thanks PsyGik!

v 1.0 - Initial release.

License

Licensed under MIT.

About

A plugin for Sketch to convert selected layers to individual symbols.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •