Level 2 · Reusable, systematic design · about 10 minutes · free
Layout grids and constraints
Grids line things up; constraints decide what happens when a screen changes size. Together they make designs that survive real devices.
Start the interactive lesson: narrated demo, steps and quiz →
What you’ll learn
- Add a column grid to a frame
- Use the mobile 4-column recipe
- Set constraints and test by resizing
Step by step
- Select the Profile frame.
- Click + next to Layout grid. A 10 px square grid appears.
- Open the grid's menu and choose Columns.
- Set Count 4, Type Stretch, Margin 24, Gutter 16.
- Check that your card's edges sit on the margins.
- Select a card instance. In Constraints, set horizontal to Left & right.
- Make sure its width is Fixed, not Hug.
- Drag the frame's right edge wider, to about 550.
- The card stretches with the frame. Undo (⌘Z).
- Add a Get started button at the bottom and set its constraints to Left & right and Bottom. Resize the frame taller and check it stays at the bottom.
Tips
- 4 · 8 · 12. Phones use 4 columns, tablets 8, desktops 12. All divide nicely.
- Grids are guides, not cages. Big images can break the grid on purpose. Text should almost never.
- Fill container beats constraints. Inside auto layout, set children to Fill. Use constraints for floating layers, like a button pinned to the bottom.
Check yourself
A card set to Left & right doesn't stretch. Why?
Its width is Hug. Set it to Fixed so the constraint can stretch it.
FigCraft is an open-source project by its own authors. Craftpath is an independent, free learning resource.