Use Case · AI Design

Last reviewed: July 2026

Windsurf to Figma —
Cascade Coded It, Figma Edits It

Cascade wrote the interface in your project. Run it in a browser, then import copied HTML or an accessible preview as a Pixel reference or as best-effort editable layers for supported content.

What is "Windsurf to Figma"?

"Windsurf to Figma" is the workflow of taking UI you built with Windsurf — Codeium's AI-native IDE, including the Cascade agent — and importing it into Figma as editable design layers. Windsurf writes real frontend code into your local project; you run it like any app, and html2design reads the rendered DOM's computed styles. The framework Cascade chose is irrelevant.

Windsurf is great at "image and prompt → working UI in your repo." html2design closes the design loop: bring the running output into Figma so a team can refine, align to a design system, and review with the tools they already use.

How Windsurf import works

Built on a browser-rendered DOM — exactly what the import approach reads.

Windsurf produces real code in a real project

Cascade edits files locally. Run the dev server and open the page; the browser computes every style — which is exactly what html2design reads.

Image-to-code in, design-to-figma out

Windsurf supports turning a screenshot prompt into code; html2design completes the loop the other way — code into Figma. The two pair naturally.

Framework-agnostic

React, Vue, Svelte, Astro, plain HTML — html2design reads the rendered output, not the source.

Works on localhost & auth-gated pages

You paste HTML, not a URL — works on localhost:3000, Storybook, or pages behind login.

The Windsurf to Figma workflow

Four steps, followed by review and cleanup.

Step 01

Run the project Windsurf built

Start the dev server (npm run dev or your project's command) and open the page. For a single component, use a route or Storybook.

Step 02

Copy the rendered HTML

Open DevTools (F12), Elements panel, right-click the root element, choose Copy > Copy outerHTML. Let fonts and images finish loading first.

Step 03

Paste into html2design

In Figma, run the HTML to Figma plugin, paste, click Generate. Supported elements and styles become native Figma objects.

Step 04

Refine in Figma

You now have a best-effort editable frame of the UI Cascade coded. Refine, align to your design system, prep for review and handoff.

What you get in Figma

Native Figma objects mirroring the rendered output — not a screenshot.

Editable text layers

Supported text becomes editable Figma layers; unavailable fonts and metric differences may require cleanup.

Supported colors & styling

Compatible backgrounds, borders, shadows, gradients, and opacity map to Figma properties.

Supported SVG content

Compatible inline SVG content can become editable Figma vectors; complex or external assets may need cleanup.

Measured editable frames

Supported layout, spacing, and sizing become measured Figma frames that should be compared with the browser source.

Frequently asked questions

How do I convert UI built with Windsurf to Figma?

Run the project Windsurf built (e.g., npm run dev), open the page in a browser, open DevTools, right-click the root element, Copy > Copy outerHTML, and paste into the html2design Figma plugin. Windsurf's rendered output transfers as best-effort editable Figma layers.

Does it matter which framework Cascade generated?

No. html2design reads the rendered DOM and computed styles, not the source. Whatever Cascade picked imports the same way once it runs in a browser.

Can I go image → code → Figma using Windsurf and html2design?

Yes — this is a powerful round-trip. Windsurf takes an image/prompt and generates code; you run it and copy the rendered HTML; html2design rebuilds it as editable Figma layers ready for refinement.

Are the imported designs editable in Figma?

Editable mode creates native Figma nodes for supported content. Fonts, media, effects, and layout can still require cleanup.

Related Guides

Bring your Windsurf-built UI into Figma

Install html2design from the Figma Community — free to try, no Chrome extension, no manual rebuild.

Install Free on Figma Community

Free to try · $12/mo to unlock all features