Design

Frames and devices

Check your app at desktop, laptop, tablet and phone sizes side by side, see each page at its full height, and resize, rotate or theme each frame.

Use frames to check a page at several screen sizes, or several pages at once. A frame is one live view of your app on the canvas.

Four full-page frames side by side on the canvas: the home page at desktop, phone and tablet sizes, and the About page at desktop size.

What you can do

  • Pick a device size for each frame, or type your own.
  • See each page at its full height, or one device screen at a time.
  • Rotate a frame between portrait and landscape.
  • Duplicate or delete a frame.
  • Preview a frame in light, dark or system theme.
  • Play or pause the animations of your page.
  • Browse between pages inside a frame.
  • Open the page in a new browser tab.

The frame bar

The bar above each frame holds the controls for that frame:

ControlWhat it does
Go back / Go forwardMove through the pages you opened in this frame.
DeviceShows the device kind and width, for example Phone 393.
PageThe page this frame shows. Pick another page, choose New Page, or Manage Pages.
Show spacing overlayDraws the padding and margins of the elements.
Frame heightShow the whole page, one screen of the device, or a fixed height. See Full-page frames.
Show Mini ChatA small chat about the selected element, right on the canvas.
Design / WireframeSwitch the frame to a wireframe view. See Wireframe and blueprint.
RefreshReload the page in this frame.
Preview in new tabOpen the page of this frame in a new browser tab.

Change the device

  1. Select the frame

    Click the frame bar. A floating toolbar appears over the frame.

  2. Open Device

    Choose Device, then a family and a device. The frame takes that size.

    FamilyDevices
    DesktopDesktop (1440 x 1024), HD (1280 x 720), Full HD (1920 x 1080), QHD (2560 x 1440)
    LaptopLaptop HD, MacBook Air 13, MacBook Pro 14, Laptop 16:10 (1536 x 960), MacBook Air 15, MacBook Pro 16
    TabletiPad Mini, iPad Mini 5, Galaxy Tab S9, iPad Air 11, iPad Pro 11, iPad Pro 13, Surface Pro
    PhoneiPhone 17 Pro (402 x 874), iPhone 17 Pro Max, iPhone Air, iPhone 17, iPhone SE, Pixel 8, Galaxy S24, Android Compact
  3. Or type a size

    Choose Custom, enter the Width and Height in pixels, then choose Apply.

The floating frame toolbar with Device, Rotate, Duplicate, Delete, the theme choice and Play animations.

The frame toolbar

ControlWhat it does
DeviceChoose a device size or a custom size.
RotateSwap the width and the height.
DuplicateAdd a copy of this frame next to it.
DeleteRemove this frame from the canvas. Your code is not touched.
Light / Dark / SystemPreview the frame in a theme.
Play animations / Pause animationsAnimations are paused while you design so selection stays accurate. Play them to watch the motion. When you resize, move or edit an element while they play, they pause and the button reads Resume animations until you choose it.

When the toolbar is short on room, some controls move into More.

Full-page frames

Each frame grows to the whole height of its page, so you see every section at once. A dashed line marks where the device's screen ends, with its height, for example Screen 874.

The Frame height menu open on a desktop frame, with Full page checked, Device height and Fixed height, beside a phone frame.

Choose Frame height in the frame bar to change how tall a frame is:

ChoiceWhat it does
Full pageShows the whole page. This is the default.
Device heightShows one screen of the device. The page scrolls inside the frame.
Fixed heightKeeps the height the frame has now. The page scrolls inside the frame.

Full page lays your page out as it shows on the device, at the device's screen height, never at the frame's:

  • A section sized to the screen, or a page whose root fills the screen, keeps the device's height, as it does on a real device.
  • A page that scrolls inside one box as tall as the screen shows whole. It scrolls inside that box again when you choose another frame height.
  • Style rules that depend on the screen height or orientation, and scripts that read the height of the window, get the device's screen.
  • Content that a box cuts off does not make the frame taller.
  • An animation that follows the scroll shows at its start, or at its end when its start hides the element, because a full-page frame never scrolls. It follows the scroll again in Preview, and under Device height or Fixed height.
  • A section that stays pinned while a visitor scrolls reads as a visitor sees it, screen after screen: its scroll room is folded and the next section follows it. A quiet line marks the fold, with a pill such as Pinned scene · 864 px of scroll: click it to unfold the scroll room, and again to fold it. Selecting the section, or an element in its scroll room, unfolds it while it stays selected, and editing its height or padding unfolds it first. Its size label keeps the height you set and says what is folded, for example 1536 Fill × 1824 Fixed · 864 folded. The fold is only how the frame shows the page: your code, the preview and your published site are not changed.

The frame height applies in Design. In Preview every frame shows one screen of its device and its page scrolls, as in a browser, whatever its frame height, and the Frame height menu is hidden. Back in Design, each frame has the height you chose again.

Choosing a frame height does not count as a site change: like moving a frame on the canvas, it only changes your view, so a published site stays Live in the top bar. See Publishing.

Resize a frame by hand

Drag the left or right edge, or the corner, of a selected frame. The size updates as you drag. Drag the bottom edge to give the frame a fixed height.

Shortcuts

ActionShortcut
Duplicate the selected frameCmd/Ctrl + D
Delete the selected frameDelete or Backspace
Selected frame to Desktop (1440 x 1024)Cmd/Ctrl + Shift + 1
Selected frame to iPad Pro 11 (834 x 1194)Cmd/Ctrl + Shift + 3
Add a frame to the selectionShift + click the frame bar
Fit every frame on screenCmd/Ctrl + 0
Zoom to the selectionShift + 2

Need help?

Ask the team, read what changed, or learn from the blog.