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.

Layout grids and constraints: the finished result in FigCraft
Start the interactive lesson: narrated demo, steps and quiz →

What you’ll learn

Step by step

  1. Select the Profile frame.
  2. Click + next to Layout grid. A 10 px square grid appears.
  3. Open the grid's menu and choose Columns.
  4. Set Count 4, Type Stretch, Margin 24, Gutter 16.
  5. Check that your card's edges sit on the margins.
  6. Select a card instance. In Constraints, set horizontal to Left & right.
  7. Make sure its width is Fixed, not Hug.
  8. Drag the frame's right edge wider, to about 550.
  9. The card stretches with the frame. Undo (⌘Z).
  10. 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

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.

← Vectors, booleans and the PenOrganise files like a pro →

FigCraft is an open-source project by its own authors. Craftpath is an independent, free learning resource.