6. Auto Layout Basics

Auto Layout is Figma's most powerful feature. It automatically arranges layers inside a frame — like a stack. Add a new item, and everything shifts to make room. Change the spacing, and everything adjusts. It's the foundation of every modern UI design workflow.

Auto Layout before and after comparison
Before vs After: Manual layout requires tweaking each position. Auto Layout handles spacing, alignment, and resizing automatically with Gap and Padding controls.

What Auto Layout does

How to activate Auto Layout

  1. Select a frame on your canvas (remember — only frames can have Auto Layout)
  2. Press Shift + A on your keyboard (or click the + Auto Layout button in the right panel)
  3. The frame now shows Auto Layout controls in the right panel: Direction, Gap, Padding, Alignment
  4. You'll also see blue/pink shaded zones inside the frame — these show the padding areas

Tip

You can also wrap any selection of layers in Auto Layout. Select multiple layers (shapes, text, frames), press Shift + A, and Figma creates a new Auto Layout frame around them automatically.

The three key settings

1. Direction

2. Gap (spacing between items)

3. Padding (space around the edges)

Try it: build a simple button

  1. Press F and draw a small frame
  2. Press T and type "Click Me"
  3. Select both the frame and the text, then press Shift + A
  4. Set Padding to 12 (all sides) the frame hugs the text with space around it
  5. Set Corner radius to 8 on the frame (under Appearance)
  6. Give the frame a fill color — blue, for example
  7. Now duplicate the button (Ctrl + D). Change one button's text — notice the frame auto-resizes

That's the magic of Auto Layout. The button frame automatically hugs the text — longer text makes a wider button, shorter text makes a narrower button. No manual resizing needed.

What's next

Once you understand these basics, Chapter 2 dives much deeper into Auto Layout: Hug vs Fixed vs Fill, nested layouts, Space Between alignment, and building real components.

Key takeaway

Think of Auto Layout as "set it and forget it." You set the direction, gap, and padding — then you just add and remove items, and Figma handles the positioning automatically. This saves you hours of manual alignment.