Auto layout is a shelf, not a spreadsheet
The mental model that finally makes Figma's auto layout click, and why it makes handoff easier too.
- Written by
- Ingrid Halvorsen
- Published
- 10 September 2026
- Reading time
- 2 min read
Auto layout confuses people because they treat it like a grid of cells. It works much better if you picture a shelf: things sit on it in a row or a stack, with a fixed gap between them, and the shelf grows or shrinks to fit.
Three questions for every frame
Before you touch a setting, ask three things. Which direction do the children go? How much space sits between them? Does the frame hug its contents or fill its parent? Answer those and most of the panel sets itself.
Hug inside, fill outside
A good default: small things hug, big things fill. A button hugs its label. A card fills the column it sits in. When a layout falls apart on resize, it’s almost always a frame that should hug but was set to fixed.
Why developers love it
Auto layout maps closely to flexbox. Direction, gap, padding and alignment all have a direct CSS equivalent. When your frames are built this way, the developer reading your file sees the structure instead of guessing it from pixel positions.
We spend a whole lesson on this in Figma for product designers, with a file you can pull apart yourself.
Keep reading.
· 2 min read
Why we teach Astro before React
Most beginners don't need a JavaScript framework. They need a page on the internet, and Astro gets them there faster.
Marco Bellini
· 1 min read
What AI can't do for your user research
AI tools are great at summarising interviews. They are bad at noticing what people didn't say.
Sofia Ricci
· 1 min read
Naming design tokens so they last
A token called blue-500 breaks the day the brand changes. Name tokens for what they do, not what they look like.
Anders Lindqvist