Pencil.dev / .pen file import
Import .pen files seamlessly
Plugin Preview
About this plugin
# Pencil.dev Sync for Figma> β οΈ **Alpha Release** β This plugin was built through vibe coding by Martin Dubois from [QuatreCentQuatre](https://quatrecentquatre.com) to explore and test workflows between [Pencil](https://pencil.dev) and Figma. Depending on reception and usage, this project may be maintained long-term or evolve from prototype to production-ready status.A Figma plugin to import and export `.pen` files from [pencil.dev](https://pencil.dev), enabling bidirectional sync between your Pencil designs and Figma projects.## β¨ Features- **π₯ Import** `.pen` files into Figma with full structure preservation- **πΌοΈ Local images** support via folder upload- **π§© Components** support with instances and overrides- **π Multilingual** UI (English / French, auto-detected)- **π Positioning** β Choose where to place imports on your canvasupcoming:- **π€ Export** Figma elements back to `.pen` format (for now use Pencil's paste from Figma feature)- **π Bidirectional sync** via `pencilId` metadata stored in Figma nodes## π Installation### Manual Installation (Development)1. **Download or clone this repository**2. **Import into Figma**:- Open Figma Desktop- Go to **Plugins** β **Development** β **Import plugin from manifest...**- Select the `manifest.json` file from this folder3. **Run the plugin**:- **Plugins** β **Development** β **Pencil.dev Sync**## π Usage### Importing a .pen file1. Open the plugin2. Stay on the **π₯ Import** tab3. Drag & drop your `.pen` file or click to select4. If your design has local images, click **Select images folder** and choose the folder containing your images5. Click **Next β**6. Navigate to where you want the import on your Figma canvas7. Click **π Place here**### Exporting to .pen1. Open the plugin2. Switch to the **π€ Export** tab3. Choose export mode:- **Export selection** β Only selected elements- **Export synced elements** β All elements previously imported from a `.pen` file4. Click **π€ Export**5. A `.pen` file will be downloaded## π¨ Supported Elements| Pencil Type | Figma Conversion ||-------------|------------------|| `frame` | Frame (or Component if `reusable: true`) || `ref` | Component Instance || `text` | Text with styles || `rectangle` | Rectangle || `ellipse` / `circle` | Ellipse || `image` | Frame with image fill || `group` | Group || `line` | Line || `vector` / `path` | Vector |### Supported Properties- **Layout**: `vertical`, `horizontal`, `none` (auto-layout)- **Dimensions**: Fixed, `fill_container`, `hug_contents`- **Flexbox**: `justifyContent`, `alignItems`, `gap`- **Padding**: Number, `[vertical, horizontal]`, or `[top, right, bottom, left]`- **Color variables**: `$red`, `$white`, etc. (via `variables` object)- **Fills**: Hex, rgb, rgba, and color tokens- **Strokes**: `{ thickness: 1, fill: "$black" }`- **Corner radius**: Number or array of 4 values- **Text**: `content`, `fontFamily`, `fontSize`, `fontWeight`, `lineHeight`, `textAlign`- **Components**: `reusable: true` creates Figma Components- **Instances**: `type: "ref"` with `ref: "
Plugin Details
| Version | 3 |
|---|---|
| Created | January 28, 2026 |
| Last Updated | January 31, 2026 |
| Category | Import & export plugins |
| Creator | Martin Dubois |
| Stats | 125 installs, 23 likes |
| Pricing | Free |
Technical Details
- API:1.0.0
- UI:ui.html
- main:code.js
- Document Access:dynamic-page
- Editor Types:figma
- Allowed Domains:
- none
More Like This
Discover other plugins in the Import & export plugins category.
html.to.design β by βΉdivβΊRIOTS β Import websites to Figma designs (web,html,css)
Convert any website into fully editable Figma designs
Anima - Figma to Code React, HTML, CSS, Tailwind, MUI (DevMode Inspect React / HTML / Vue / CSS)
Anima - AI Powered Design to code
Figma to HTML
Convert Figma design to HTML