Skip to content
CHICKENPIE.Start a project →
Making things

Figma Auto Layout for Beginners: Build Buttons That Don't Break

Learn Figma Auto Layout — build buttons that grow, shrink, and wrap without manual resizing. Step-by-step tutorial for beginners.

Read the paper ↓
Mr. Chicken at desk with Figma Auto Layout buttons on laptop screen
A PAPER FROM THE DESK
THE DETAILS
At a glance
CategoryMaking things
PublishedApr 13, 2026
Read time4 min
Covered here
  • Course Review
  • Design
Client
Chickenpie Tutorial
Year
2026
Services
Figma · Auto Layout · UI Design · Responsive Design

The challenge

Understanding Auto Layout resizing properties (Hug contents vs Fill container) for responsive design

The approach

Step-by-step tutorial building a button component from scratch using Figma's Auto Layout feature

The result

  • Readers can create buttons that grow/shrink with text content
  • Readers understand Hug contents vs Fill container behavior
  • Readers can create reusable component instances in Figma

By the end of this tutorial, you'll have buttons that stretch, shrink, and wrap automatically — no more manually dragging corners every time your designer changes the copy.

What We're Building

A button component that works in any context: nav bar, sidebar, modal, mobile card. One button to rule them all.

This is the magic of Auto Layout in Figma — your components actually respond to their content instead of fighting it.

Mr. Chicken pointing at Figma Auto Layout frame with colorful buttons

Step 1: Create Your Button Frame

Open Figma. Create a new frame (press F) — make it small, like 120×40. This is your button's starting state.

Add a text layer inside. Write "Click me". Center it, pick a font (Inter or DM Sans works well).

Now apply Auto Layout: select the frame, press Shift + A.

You'll see:

  • A purple padding ring around your text
  • Resize properties appear in the right panel

The frame now "hugs" its contents.

Step 2: Set the Resizing Behavior

Here's where most people get confused.

For the parent frame (the button):

  • Horizontal resizing → Hug contents
  • Vertical resizing → Hug contents

For the text inside:

  • Horizontal resizing → Hug contents
  • Vertical resizing → Hug contents

This sounds backwards. But here's what happens: the text sets its own size. The frame hugs that size. Add padding. The button grows.

Set your padding — 16px on all sides is a good starting point.

Step 3: Test It Like a Real Component

Change "Click me" to "Get Started Free Today". Watch the button expand horizontally. No dragging. No manual resize.

Change it to "OK". Watch it shrink.

This is the foundation of responsive components in Figma.

Mr. Chicken showing button instances that auto-resize to fit different text

Step 4: Add States

Duplicate your button (hold Option and drag). Change the background color. Update the text.

Now you've built two states: default and hover.

For pressed state: duplicate again, shift the background slightly, maybe add a slight inset shadow.

For disabled: desaturate the background, drop the opacity of the text to 50%.

Step 5: Make the Button Part of a Component

Select your default button. Right-click → Create component (or press Cmd + Option + K). Name it "Button".

Now drop an instance of "Button" on your canvas. It's linked — change the main component, all instances update.

Want to override the text? Just click the text layer and type. The auto layout still works.

Pro Tips

Nested Auto Layout for complex buttons: If your button has an icon + text, wrap the icon and text in a horizontal Auto Layout frame first, then wrap THAT inside your button frame. The icon will always stay at the right or left, and the text will take up the remaining space.

Use "Fill container" for icon holders: If your button has a leading icon, set the icon's horizontal resizing to Fill container and constrain its width. This prevents it from growing when you change text.

Wrap for mobile: Set your button's direction to Wrap in the Auto Layout panel. On mobile nav bars, this means a row of buttons wraps to two lines instead of overflowing off-screen.

Alignment matters: Auto Layout respects your alignment settings. A Center aligned button with Hug contents will center the text inside itself perfectly, no matter the size.

Spacing gets smarter with wrap: When you set direction to Wrap and add a gap of 12px, Figma automatically spaces elements into rows. Drop three buttons in there — they'll form rows and columns all on their own.

What You Learned

  • How to apply Auto Layout (Shift + A)
  • Hug contents vs Fill container and when to use each
  • How text drives the frame size
  • How to create component instances that stay linked
  • How to build a button that works in nav bars, modals, and mobile cards

This one concept — Auto Layout — separates Figma users who fight their tools from Figma users who let their tools work for them.

Next Tutorial Teaser

Next week: we're going deeper. Cards, form fields, and navigation components — how to build entire layouts that respond to content without you touching a single corner handle.

If Auto Layout clicked for you today, you already know 80% of what makes a real design system tick.

See you next Monday.

A closer look

Step 1: Creating the button frame
Step 3: Testing the responsive component
Share
FROM IDEA TO SOMETHING REAL

What are you making?

Graphics, websites, and curious experiments. Let’s talk about yours.

Talk to the studio ↗
/feed/figma-auto-layout-for-beginners

Have a project in mind?

Tell us what you are making and what you need. An unfinished idea is welcome too.

Start a project →

Another paper for you.

Mr. Chicken at a packed design studio desk, studying a Figma Variables panel showing LIGHT and DARK color tokens on screen

How to Build a Two-Mode Color System in Figma (Light + Dark, No Crying)

Build a proper Figma Variables color system from scratch — primitives, semantic tokens, and light/dark modes that switch in one click. Real steps, no hand-waving.

Open paper
Mr. Chicken at a creative studio desk pointing at After Effects on screen with a bouncing star sticker animation visible mid-loop

The Loop That Actually Loops: Make an Animated Sticker in After Effects

Most After Effects loop tutorials skip the one step that causes every stutter. Here’s a 9-step walkthrough for building a perfect looping animated sticker — from comp setup to Lottie export.

Open paper
Editorial split composition — craft texture above, digital grid below, the two merging

The Handmade Rebellion Is AI in a Linen Jacket

Everyone says designers are staging an authentic resistance against algorithmic aesthetics. The evidence says otherwise — and the punchline is that the rebellion is fully producible by AI.

Open paper
Mr. Chicken seated at a home office desk in a CHKN rubber-hose cartoon style, pointing at a monitor showing the Figma interface with a brand kit open; bold retro title reads 'YOUR BRAND LIVES IN ONE FIGMA FILE'

Your Brand Lives in One Figma File. Here's How to Build It.

A step-by-step brand kit build for solopreneurs — Figma Variables, Logo Vault, brand components, and why Step 6 is the one everyone skips.

Open paper
Mr. Chicken teaching Figma Auto Layout at a colorful desk with floating UI components

How to Master Figma Auto Layout (2026) — Build Responsive Designs Without the Drag

By the end of this tutorial, you'll build buttons, cards, and forms that resize automatically. No manual dragging. No excuses.

Open paper
Mr Chicken designing a Holy Week quote card on laptop, Filipino street scene background

How to Design Your Own Holy Week Quote Card in Canva (Beginner-Friendly)

Learn to create stunning Holy Week quote cards in Canva — zero design experience needed. Step-by-step beginner guide with free templates.

Open paper