> ## Documentation Index
> Fetch the complete documentation index at: https://docs.rocket.new/llms.txt
> Use this file to discover all available pages before exploring further.

# Figma

> Import your Figma designs into Rocket and convert them into production-ready code - layouts, spacing, and components included.

export const LlmsDirective = () => <blockquote className="llms-directive">
    For the complete documentation index, see <a href="/llms.txt">llms.txt</a>.
    For a lightweight markdown version of this page, append .md to the URL.
  </blockquote>;

<LlmsDirective />

Import a Figma frame and describe what you want to build. Rocket converts your visual layers into working, production-ready components - no manual translation needed.

<Note>
  Figma import is available on web only. It is not supported in the Rocket mobile app.
</Note>

<Divider />

## What you can do

<CardGroup cols={2}>
  <Card title="Design to code" icon="code">
    Import any Figma frame and get a fully coded version with responsive layouts. Rocket matches your layers, spacing, and styling automatically.
  </Card>

  <Card title="Component library handoff" icon="layer-group">
    Turn your Figma component library into reusable code components with variant support.
  </Card>

  <Card title="Prototype to production" icon="rocket">
    Import a clickable Figma prototype and get a working multi-page app with real navigation and route transitions.
  </Card>

  <Card title="Marketing pages" icon="bullhorn">
    Convert Figma marketing designs into pixel-perfect, responsive code for desktop, tablet, and mobile.
  </Card>
</CardGroup>

<Divider />

## Connect Figma

Figma connects via OAuth - no API key needed.

You can connect from two places - both open the same popup.

**Option 1: From the import flow (fastest)**

Click the **+** button at the lower left of the chat input and select **Add from Figma**.

<Frame caption="Click + then Add from Figma">
  <img src="https://mintcdn.com/dhiwisepvtltd-5e04e6a4/hTDiGbj74iN7UPxd/images/build-docs/create/figma/web-app/homepage-plus-menu-add-from-figma-light.webp?fit=max&auto=format&n=hTDiGbj74iN7UPxd&q=85&s=857236befd3fb207616a3e0497a95eca" alt="Chat input with + menu open, showing Add from Figma option." className="theme-image light-image" width="2880" height="1624" data-path="images/build-docs/create/figma/web-app/homepage-plus-menu-add-from-figma-light.webp" />

  <img src="https://mintcdn.com/dhiwisepvtltd-5e04e6a4/hTDiGbj74iN7UPxd/images/build-docs/create/figma/web-app/homepage-plus-menu-add-from-figma-dark.webp?fit=max&auto=format&n=hTDiGbj74iN7UPxd&q=85&s=c4587b88177e0e21c760ad108e13d33e" alt="Chat input with + menu open, showing Add from Figma option." className="theme-image dark-image" width="2880" height="1624" data-path="images/build-docs/create/figma/web-app/homepage-plus-menu-add-from-figma-dark.webp" />
</Frame>

A popup appears asking you to connect.

<Frame caption="Connect to Figma popup">
  <img src="https://mintcdn.com/dhiwisepvtltd-5e04e6a4/xKc_0Ktb1ALk69Bl/images/build-docs/connectors/figma/connect-to-figma-light.webp?fit=max&auto=format&n=xKc_0Ktb1ALk69Bl&q=85&s=d0aaf7c86e72bda7a06d55f4c1660d78" alt="Connect to Figma popup with a Connect button." className="theme-image light-image" width="2880" height="1624" data-path="images/build-docs/connectors/figma/connect-to-figma-light.webp" />

  <img src="https://mintcdn.com/dhiwisepvtltd-5e04e6a4/xKc_0Ktb1ALk69Bl/images/build-docs/connectors/figma/connect-to-figma-dark.webp?fit=max&auto=format&n=xKc_0Ktb1ALk69Bl&q=85&s=e81a94c71b6ef46d56d924808652e079" alt="Connect to Figma popup with a Connect button." className="theme-image dark-image" width="2880" height="1624" data-path="images/build-docs/connectors/figma/connect-to-figma-dark.webp" />
