Skip to content
tezvyn:
Menu

Layout Grids: Your Blueprint for Consistent UI

Source: help.figma.comMediumHow cards are made

Layout grids are visual blueprints for frames, enforcing structure and alignment. Use them to create consistent, responsive layouts for web and mobile. A common footgun is using fixed-width columns instead of 'Stretch' columns, which breaks responsiveness.

Why it exists

Digital layouts without a system become chaotic. Layout grids were created to solve the problem of inconsistent spacing and arbitrary alignment, providing a structural foundation that makes designs logical, scalable, and easier to maintain across different platforms and devices.

The mental model

A layout grid is like the scaffolding for a building or the lines on graph paper. It's a temporary, non-printing guide that gives you a structure to build upon, ensuring everything lines up correctly. The grid itself isn't part of the final design, but the consistency it creates is.

How it works

In Figma, you apply layout guides (formerly called layout grids) to frames. There are three main types. First, a Uniform Grid is a simple square grid, useful for precise work like icon design, where you define the size of each square. Second and third are Columns (vertical) and Rows (horizontal), which are essential for UI design. For columns and rows, you set a Count, Color, and Type. The Type is the most important setting: 'Stretch' makes columns or rows resize automatically when the frame is resized, which is ideal for responsive design. Fixed types like 'Left', 'Right', or 'Center' have a set width or height and are pinned to an edge of the frame.

When to use it

Use layout grids to establish a consistent visual rhythm for an entire page or screen. They are perfect for defining the overall structure of web and mobile layouts, ensuring components are placed consistently across different mockups. They speed up wireframing and high-fidelity design by reducing decisions about placement.

When not to use it

Do not use a layout grid to manage the internal spacing and arrangement of elements within a single component. That is the job for Auto Layout. A layout grid guides the placement of large-scale elements on the frame, while Auto Layout handles the relationships between elements inside those components.

One canonical example

A standard 12-column responsive web layout. You would add a column layout guide to your desktop frame, set the Count to 12, the Type to 'Stretch', and define a Margin (e.g., 120px) for the space on the left and right edges of the page, and a Gutter (e.g., 24px) for the space between each column. This creates a flexible foundation to place content that adapts as you resize the frame for tablet and mobile views.

Interview question

When designing a responsive web layout using a column layout grid, which setting is crucial for ensuring the layout adapts correctly to different screen sizes?

  • a.Setting the 'Count' to 12 for standard web layouts.
  • b.Applying the 'Stretch' type to allow columns to resize automatically with the frame.Correct
  • c.Using 'Fixed' column types like 'Left' or 'Right' to maintain consistent alignment.
  • d.Defining a precise 'Gutter' value to control the space between content elements.
Why?

The card states that 'Stretch' makes columns or rows resize automatically when the frame is resized, which is ideal for responsive design. 'Fixed' types, while seemingly consistent, have a set width and would break responsiveness.

Just read this? Test yourself on what you have been reading.

Read the original → help.figma.com

Put your scrolling time to good use

Learn one idea, try a quiz and save useful cards for revision. Tezvyn makes it easy to learn and stay current in your tech field, a few minutes at a time.

The iPhone app is on the way

We are building it. Until it lands, nothing here is held back from you: every interview card, your saved cards, streaks and the job board all work in Safari, plus hundreds of free practice quizzes of thirty questions each. Sign in and it all carries over to the app the day it arrives.

Want it as an icon? Tap Share at the bottom of Safari, then Add to Home Screen. It opens full screen and the cards you have read stay available offline.

Get it on Google PlayiPhone app coming soon

We are hiring for this. Open roles that interview on ui design — each one lists the topics its interview covers.

See open roles