askvity

How do you add spacing between elements in Figma?

Published in Figma Spacing 3 mins read

In Figma, you can add spacing between elements, particularly when using features like Auto Layout, by specifying the gap between objects.

Adding space between design elements is crucial for creating clear hierarchies and visually appealing layouts. Figma provides straightforward ways to control this spacing. Based on common methods in Figma, especially when using Auto Layout, you can define the space between items using two primary approaches:

Methods for Adding Spacing

You can control the distance between elements by setting the gap value. This can be done in two main ways:

1. Using a Specified Gap

This is the most common method for precise control over spacing.

  • How it works: You define an exact numerical value for the distance you want between objects.
  • Application: Enter a number (e.g., 8, 16, 24) into the spacing field within the Auto Layout panel. This number represents the distance in pixels (or other units if specified) that will be maintained between the items in that layout direction (horizontal or vertical).
  • Benefit: Provides consistent and predictable spacing throughout your design.

Reference: A specified gap: Specify how far apart you want objects to be.

2. Using "Auto" Spacing

The "Auto" setting is useful for distributing space automatically within a container.

  • How it works: Setting the gap to "Auto" tells Figma to distribute the available space between the items as evenly as possible. This often results in pushing the items to the edges of their container.
  • Application: Type Auto into the spacing field or select it from the dropdown menu if available.
  • Benefit: Useful for creating layouts where items need to stretch or fill the available space, such as navigation bars where items are pushed to opposite ends.

Reference: Auto: Set the gap between objects to be the largest distance possible. Type Auto in the field or select it from the dropdown menu.

Summary Table

Method Description When to Use
Specified Gap Set a fixed numerical distance (e.g., 10px, 24px). For consistent, controlled spacing.
Auto Gap Distribute available space evenly between items. To push items apart or distribute space widely.

By utilizing these methods, you can effectively manage the spacing between your elements in Figma, creating responsive and well-organized designs.

Related Articles