Design

Adjusting gutters like a pro in Sketch

by

on

View all posts

[Download the corresponding Sketch project file here.]

Whether you’re working with a grid system, or just laying out freeform content with gutters, making a little change can mean lots and lots of nudging. With the Group Resizing features of Sketch and a pinch of math, you can steer yourself clear of countless minutes (which add up to hours) of tedious nudging.

For those who prefer reading to watching, get the step by step below.

Sketch tutorial

Let’s say we’ve got a grid with 10px gutters between each box. Then your creative director strolls by and says “Those gaps are 20px, right?”….

Sketch tutorial

Before we hop on a train down to Nudge Town, let’s select all of these layers, and group them with Command + G. Then we’ll select every layer in the group. You’ll find a handy plugin to do this with a single shortcut on our awesomeSketch Plugin List here. With every layer selected, head over to the Inspector and turn on Fix Width and Fix Height.

Sketch tutorial

Now, select the group itself and head back to the Inspector to make some magic happen. We’ll start with the horizontal spacing by clicking into the Width field.

Learn Sketch

Because the layers are “floating in place,” we can scale the group without scaling the layers, thereby targeting the gutters. Instead of modifying this number by hand, we’ll have Sketch do the math for us. At the end of the existing width value type “+” followed by the desired addition to each gutter (i.e. “+10” to add the 10 pixels we want), then an asterisk followed by the number of gutters (i.e. “*5” for 5 gutters). Hit return and you should have your perfectly uniform 20px gutters.

The entire string should look something like 650+10*5

Repeat for the height if you have some horizontal gutters and you’re done. Now that’s much more fun than nudging 36 layers or 12 rows and columns.

Looking for more Sketch tutorials?

How to override colors in Sketch
Creating infinitely scalable connection arrows in Sketch

Learn Sketch

What are you designing with Sketch? Tell us on Twitter: @InVisionApp.

Author

Joseph Angelo Todaro
Video Producer at InVision, former UI/UX designer of international in-flight entertainment, and avid automotive enthusiast.

Join over 3 million designers

Who get our content first.

No sales pitches, no games, and one-click unsubscribe.

Over 3 million designers
get our newsletter
every week

Find out why

Get awesome design content in your inbox every week

Just like over 3 million of your fellow designers do.

Plus get 3 free downloads, just for signing up.

Give it a try—it only takes a click to unsubscribe.

Thanks for signing up!

You should have a thank you gift in your inbox now—and you'll hear from us again soon!

Prototype better experiences with InVision

Just like over 3 million of your fellow designers do.

I agree to InVision's Terms of Service.

Want a free t-shirt?

Join the 3 million+ designers who get our newsletter weekly for your chance to win!

We hate spam as much as you do, and you can unsubscribe anytime.

Double your chances to win!

Tweet and automatically get a second entry

Tweet Now

No Thanks

Stay in touch!

We share news, freebies, and more on Twitter.