# OpenLandingPage HTML to Figma Plugin

> Free, local-first, MIT-licensed Figma Desktop plugin that converts OpenLandingPage's 122 standalone HTML downloads or pasted HTML into editable Figma frames with Auto Layout, Local Styles, and multi-viewport capture.

- HTML page: https://www.openlanding.page/figma-plugin
- Source directory: https://github.com/Famanias/openlanding.page/tree/master/figma-plugin
- Ready-to-import standalone HTML templates: 122
- License: MIT (no server, no SaaS paywall, no API key)

## Build with fast sparse checkout

Pull only `figma-plugin/`, `package.json`, and `bun.lock` (skipping the ~2.88 GiB template media pack):

```bash
git clone --depth 1 --filter=blob:none --sparse https://github.com/Famanias/openlanding.page.git
cd openlanding.page
git sparse-checkout set figma-plugin package.json bun.lock
bun install
node figma-plugin/build.mjs
```

## Load in Figma Desktop

1. Open any file in **Figma Desktop**.
2. Run `Plugins -> Development -> Import plugin from manifest...` and select `figma-plugin/manifest.json`.
3. Drop any downloaded `.html` template into the queue (or switch to Paste HTML mode), choose viewports (`1920px`, `1440px`, `390px`, or any custom width from `200px` to `4096px`), and click **Convert**.

## Capabilities

- **Single & batch HTML import:** Queue one or dozens of `.html`/`.htm` files with progress and Stop controls, or paste raw HTML.
- **Multi-viewport capture:** Capture `1920px`, `1440px`, `390px`, or custom `200-4096px` viewports side by side.
- **Auto Layout & Local Styles:** Maps CSS flex/grid containers into native Figma Auto Layout frames and creates color/typography Local Styles.
- **Local-first & sandboxed:** Renders DOM layout in a sandboxed iframe (`sandbox='allow-scripts'`) and transcodes embedded WebP/SVG assets to PNG locally.
