Nested Auto Layout in Figma: Build Complex UI Layouts (2025)

image of blog Pawan Swami

UX/UI Marketing Specialist

2 Minutes Read

Listen to the Blog

Nested Auto Layout in Figma: Build Complex UI Layouts (2025)
1:44

Stack components inside other stacks for complex layouts.

1. Why Nested Auto Layout Matters

Nested Auto Layout allows you to:

  • Create complex, responsive UI components (cards, lists, headers, forms)
  • Stack elements inside other stacks without manually adjusting spacing
  • Maintain consistent alignment and padding across nested elements
  • Save time when scaling or updating designs

Think of nested stacks as Russian dolls — each layer adapts automatically when inner elements change.

2. Creating a Nested Auto Layout

  1. Start with a frame and apply Auto Layout (Shift + A).
  2. Add multiple elements inside (e.g., image + text + Button).
  3. Select this frame and apply another Auto Layout to the parent container.
  4. Adjust spacing, padding, and alignment at each level.

01. Nested Auto Layout in Figma_ Build Complex UI Layouts

Tip: Use vertical Auto Layout for lists and horizontal Auto Layout for buttons or inline items.

3. Practical Examples

Example 1: Card Component

  • Inner stack: Icon + Heading + Subtext
  • Outer stack: Multiple cards stacked vertically
  • Resizing any text or icon automatically updates the card size and spacing.

Example 2: Form Layout

  • Inner stack: Label + Input field
  • Outer stack: Multiple form rows stacked vertically with consistent gaps

Example 3: Navbar

  • Inner stack: Logo + Menu items
  • Outer stack: Navbar aligned horizontally across screen width

Nested Auto Layout is key for scalable, reusable components.

4. Best Practices

  • Name frames clearly (Card / Header / Inner, Card / Outer)
  • Use consistent spacing in inner and outer stacks
  • Combine with Text & Color Styles for consistency
  • Test responsiveness by resizing parent frames

Tip: Nested stacks + Auto Layout + Layout Grids = fully responsive, pixel-perfect UI.

UI/UX Designer and Marketing Specialist who combines creative design and strategy to craft engaging, conversion-driven user experiences. Passionate about clean, human-centered interfaces that deliver real results.

UX/UI Marketing Specialist

HubSpot Module Design Made Easy with Figma UI Kits and Templates

Get Figma UI Kits, templates, and ready-to-use components built for HubSpot designers and marketers.