Creating preview Images for page builders in Sanity Studio

Duration: 2:55

Here's a quickfire video showing you how to go from website to page-builder preview images in the shortest time possible with our Figma community file. Shoutout to @amranmohamed377 for the inspiration.

Frequently asked questions

How do you make thumbnails for a Sanity Studio page builder?
Build the components on your site first, then take a wide screenshot at around 50-75% browser zoom. Paste the screenshot into a Figma template that already has 3x2 thumbnail frames, crop each one with the fill and crop tools, and export. Naming each export to match its page builder component is what wires it up inside Sanity Studio.
What aspect ratio should Sanity page builder preview images be?
Aim for a 3x2 ratio. That's what the thumbnail slots inside Sanity Studio render at, so matching it means your previews look clean and don't get awkwardly stretched or letterboxed when editors pick a block.
How do you add preview images to a Sanity page builder?
Export the thumbnails as image files using the same names as your page builder block components, then drop them into the Sanity Studio folder for the studio to pick up. Once the filenames line up with the schema, the previews appear automatically in the block picker.
Can I use Figma to design Sanity Studio thumbnails?
Yes. Figma works well because it auto-scales pasted images to fit a frame. Roboto Studio uses a Figma community document with pre-sized 3x2 frames, so you paste a screenshot in, crop it, and export. Figma's centred scaling means even slightly off-ratio screenshots end up roughly correct.
What is a Sanity page builder?
A Sanity page builder is an array field of section blocks (hero, feature grid, CTA, and so on) that editors compose into a page. Each block has its own schema, and most teams add a small thumbnail per block so the picker shows a visual preview alongside the name.


Continue watching

Get in touch

Fill out the form below and we'll get back to you