Short answer
Mock up a screen in Figma by creating a frame, placing the layers inside it, and stacking them with auto layout. The Frame tool is F or A. Presets include Phone, Tablet, and Desktop. A bare click starts at 100 by 100. Text settings sit in the Typography section. Shift A adds auto layout.
Last verified against the sources listed below.
Key takeaways
- A frame holds shapes, images, and text. Top-level frames can use device presets such as Phone, Tablet, and Desktop.
- The first click-created frame in a session is 100 by 100. Drag if you need a custom size.
- Typography in the right sidebar sets font, weight, size, line height, letter spacing, and alignment.
- Shift A, or Add auto layout, stacks layers vertically, horizontally, or in a grid.
- Horizontal and vertical auto layout is one direction at a time, which is the same idea as a CSS flex row or column.
How to mockup in figma starts with an empty frame you can fill, not with a picture of a finished app. Figma’s frames article says a frame is a container for shapes, images, and text. You need edit access. The Frame tool is in the toolbar, and the shortcuts are F and A.
A mockup here means one screen: a top-level frame at a device size, the layers a person would see, and auto layout so the stack survives a text change. It is not a prototype link and it is not production CSS.
What do you need before the first frame?
You need a Figma Design file you can edit, a device size, and the content that belongs on that one screen. Frames also give you layout guides, constraints, auto layout, and prototyping, so the container is doing more than grouping.
While the Frame tool is active, the right sidebar lists presets: Phone, Tablet, Desktop, Presentation, Watch, Paper, and Social Media, plus Figma Community and Archive. Pick the preset that matches the screen you are faking. A phone mockup on a desktop preset will teach you the wrong wrap.
Product design is the decision about what that screen is for. The frame is how you draw the decision.
User experience design is the reason the order of the layers matters. Put the action where the flow says it goes, then use auto layout to keep that order when the label gets longer.
If the mark on the screen is a logo, place a vector. MDN’s SVG page says SVG renders cleanly at any size, unlike a JPEG or PNG that you scale up. Figma can fill a frame with PNG, JPEG, GIF, TIFF, or WEBP. Those raster fills are for photos, not for a logo you will shrink.
How do you build the frame?
Select the Frame tool, then make the screen. One action per step:
- Press F or A, or click the Frame tool in the toolbar.
- Choose a Phone, Tablet, or Desktop preset in the right sidebar, or drag a custom rectangle.
- If you only click, know that the first top-level frame in this session is 100 by 100. A click inside a frame also nests a 100 by 100 frame.
- Name the frame in the Layers panel so the screen is not called Frame 12.
- Set the fill, stroke, and corner radius on the frame itself if the screen needs them.
- Turn on Clip content when art must not paint outside the device bounds.
You can also wrap layers you already drew. Select them and use the frame-selection shortcut: Option Command G on Mac, or Ctrl Alt G on Windows. The frames article says that makes a frame around the selection.
Width and height live in the W and H fields. Figma’s frames page says those fields accept simple math, such as +100 or 50%. It also says multiplying by a percentage does not do what it looks like: *50% becomes 50 times the original, not half. Type 50% if you want half.
How do you place type and stack the layers?
Add the text, images, and buttons as children of the frame. Figma’s text-properties article puts the common controls in the Typography section of the right sidebar. That section is where you set the font, the weight, the size, the line height, the letter spacing, and the horizontal and vertical alignment. Edit access is required.
Type settings, opened from that section, add underline and strikethrough, case, lists, and space between paragraphs. Vertical trim, truncation, and max lines are in the Basics tab the article lists. None of that appears until a text layer is selected.
Then stack the pieces so a longer label does not require a hand nudge:
- Select the layers that belong in one stack.
- Press Shift A, or click Add auto layout in the right sidebar.
- Choose vertical, horizontal, or grid. Vertical is a column. Horizontal is a row.
- Set padding inside the edges and gap between the items.
- Set the frame to Hug contents when it should shrink-wrap the stack.
- Set a child to Fill container when it should take the free space.
Figma’s auto layout guide gives a worked width. A text layer 40 pixels wide, with 10 pixels of padding on the left and right, makes a hug-contents frame 60 pixels wide. If the text grows to 50 pixels, the frame becomes 70.
That is the behavior you want on a button. The guide also says fixed-size text will not grow with the words and can overlap its neighbors.
Ignore auto layout, the feature formerly called absolute position, is how a badge sits out of the stack. Select the child and click Ignore auto layout, or drop it in while holding Control on Mac or S on Windows. The guide says the key is S on Windows. Use that only for the layer that must leave the flow.
How does auto layout compare with CSS flex?
Horizontal and vertical auto layout are one direction at a time. MDN’s flexbox guide calls flexbox one-dimensional: a row or a column. flex-direction is row, row-reverse, column, or column-reverse.
The main axis follows that choice. The cross axis runs the other way.
The CSS flexbox specification, a Candidate Recommendation Draft of 14 October 2025, says children of a flex container can be laid out in any direction and can grow to fill space or shrink to avoid overflow. Nesting a row inside a column is how that spec builds two dimensions.
Figma’s nested auto layout frames are the same kind of move. Figma’s grid flow is extra. MDN contrasts flexbox with grid, which sets columns and rows together. Do not describe Figma’s grid option as a flex row.
| Figma control | What it does | Closest CSS idea |
|---|---|---|
| Horizontal auto layout | Objects in a row on the x-axis | flex-direction: row |
| Vertical auto layout | Objects in a column on the y-axis | flex-direction: column |
| Gap | Distance between items | gap on a flex container |
| Padding | Space inside the frame edge | padding on the container |
| Hug contents | Frame wraps its children | A size that follows the content |
| Fill container | Child takes leftover space | A flex item allowed to grow |
| Grid auto layout | Rows and columns, with span | CSS grid, not a single flex line |
After the frame is approved, try the stack in the browser. The Flexbox Playground lets you test a flex layout without pretending the Figma file is the stylesheet. web.dev’s image guide is the reminder for anything you place as pixels: vectors stay sharp when the screen scales, and a raster file does not.
What should you fix when the mockup falls apart?
| What you see | Likely cause | What to do |
|---|---|---|
| The frame is 100 by 100 | You clicked once, and it was the first frame this session | Choose a device preset or drag a custom size |
| Layers will not reflow | Auto layout is not on that frame | Select the layers and press Shift A |
| The frame refuses to hug | A child is Fill container | Figma says the parent becomes fixed on that axis |
| Text overlaps the next row | The text box is fixed size | Let the text resize. The guide says fixed text fights a fluid frame |
| Art paints outside the phone | Clip content is off | Turn Clip content on for the frame |
| A moved layer jumps by 10 | Big nudge is the default 10 points | Arrow keys use the small nudge, which defaults to 1. Hold Shift for the big nudge |
| The logo is blurry | A small raster was scaled up | Use SVG. MDN says it renders at any size without that loss |
The alignment article documents those nudge defaults: small nudge is 1 and big nudge is 10, both in resolution-independent points. Snap to pixel grid can also leave a 1 pixel difference when spacing is tidied. If the mockup is the spec, say which of those settings were on.
A section marked Ready for dev is the handoff the frames article mentions. You create a section for the frame, or convert the frame to a section, then mark it. That mark does not resize the screen. The frame size, the type, and the stack still have to be right before anyone builds it.
Frequently asked questions
Why is the new frame only 100 by 100?
Figma's frames article says a click on the canvas creates a top-level frame, and the first one you create in that file during the current session is 100 by 100. Later click-created frames copy the last top-level size. A click inside an existing frame also makes a 100 by 100 nested frame. Drag with the Frame tool for a custom size, or pick a preset such as Phone, Tablet, or Desktop in the right sidebar while the Frame tool is on.
How do you add auto layout without guessing the menu?
Select one or more layers and press Shift A, or click Add auto layout in the right sidebar. Figma's auto layout guide says it will try to pick vertical, horizontal, or grid, and you can switch. Vertical stacks on the y-axis. Horizontal stacks on the x-axis. Grid places objects in rows and columns. Padding is the space inside the frame edge. Gap is the space between the objects. Hug contents shrinks the frame around its children.
Where are the font size and line height?
In the Typography section of the right sidebar, which Figma's text-properties article documents for anyone with edit access. The font name, weight, size, line height, letter spacing, and horizontal and vertical alignment are in that section. Type settings, opened from Typography, add decoration, case, lists, and paragraph spacing. The article does not put those controls on the canvas. Select the text layer first or the section has nothing to edit.
Is Figma auto layout the same thing as CSS flexbox?
No. It is a similar idea for one direction at a time. MDN calls flexbox a one-dimensional model, either a row or a column, set by flex-direction. The CSS flexbox spec says children can grow or shrink, and that nesting rows and columns builds a two-dimensional layout. Figma's horizontal and vertical flows match that one-axis idea. Figma's grid flow is a separate rows-and-columns option. Approving a frame does not write the CSS for you.
What if child layers spill outside the phone frame?
Turn on Clip content. The frames article lists it as a frame property that hides anything extending past the frame bounds. Then check resizing. If a child is Fill container, Figma says the parent stops hugging on that axis and becomes fixed. A text layer set to a fixed size can also overflow or overlap, and the auto layout guide advises against fixed-size text when you want the frame to stay fluid.
Sources
- Frames in Figma Design · Figma, 2026
- Guide to auto layout · Figma, 2026
- Explore text properties · Figma, 2026
- Basic concepts of flexbox · MDN, 2026
- CSS Flexible Box Layout Module Level 1 · W3C, 2025
- SVG: Scalable Vector Graphics · MDN, 2026