figma guide

Figma Auto Layout in Practice: Real Patterns, Not Theory

Use Auto Layout like a senior designer: card stacks, toolbars, responsive rows, hug vs fill, gaps, and the mistakes that make files fragile.

Published
Updated
May 11, 2026
Read time
6 min
Level
Intermediate

Quick answer

Auto Layout turns a frame into a flexbox-style container: children line up in a row or column with predictable spacing, padding, and resizing rules. In real files, you reach for it whenever a block should survive label changes, localization, or handoff without someone nudging pixels by hand. Learn hug vs fill, min/max width, nested stacks, and alignment per child first; those four ideas cover most production UI patterns.

If you are newer to the editor, pair this guide with the broader Figma guides hub and Figma keyboard shortcuts that save hours so navigation and layout shortcuts feel automatic.


When Auto Layout wins (and when it does not)

SituationUse Auto LayoutSkip it (for now)
Buttons, inputs, chips, list rowsYes — text length changes constantlyRare exceptions for one-off marketing art
Cards with title + meta + actionsYes — keeps vertical rhythmStatic hero illustrations with free positioning
Toolbars and filter barsYes — alignment is the whole jobComplex editorial collages
Forms and settings panelsYes — stacks of labeled fieldsOverlapping modal animations you prototype by hand

Practical verdict: if the UI element has a clear reading order (top-to-bottom or left-to-right), Auto Layout is usually the right default. If you are designing something closer to print (posters, flyers), see how to design flyers using Figma where freeform composition still matters.


Pattern 1: The classic card (vertical stack)

Goal: a card that grows when the title wraps and keeps actions pinned to a sensible edge.

  1. Draw a frame for the card and add Auto Layout (Shift + A).
  2. Set direction to vertical. Set padding to your tokenized spacing (for example 16 on all sides).
  3. Place image or media (optional), title, body, then actions as separate layers inside the frame.
  4. Set the frame’s horizontal resizing to Fill when the card sits in a grid; set width to Fixed only when the column width is explicit.
  5. For the actions row, nest a horizontal Auto Layout frame: primary and secondary buttons as children with gap between them.

Common mistake: putting everything in one text block to “save layers.” You lose independent spacing control and make future components harder. Split title, supporting text, and metadata.


Pattern 2: Toolbars and filter chips (horizontal stack)

Goal: a row of controls that stays aligned and wraps or scrolls predictably.

  1. Create a horizontal Auto Layout frame for the toolbar.
  2. Use gap for space between items instead of manual nudging.
  3. For mixed content (icon-only buttons vs text tabs), set each child’s alignment and hug contents where the width should follow the label.
  4. If the row can overflow the viewport, decide early whether you will wrap (second row), shrink items, or use a scroll pattern in prototype—Auto Layout only handles geometry; the product decision is still yours.

Marketing headers often reuse the same row logic—see design a banner in Figma for layout-heavy examples that still benefit from disciplined stacks.


Pattern 3: Two-column settings rows (label + control)

Goal: left column hugs labels; right column fills with inputs.

  1. Parent: horizontal Auto Layout.
  2. Left child: a vertical stack for label + helper text, hug horizontally.
  3. Right child: input frame set to fill horizontally so controls align in a clean column.
  4. Use baseline or center vertical alignment depending on whether the control is single-line or multiline.

This pattern is the backbone of settings screens and many onboarding flows. It also pairs well with how to use Figma to create a prototype when you start wiring simple interactions.


Hug, fill, and fixed: read this once, reference forever

ModeBehaviorTypical use
HugShrink to contentButtons, chips, icons with text
FillStretch in the parent’s main axisInputs in a form column, hero sections in a responsive row
FixedExplicit dimensionAvatars, thumbnails, standardized heights

Rule of thumb: in a vertical form, children usually fill width. In a horizontal toolbar, most items hug unless you want an explicit spacer frame with fill to push actions to the far edge.


Pattern 4: Equal-width tiles without magic numbers

Goal: three cards share space evenly inside a page gutter.

  1. Put the three cards inside a horizontal Auto Layout parent with Fill on the parent width.
  2. Set each card to fill on the horizontal axis so they grow equally.
  3. Control max width on the card if readability requires a cap.

If you are building web-style marketing sections, compare your spacing rhythm with best Figma plugins for web design—many teams combine native Auto Layout with a small plugin set for content-heavy pages.


Nesting: how deep is too deep?

Deep nesting is not automatically bad—unclear intent is bad. A readable structure looks like:

  • Page section (vertical)
    • Header row (horizontal)
    • Card grid (horizontal or wrap)
      • Card (vertical)
        • Media (fixed height)
        • Body stack (vertical)
        • Footer actions (horizontal)

If teammates get lost, add semantic frame names (Card / Default, Row / Actions) and keep one job per frame. When a nested stack only exists to align two icons, that is still a valid mini-frame.


Common mistakes that break Auto Layout files

  1. Mixing absolute overlays inside stacks without a clear parent—detached icons drift on the next text edit. Prefer a dedicated overlay child with constraints or a separate layer scope.
  2. Everything set to fill—children stretch awkwardly; hug the content that should size to text.
  3. Ignoring min/max—buttons become mile-wide on large breakpoints. Set min width for tap targets and max width for readable line lengths.
  4. Mystery gaps—use gap on the parent instead of empty spacer rectangles unless the spacer is itself meaningful content.
  5. Skipping components—if a pattern repeats three times, componentize it before you tune the fourth. Related: best Figma plugins for design systems when governance scales beyond one file.

Troubleshooting checklist

SymptomLikely causeFix
Text overlaps siblingChild set to fill without min heightSwitch to hug vertical or add min height
Row explodes past screenToo many hug children, no wrapAdd wrap, scroll, or hide secondary actions
Uneven card heights in a rowMixed content without stretch rulesAlign cross-axis to stretch or standardize media height
Jumping on resizeMixed fixed and fill without maxSet max width on text frames

  1. Sketch the information hierarchy with rough frames.
  2. Convert the outer container to Auto Layout and pick vertical vs horizontal based on reading order.
  3. Tune padding and gap before you tune one-off margins.
  4. Add components once the first instance feels stable.
  5. Stress-test with longer copy and German-length strings if your product localizes.

For interactive patterns like carousels, Auto Layout handles the static structure; motion and swipe often live in prototype wiring—see creating interactive carousels in Figma.


FAQ

Does Auto Layout replace constraints?

It replaces most manual constraint workflows for UI stacks. You may still use constraints or absolute positioning for special cases such as pinned badges on avatars.

Should marketing hero sections use Auto Layout?

Often yes for the content block even when the background is freeform—split “art” and “layout” into separate frames.

What is the fastest way to learn the shortcuts?

Use Help → Keyboard shortcuts in Figma and drill Shift + A (add Auto Layout) until it is muscle memory, alongside the selection tools in Figma keyboard shortcuts: 25 that save hours.


Bottom line

Auto Layout is less about toggling a feature and more about designing resize rules the way engineers think about flexbox. Start with stacks that mirror real content, prefer gap over invisible spacers, and combine hug, fill, and min/max deliberately. Your future self—and anyone downstream in handoff—will recognize the structure immediately.

Share on X

§ Keep reading

Related guides.