The quick guide to Penpot layouts

You’ve used a design tool before, and you just want to know the basics to help you get started with Penpot layouts. This is the extra quick explainer just for you!

Share
Penpot layouts.

You’ve used a design tool before, and you just want to know the basics to help you get started with Penpot layouts. This is the extra quick explainer just for you!

There are four key concepts you need to know to get started with Penpot layouts:

1: Static layouts

By default in Penpot, layouts are static. You can drag elements around the canvas or use the X and Y coordinates to position them. If you select multiple elements at once, you can align and distribute them using the buttons at the top of the Design panel.

0:00
/0:05

Hold down Alt or press the .  keyboard shortcut to view a design element’s measurements.

2: Boards

As Penpot’s canvas is infinite, a board (sometimes called “frames” in other design platforms) becomes your container. It can represent a page, a view, a screen, or anything else you need it to be! Boards can have a fixed height or width, or fit the height and width of their contents for responsive layouts.

0:00
/0:07

Find the board tool in the Toolbar, or use the B keyboard shortcut.

When you create a board, a collection of preset sizes are shown in the Design panel.

3: Flex layouts

Flex layouts are ideal for unpredictable quantities or sizes of content. You can choose their flex direction (horizontally like a row or vertically like a column), choose how their contents align and are distributed, and the spacing around and in between. You can even set Flex layouts to wrap to the next row or column when their contents exceed the width or height of their container.

0:00
/0:24

4: Grid layouts

Grid layouts are useful when you have a fixed amount of content, and want to define your layout across both horizontal and vertical directions at once. You define the number of columns and rows in your grid and their dimensions. Like Flex layouts, you can also choose the direction, alignment, distribution and spacing. Unlike Flex layouts, you can make grid cells span multiple columns and rows, and label grid areas.

0:00
/0:29

To create a Flex or Grid layout, select a board or group and use the + button alongside Layouts in the Design panel to choose between Flex and Grid. Or use Shift + A for Flex layout, or Ctrl/Cmd + Shift + A for Grid layout.

Flex and Grid layouts use CSS Flexbox and CSS Grid, and you can get the code (CSS properties and full CSS) for these layouts from the Inspect panel. Your Flex and Grid layouts will work the same in the browser as they do in Penpot.

0:00
/0:13

Get started with Penpot templates

If you want to play with layouts, rather than reading about layouts, download my free basic layouts template from Penpot’s Libraries and Templates:

Basic layouts template. 28 layouts. Version 1.June 2024. Including navigation right aligned, horizontal stack, bento #3, 3x3 grid, centered, sticky footer.
Download the Basic layouts template for free from the Penpot Hub

You can create static and precise, or flexible and responsive layouts in Penpot for free. Sign up to get started today.

We have many more posts about grids, layouts, and UI design with Penpot. Start here:

Background grids vs grid layouts: what’s the difference?
Background grids are guides you use to help you manually position design elements by eye. Grid layouts automate layouts (often responsively) based on the design rules you provide.
CSS Grid vs. Flexbox: Choosing the right layout for you
Understanding what is Grid vs. Flexbox and how to use them can help you build cleaner layouts, write less code, and avoid frustrating design issues down the line.
Tutorial: How to create responsive CSS Grid layouts in Penpot
With Penpot, you can create CSS Grid layouts without any code. This tutorial explores creating a bento grid layout for a sales dashboard UI.