</Frame>

**Option 2: From workspace Settings**

Click your workspace name in the top-left, select **Settings**, then open the **Connectors** tab. Click the **Figma** card and click **Connect**.

<Card title="Manage workspace connectors" icon="plug" href="/getting-started/workspace/connectors" horizontal arrow="true">
  Connect once from Settings and it is available to all tasks.
</Card>

**After clicking Connect**

Figma opens an authorization screen. Sign in if prompted, review the permissions, and click **Allow access**.

<Frame caption="Figma OAuth authorization screen">
  <img src="https://mintcdn.com/dhiwisepvtltd-5e04e6a4/xKc_0Ktb1ALk69Bl/images/build-docs/connectors/figma/figma-allow-access.webp?fit=max&auto=format&n=xKc_0Ktb1ALk69Bl&q=85&s=781a9c29de9c3842cfddf9aa6d16d364" alt="Figma OAuth screen showing permissions Rocket is requesting." className="theme-image" width="900" height="1470" data-path="images/build-docs/connectors/figma/figma-allow-access.webp" />
</Frame>

A green dot appears next to Figma when the connection is active.

**Disconnect or switch accounts**

Open workspace Settings, go to **Connectors**, and click the **Figma** card. Click **Disconnect** and confirm. Connect again to use a different account.

<Card title="Manage workspace connectors" icon="plug" href="/getting-started/workspace/connectors#manage-connectors" horizontal arrow="true">
  Disconnect or switch accounts from workspace Settings.
</Card>

<Divider />

## Import a design

Once connected:

<Steps>
  <Step title="Copy your Figma link">
    In Figma, open your file and click **Share > Copy link** to get the URL.
  </Step>

  <Step title="Open the Figma import">
    In Rocket, click the **+** button at the lower left of the chat input and select **Add from Figma**.
  </Step>

  <Step title="Select frames">
    Paste your Figma URL and select the frames you want to import.
  </Step>

  <Step title="Import design">
    Click **Import**. Rocket generates production-ready code from your selected screens.
  </Step>

  <Step title="Refine in chat">
    Use chat to add interactivity, connect data sources, or refine layouts.
  </Step>
</Steps>

<Card title="Get your Figma URL" icon="link" href="/build/create/figma/get-your-figma-url">
  Step-by-step guide to finding and copying your Figma file URL.
</Card>

<Card title="Design guidelines" icon="book" href="/build/create/figma/figma-design-guidelines/overview">
  Follow these Figma best practices to get the best code output.
</Card>

<Divider />

## Tips

* **File organization affects output quality.** Well-named layers, proper auto-layout, and consistent spacing produce better code. Flattened images or ungrouped elements may need manual cleanup.
* **Prototype flows map to routes.** Click-through connections in your Figma prototype are mapped to page routes and navigation links in the generated app.
* **Complex animations may need refinement.** Rocket handles standard transitions, but advanced Figma animations may need adjustment after import.
* **One Figma account per Rocket workspace.** To switch accounts, disconnect and reconnect from workspace Settings.
* **Web only.** Figma import is not available in the Rocket mobile app.

<Divider />

## What's next?

<CardGroup cols={2}>
  <Card title="Supabase" icon="database" href="./supabase/overview">
    Wire up your imported Figma designs with real data from Supabase.
  </Card>

  <Card title="Stripe" icon="credit-card" href="./stripe">
    Add payment flows to your Figma-designed pages with Stripe checkout.
  </Card>

  <Card title="Netlify" icon="globe" href="./netlify">
    Deploy your Figma-to-code project to a live URL with Netlify.
  </Card>

  <Card title="All connectors" icon="plug" href="/build/connectors/overview">
    Browse every available integration.
  </Card>
</CardGroup>
