Level 1 · Your first design · about 12 minutes · free

Auto layout: designs that resize themselves

Auto layout stacks layers in a row or column with fixed gaps and padding. Add text and the card grows. It's how real interfaces are built, and how developers build them too.

Auto layout: designs that resize themselves: the finished result in FigCraft
Start the interactive lesson: narrated demo, steps and quiz →

What you’ll learn

Step by step

  1. Select Name and Subtitle (Shift-click on the canvas).
  2. Press ⇧A, or ⌘K and type add auto layout.
  3. In Auto layout, choose vertical and set the gap to 4. Rename the frame Text.
  4. Shift-click Avatar together with Text and add auto layout again.
  5. Set it to a row, gap 16, align centre. Rename it Header row.
  6. Select Header row and Bio and add auto layout: vertical, gap 16, padding 24 all round. Rename it Profile card.
  7. Select the old Card rectangle and press ⌥⌘C (copy properties). Select Profile card and press ⌥⌘V: white, radius 16 and the shadow.
  8. Delete the old Card rectangle. Move Profile card to X 24, Y 64 and set its width to Fixed 345.
  9. Select Bio and set its width to Fill container and height to Hug contents.
  10. Add a sentence to the bio. The card grows; padding stays 24. Save.

Tips

Check yourself

The card doesn't grow when you add text. What do you check?

That the text and every parent frame are set to Hug contents for height, not Fixed.

← Colour, corners and shadowsSave and export →

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