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)
| Situation | Use Auto Layout | Skip it (for now) |
|---|---|---|
| Buttons, inputs, chips, list rows | Yes — text length changes constantly | Rare exceptions for one-off marketing art |
| Cards with title + meta + actions | Yes — keeps vertical rhythm | Static hero illustrations with free positioning |
| Toolbars and filter bars | Yes — alignment is the whole job | Complex editorial collages |
| Forms and settings panels | Yes — stacks of labeled fields | Overlapping 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.
- Draw a frame for the card and add Auto Layout (
Shift+A). - Set direction to vertical. Set padding to your tokenized spacing (for example 16 on all sides).
- Place image or media (optional), title, body, then actions as separate layers inside the frame.
- 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.
- 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.
- Create a horizontal Auto Layout frame for the toolbar.
- Use gap for space between items instead of manual nudging.
- For mixed content (icon-only buttons vs text tabs), set each child’s alignment and hug contents where the width should follow the label.
- 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.
- Parent: horizontal Auto Layout.
- Left child: a vertical stack for label + helper text, hug horizontally.
- Right child: input frame set to fill horizontally so controls align in a clean column.
- 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
| Mode | Behavior | Typical use |
|---|---|---|
| Hug | Shrink to content | Buttons, chips, icons with text |
| Fill | Stretch in the parent’s main axis | Inputs in a form column, hero sections in a responsive row |
| Fixed | Explicit dimension | Avatars, 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.
- Put the three cards inside a horizontal Auto Layout parent with Fill on the parent width.
- Set each card to fill on the horizontal axis so they grow equally.
- 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)
- Card (vertical)
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
- 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.
- Everything set to fill—children stretch awkwardly; hug the content that should size to text.
- Ignoring min/max—buttons become mile-wide on large breakpoints. Set min width for tap targets and max width for readable line lengths.
- Mystery gaps—use gap on the parent instead of empty spacer rectangles unless the spacer is itself meaningful content.
- 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
| Symptom | Likely cause | Fix |
|---|---|---|
| Text overlaps sibling | Child set to fill without min height | Switch to hug vertical or add min height |
| Row explodes past screen | Too many hug children, no wrap | Add wrap, scroll, or hide secondary actions |
| Uneven card heights in a row | Mixed content without stretch rules | Align cross-axis to stretch or standardize media height |
| Jumping on resize | Mixed fixed and fill without max | Set max width on text frames |
Recommended workflow (day to day)
- Sketch the information hierarchy with rough frames.
- Convert the outer container to Auto Layout and pick vertical vs horizontal based on reading order.
- Tune padding and gap before you tune one-off margins.
- Add components once the first instance feels stable.
- 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.
§ Keep reading