Sketch 58 — Smart Layout!

Thalion
Thalion
Sep 17, 2019 · 5 min read
Image for post
Image for post

This is the most important feature since Symbol Overrides. Finally, you can make Symbols that behave in the same way as its final implementation — everything thanks to Smart Layout.

In this story, you will learn what Smart Layout is and what kind of more granular features it includes. I will also show you how to use it in practice.

But first…. let’s see what’s new or improved in Sketch 58:

  • Smart Layout — Feature that makes Symbols even more powerful. You can now set a direction of Symbols or nested symbols and groups within those symbols. Thanks to this, when you change the overrides (modify text content, etc.), the Symbol’s instance will resize and adapt automatically (no manual resizing!). Smart Layout moves your workflow to the next level!
  • Updated Welcome Window — It is now bigger, cleaner and better adjusted to the cloud documents and its projects (available in the sidebar on the left).
  • New Cloud Documents saved in Projects — You can pick a project when you save a new cloud document for the first time…
Image for post
Image for post
Sketch New Welcome Window

🔥 Smart Layout

Now when you create a Symbol, you will notice that you can set Layout of this Symbol — it is the menu for the Smart Layout Feature. This feature is also available in the Inspector Panel of the Symbol (on the right side of main Sketch Window).

It is worth to remember:

⚠️ Smart Layout options are available for: Symbols, Groups inside symbols, and nested Symbols. ⚠️

Image for post
Image for post
New Smart Layout Menu in Create new Symbol Modal
Image for post
Image for post
Smart Layout Options in Inspector Panel

Let’s see what specific options means:

  • No Layout — This is the default option. You Symbol will not include Layout and will work as in previous versions of Sketch.

Horizontal Layout

  • Left to Right Layout — Resize elements from the left to the right side of the Symbol.
  • Horizontally Center Layout — Resize elements from the center of the Symbol.
  • Right to Left Layout — Resize elements from the right to the left side of the Symbol.

Vertical Layout

  • Top to Bottom Layout — Resize elements from the top to the bottom of the Symbol.
  • Vertically Center Layout — Resize elements from the vertical center of the Symbol.
  • Bottom to Top Layout — Resize elements from the bottom to the top of the Symbol.

How to use Smart Layout

If the above options look a bit confusing to you, it’s ok. We all have to play around with our symbols to discover its full possibilities. However, I have prepared a tiny sample demo so you can get it and learn a sample usage of the Smart Layout.

Below you can see how simple Symbol (Button) and more complex one (Modal) may be created with Smart Layout.

Grab the sample.

Button

Let’s start with a simple button symbol. This one adjusts to the text content:

Image for post
Image for post
Simple button setup for Smart Layout

And this is how Symbol Instances work:

Image for post
Image for post
Buttons + Smart Layout

Simply awesome!

Modal

Ok, you have seen how basic element resizes with Smart Layout. Now it is time for a more complex one. Let’s see how to make Modal that automatically adjusts to the content.

Here are specific elements of the Symbol selected to show the specific setup:

Image for post
Image for post
Symbol Setup
Image for post
Image for post
Group with Text Content Setup
Image for post
Image for post
Text Setup Setup for Buttons (both layers have the same resizing parameters)
Image for post
Image for post
Group of Buttons Settings
Image for post
Image for post
Setup for Buttons (both have the same resizing parameters)

Let’s see how the instance behaves:

Image for post
Image for post
Complex Symbol + Smart Layout

🤩 Insanely great! No more manual resizing all is done in Sketch automagically!

Summing up.

Smart Layout is one of the huge things Sketch Team introduced to us this year (others are Smart Distribute and Sketch for Teams). It is undoubtedly the most important new feature since Symbol overrides.

It changes the way we work with Symbols. It gives them superpowers to our workflow will be even more efficient. I am thrilled to see what advanced Symbols you can prepare now!

By the way…

If you plan to start a new project soon or to organize your UI Library — do not waste your time creating everything from scratch. Feel free to use the Prime — Design System Kit. See Prime in action.

To make it easier there is a gift 🎁 Use MEDIUM10 offer code to get 10% Off.

Image for post
Image for post

You can also Create User Flows faster in Sketch — With SQUID you can create User Flows directly in Sketch the sketch file with your artboards. Everything may be done within a couple of clicks. See how it works.

If you would like to read more stories like this feel free to follow me on one of more social media platforms:

Image for post
Image for post
Image for post
Image for post
Image for post
Image for post
Image for post
Image for post
Image for post
Image for post
Image for post
Image for post

Thanks for reading!

Design + Sketch

The best collection of articles, tips, tutorials, and…

Thalion

Written by

Thalion

👋 UXMISFIT.COM | Przemysław Baraniak, UX/UI Designer | primedesignsystem.com 🧰 uxmisfit.tools 🚀

Design + Sketch

The best collection of articles, tips, tutorials, and stories on designing and prototyping with Sketch and beyond

Thalion

Written by

Thalion

👋 UXMISFIT.COM | Przemysław Baraniak, UX/UI Designer | primedesignsystem.com 🧰 uxmisfit.tools 🚀

Design + Sketch

The best collection of articles, tips, tutorials, and stories on designing and prototyping with Sketch and beyond

Medium is an open platform where 170 million readers come to find insightful and dynamic thinking. Here, expert and undiscovered voices alike dive into the heart of any topic and bring new ideas to the surface. Learn more

Follow the writers, publications, and topics that matter to you, and you’ll see them on your homepage and in your inbox. Explore

If you have a story to tell, knowledge to share, or a perspective to offer — welcome home. It’s easy and free to post your thinking on any topic. Write on Medium

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store