A Guide to Symbols in Sketch

Jun 12, 2020

The process of designing interfaces can get repetitive at times.

Regardless of wether you’re creating a complete design system or just some screens you’ll probably find yourself creating the same design elements over and over.

Sketch offers a great way to solve this to make the design process easier and faster.

Let’s create a list of Search Results, each one with the same interface elements (title, description, date, call to action). To do so, you’ll probably find yourself copying and pasting elements and modifying each one with its own content.

What if there’s a requirement change? There might be a request to move some elements around, change font sizes or colors.

This is where Symbols become very useful.

Symbols enable the creation of an element to reuse it across an entire project, keeping a master that works like a template. Whenever you make changes on the master it’ll update every instance of it.

Symbols can be made from every element: shapes, text, groups and even other symbols.

 

Create a new Symbol

Continuing our example, select the elements that will make our symbol (the elements of a search result) and go to the menu Layer > Create Symbol. Give it a name and voilá, a new Symbol is born!

Sketch automatically makes a new Symbols page where we’ll find the Symbol we just created and add an instance of it in the Artboard we’re currently working on. Copy and paste this instance a few times and they all will be connected to the our Symbol.

There’s another way to insert an instance of a Symbol by going to the Components Panel (left side of the Sketch app). There will be the new Symbol, just drag it into any Artboard.

 

Edit a Symbol

Suppose we need to make the same edits to all the Search Results. To do so double-click any instance to enter the Symbols Page where we can edit it.

Any changes made to the Symbol master will apply to all of its instances.

After making the edits click Go to Instance to return to the Artboard and they will be applied to every instance of our Symbol.  Magic!

 

Edit Instances of a Symbol

So far we’ve created and modified the symbol for the Search Result. The changes we made applied to ALL instances of it, but what if we need each Search Result to have its own content? (Different titles, descriptions, etc.)

Enter Overrides.

Click an instance of a Symbol and there will be an Overrides section on the Inspector Panel to the right.

There we’ll be able to change the text elements of this instance and can even replace images. Changes made here will apply ONLY to the current instance, creating unique content while also being able to modify them all at once. Delightful! 

 

Final Thoughts

Symbols are a super powerful tool when creating interfaces and design systems. They will help you quickly update a design across an entire project while allowing each element to retain its own unique content.

There are many other things that can be done with Symbols like swapping symbols in an instance, created nested symbols, using smart layout and more.

To learn more, please refer to our documentation.

 

By Jaime Creixems