Skip to content

Exporting ​

Export individual nodes as images or .fig subsets, and open full .fig or .pen documents.

Image Export ​

Select a node and use the Export section in the properties panel.

Export Settings ​

  • Scale — 0.5×, 0.75×, 1×, 1.5×, 2×, 3×, or 4× (hidden for SVG — vectors are resolution-independent)
  • Format — PNG (transparent background), JPG (white background), WEBP (transparent background), SVG (vector), PDF, or HTML

File → Export Selection exports the selection as PNG, SVG, or .fig, and ⇧⌘E exports it as PNG at once.

The app does not offer PowerPoint (.pptx) or draw.io export. The CLI still exports both: pairdraw export design.fig -f pptx or -f drawio.

You can add multiple export settings to export the same node at different scales or formats in one go. A live preview with a checkerboard background shows what will be exported.

Export Methods ​

MethodMacWindows / Linux
Keyboard shortcut (PNG)⇧⌘EShift + Ctrl + E
File menuFile → Export Selection (PNG, SVG, or .fig)File → Export Selection (PNG, SVG, or .fig)
Properties panelClick "Export" buttonClick "Export" button

The exported file is saved via a native dialog (desktop) or browser download.

HTML, PDF, and quality ​

  • JPG and WEBP rows have a quality field from 1 to 100 (90 when left alone), saved with the layer.
  • PDF with several layers selected makes one PDF with a page per layer, in the order you selected them, each the size of its layer.
  • File › Export Frames to PDF… saves the page's frames as one PDF, a page per frame in layer order, each the size of its frame. Frames inside sections count; loose shapes, text, and groups do not. With layers selected, only those are exported.
  • HTML writes the layer as a web page. The options button next to the format chooses whether to include the HTML scaffold (a whole page, or a fragment to paste into one), CSS or Tailwind styling, embedded images or separate files (saved together in a .zip), and whether layer names (data-name, on by default) and layer IDs (data-pairdraw-node-id, off by default) are written as attributes. The Code panel's HTML view exports the same way, with the styling it shows.
  • HTML export carries a layer's blend mode as mix-blend-mode, as SVG export already does. Linear dodge maps to plus-lighter; linear burn exports flat, because Chrome, Edge, and Firefox do not implement plus-darker. Normal and pass-through add no blend mode.
  • In the Code panel, Vue and React components can take icons from Lucide, Heroicons, or Font Awesome instead of Iconify, and React components also from React Icons; an icon the package lacks stays with Iconify.

Copy/Paste as ​

In addition to file export, you can copy the selection to the clipboard in multiple formats via the context menu (right-click → Copy/Paste as):

ActionShortcut (Mac)Shortcut (Win/Linux)
Copy as text——
Copy as SVG——
Copy as PNG⇧⌘CShift + Ctrl + C
Copy as JSX——
  • Copy as text — copies visible text content from the selection
  • Copy as SVG — copies the selection as SVG markup (paste into code editors, Inkscape, etc.)
  • Copy as PNG — renders at 2× and copies to the clipboard (ready to paste into Slack, Notion, etc.)
  • Copy as JSX — copies the Pairdraw JSX representation (compatible with renderJSX())

.fig File Operations ​

Pairdraw uses the .fig format for full documents — the same binary format as Figma.

Opening Files ​

ActionMacWindows / Linux
Open file⌘OCtrl + O

A file picker dialog opens, filtered for .fig and .pen files. On the desktop app, this uses the native OS dialog.

You can also drag a .fig, .pen, or other supported document onto the window; it opens in a new tab. Images and SVG files dropped on the canvas are placed in the document instead, and any other file reports that it can't be opened.

A .pen document that imports .pen libraries opens with the library components it uses, read from the files it names relative to itself, and a save writes those imports back, so a reopened file links the same libraries. In the document they are read-only library components; change them in the library. A browser can't read files beside a document, so there those components show as dashed placeholders and a message names the libraries; open the file in the desktop app or the CLI to load them. The desktop app reads libraries up to two folders above the document but never from your home folder or above it, and not through links; a file dropped onto the window reads none, so open it with File > Open…. The CLI reads libraries inside the working directory. Script and browser nodes, which Pairdraw doesn't run, also open as placeholders that keep their script file or page address.

Saving Files ​

ActionMacWindows / Linux
Save⌘SCtrl + S
Save As⇧⌘SShift + Ctrl + S
  • Save overwrites the currently open file without a dialog
  • Save As opens a save dialog to choose a new location

Saved files are compressed and include a thumbnail image for preview in file browsers.

With nothing selected, the Document section of the Design panel sets how tightly the document is compressed. Fast matches Figma's own saves. Smaller and Smallest make the file smaller and take longer to save, which is most noticeable on large documents and least on files made mostly of images. The choice is stored in the file, and Figma opens all three.

Round-trip Compatibility ​

Files exported from Pairdraw can be opened in Figma, and vice versa. The .fig format preserves all node types, properties, fills, strokes, effects, vector data, and layout settings.

Keyboard Shortcuts ​

ActionMacWindows / Linux
Export selection as PNG⇧⌘EShift + Ctrl + E
Copy as PNG⇧⌘CShift + Ctrl + C
Open file⌘OCtrl + O
Save⌘SCtrl + S
Save As⇧⌘SShift + Ctrl + S

Tips ​

  • Use 2× or 3× scale when exporting for high-DPI screens.
  • JPG always uses a white background — use PNG or WEBP if you need transparency.
  • Use SVG export when you need a vector format for further editing in Illustrator, Inkscape, or code.
  • The thumbnail in exported .fig files enables preview in file browsers and Figma's file picker.

Released under the MIT License.