Snapshots
Copy any element from any page, frames from Figma or an image, and paste them on a canvas to iterate on.
A snapshot is an element from another page, such as a competitor’s pricing table, your production app or a page on localhost, pasted onto a canvas. It keeps the element’s markup and styles, so you can comment on it, wireframe over it, measure it and try changes.
Install the extension
Snapshots come from the Dex Snapshot extension for Chrome, Edge, Arc or Brave.
npx dex extension
It prints the extension’s folder. Open chrome://extensions, turn on Developer mode, choose Load unpacked and pick that folder.
Copy an element
-
On any page, click the extension, or press Alt Shift S.
-
Point at an element. ↑ and ↓ move to its parent or child. Click (or press Enter) to copy it. Esc cancels.
To copy it with a menu open, Shift-click instead. You have three seconds to open the menu (or hover what opens one) before it copies.
-
Click a canvas in the studio and paste (⌘V).
It lands where your pointer is: in the cell nearest it, as a frame dropped there would (anything already in that cell moves along one step). Several Figma layers go side by side from there. Without a pointer over the canvas, it goes in a Snapshots section. The studio need not be running while you copy: what you copied stays on the clipboard until you paste it.
Pages you are signed in to, and anything open on screen (a menu, a filled-in form), are captured as they are.
Send us feedback
Right-click the extension’s icon and choose Send feedback. A form opens in a new tab with a screenshot of the page you were on attached; remove it if the page is private. It sends the extension’s version, your browser and system, never the page’s address.
What it keeps
Each snapshot is a view, snapshot-<site>-<what>.tsx, with its CSS beside it, scoped to the snapshot.
- The look: each element’s styles, kept only where they differ from the browser’s defaults.
- The intent: hover and focus states, and the page’s colour variables, written as
var(--name). - Its layout: widths, margins and grids as the page set them (
50%,auto,repeat(3, 1fr)), not as they measured out. The frame starts as big as the element; resize it and the snapshot reflows. - Motion: animations and transitions, with their keyframes. An animation that plays as the page loads plays again when the snapshot shows. Endless ones a script runs, such as Motion’s (Framer Motion’s) spinners and pulses, keep playing.
- Menus: a submenu that opens on hover or focus opens in the snapshot too. A button that opens and closes a menu or panel (one marked
aria-expanded, as accessible menus are) opens and closes it in the snapshot, with a little React state in place of the page’s script. A menu open when you copy comes along wherever the page drew it, as Radix and Base UI draw theirs at the end of the page, and the frame grows to hold it.
A snapshot stands alone. Its links keep their look but go nowhere, embedded pages (iframes) become empty boxes of their size, forms send nothing, and none of the page’s scripts come with it. Icons drawn from a sprite elsewhere on the page bring their shapes. Images and fonts still load from the original site.
Menus that a page’s scripts build only as they open, as most React component libraries do, are not on the page to copy while closed: open the one you want first. Nor is the look a script gives a panel as it opens: an opened panel shows as its tag does (a div as a block), which you can change in its CSS. Animations a script plays once, such as Motion’s entrances and its hover and tap effects, are over or not running when you copy, so they do not come along.
Media queries are not kept: a snapshot keeps the styles of the width it was copied at. Fonts load from the original site, when it allows that.
Paste from Figma
Copy frames or layers in Figma (⌘C), click the canvas and paste (⌘V), as with the extension. Each copied layer becomes a snapshot, built from Figma’s own data, not a picture:
- Auto layout becomes flexbox: direction, gap, padding, alignment, wrap, and hug, fill or fixed sizes.
- Fills, strokes and effects: colours, gradients, borders, shadows, blurs and corner radii.
- Text: fonts, sizes, line height, tracking and mixed styles. Fonts load from Google Fonts when they are there.
- Vectors become SVG.
- Components: instances are drawn from their component, with your overrides, and keep its name in
data-figma-component. - Variables bound to colours become CSS variables.
- Images are fetched from Figma when you paste and saved in the file’s
images/folder. Figma’s clipboard links to them for a few days only, so they are brought then. - Layout grids and guides come with the frame and show when the grid is on (G).
- Layer names you gave on purpose come through as
data-name, so you and the agent can refer to them.
Paste or drop an image
Paste an image (⌘V), such as a screenshot, or drop image files, onto a canvas. PNG, JPEG, GIF, WebP and SVG are taken. Each becomes a snapshot showing the image at its size, saved in the file’s images/ folder, in the cell you pasted or dropped it on. Several dropped together go side by side. Other files are left out.
To build a design from a screenshot, choose Rebuild with our components in its frame’s menu, or comment on it. The agent reads the image and builds it with your design system.
Iterate
- Try changes: comment on it and post to the agent. It edits the snapshot’s markup and CSS.
- Rebuild with our components, in the frame’s menu, asks the agent for a new view built from your design system, matching the snapshot’s layout and content, in a row below it.
Snapshots of other companies’ pages are for reference. Keep them out of anything you ship.