Figma Connect
Figma Connect lets you bring designs from Figma into WebStorm and use them as context for Air. Select any layer in Figma Desktop — a frame, a component, or a group, reference it from an Air session without switching back and forth between the design and WebStorm.
The Bring Your Own Key (BYOK) approach is also supported, so you can use models from compatible AI providers with your own API keys.
WebStorm connects to Figma Desktop through the JetBrains Connect plugin for Figma, which streams your current selection to the Figma Layers tool window in real time.
Before you start
Make sure you have a paid Figma seat with Dev Mode or Full Design access. Figma Connect relies on the Figma Desktop MCP server, which cannot be enabled on View, Collab, or Starter seats.
Make sure the Figma Connect plugin is enabled in the settings. Press Ctrl+Alt+S to open settings and then select . In the search field, type Figma Connect. For more information about plugins, refer to Managing plugins.
Optionally
Install the Figma Desktop application and open the design file you want to work with.
Make sure the Air bundled plugin is enabled in the Settings | Plugins page as described in Plugins.
To use the Bring Your Own API Key (BYOK) approach, press Ctrl+Alt+S to open the Settings dialog, go to , and then specify the provider's API billing account. Refer to Connect AI providers for details.
You can also install the Figma desktop application and enable the Air plugin during the setup process, as described in Set up Figma Connect in WebStorm and in Configure code generation with Air from Figma designs respectively.
Set up Figma Connect in WebStorm
WebStorm provides you with a Figma Connect setup wizard that guides you through the setup process, including installation of the Figma Desktop application, installing the JetBrains Connect plugin in Figma, and connecting the Figma Desktop application to WebStorm.
Open the Figma Layers tool window () and click Set Up.

Follow the on-screen instructions to set up Figma Connect.
On the Get Figma Desktop app page of the wizard, click I have the App if you already have a Figma Desktop application, then click Next. Otherwise, click Download.

WebStorm opens the Figma Downloads page. Download and install the Figma Desktop application. Click Next when ready.

On the Run JetBrains Connect plugin in Figma Desktop page, click Open JetBrains Connect.

On the JetBrains Connect page, click Open in and select the design file to open the plugin in.

In the right-hand, Plugins, pane, click Run.

After that the plugin stays waiting for your approval from WebStorm to establish connection.

On the Run JetBrains Connect plugin in Figma Desktop page of the wizard, click Next.

On the Allow the incoming connection page of the wizard, click Allow.

Click Next when ready.

After the setup is complete, the state of the tool window changes to Connected.

WebStorm remembers the approval, so in the future connection is accepted automatically. To require approval again, use Revoke All Paired Sessions in the tool window settings (click
on the toolbar, select , and then select ).

Configure code generation with Air from Figma designs
To let agents access Figma designs and use them as context when generating code, make sure the Air plugin and the MCP server are enabled.
Enable Air
When you complete the Figma Connect setup wizard, WebStorm suggests setting up interaction between Figma Connect and JetBrains Air. Click Set Up in the notification tooltip to start the wizard.

Alternatively, click
on the toolbar and then select Enable Code Generation.

If the Air plugin is disabled, click Enable Air on the Generate code from your Figma designs with Air page.

WebStorm installs the JetBrains Air plugin, restarts, and returns you to the Generate code from your Figma designs with Air page. Click Set Up.

The Enable MCP server in Figma Desktop page opens.
Figma Desktop MCP server
The Figma Desktop MCP server lets an agent in an Air chat session access design information from Figma Desktop, such as the selected frame, layout, styles, and component details. The agent can use this context to generate or update code to match the design.
Enable the Figma Desktop MCP server
Go to the Figma Desktop application and make sure you are in the Development mode.

Click Enable desktop MCP server.

Check the status of the MCP server
WebStorm monitors the status of the MCP server and shows a banner in the Figma Layers tool window if the server is disabled in the Figma Desktop application.

On the Enable MCP server in Figma Desktop page of the Configure code generation with Air wizard, click Verify Connections to check whether the MCP server is running.

If the MCP server is enabled, you return to the Figma Layers tool window.

If the MCP server is disabled, an error message is shown.

Go to the Figma Desktop application and click Enable desktop MCP server on the Inspect pane as described above.
Return to the Enable MCP server in Figma Desktop page of the Configure code generation with Air wizard and click Verify Connections again. The Verify Connections button turns into Run JetBrains Connect.

Click Run JetBrains Connect to re-establish connection between the Figma Desktop application and WebStorm as described above.
Use the MCP server in Air chat sessions
Once you enable the MCP server in the Figma Desktop application, the MCP server is added to the IDE-level MCP settings and can be used in Air chat sessions by any agent and in any of your projects.
To temporarily deactivate the MCP server, press Ctrl+Alt+S to open settings and then select ., and clear the checkbox next to
figma-desktop-mcp.
When the MCP server is running in the Figma Desktop application but is deactivated in WebStorm, an information banner is shown in the Figma Layers tool window.

Click Enable to activate the MCP server.
Set up Figma skills
The jb-figma-implement-design skill is bundled with WebStorm and enabled automatically.

The skill is suggested in the completion popup when you start typing a command in the AI Chat tool window.

View the current selection and layers
The layers on the current Figma Desktop page are listed in the Figma Layers tool window.
Expand a layer to browse its child layers.
Use the preview in the Currently selected area to locate the required layer.
Synchronize Figma Desktop with WebStorm.
Figma Connect keeps your selection in sync between Figma Desktop and WebStorm in real time, so you switch back and forth less. The synchronization works both ways:
When you select a frame, a component, or a layer in Figma, the selection appears in the Figma Layers tool window.
When you click a node in the Figma Layers tool window, it captures the focus on the page in Figma.
Add a design to Air Context
Use Air Context to generate, review, and modify the code that implements a design.
To use a design as context for Air, point to the required item and click
next to it.

You can also select and add several layers at once.

If you already have an open Air session tab in the editor, the selected layer is automatically added to the prompt area. Otherwise, WebStorm opens a New Session popup where the selected design is already attached.

Type your prompt and send it together with the attached design.
Be specific in your prompt. For example, "Compare my current home page implementation with the attached Figma design and fix any visual or layout differences."

By default, WebStorm attaches the current selection to every new Air Context automatically. To change this behavior, disable the Auto Include Selection in AI Context option as described in Configure Figma Connect settings and behavior.
Add a design to AI Assistant context
To use a design as context for the AI Chat, point to the required item in the Layers pane and click
.
WebStorm opens the AI Chat tool window where the selected design is already attached.

Type your prompt and send it together with the attached design.
Be specific in your prompt. For example, "Compare my current home page implementation with the attached Figma design and fix any visual or layout differences."

By default, WebStorm attaches the current selection to every new AI chat automatically. To change this behavior, disable the Auto Include Selection in AI Context option as described in Configure Figma Connect settings and behavior.
Reference designs and layers by their id
During a session in a chat or a terminal, you can reference a design or a layer by its id.
Before you start
If you connected with a Figma Remote MCP server, make sure you have a file key.
It is recommended that you set up agent-specific skills.
Alternatively click next to the required node in the Figma Layers tool window and then paste the
id in the Terminal.

Reference a design or a layer by id
Select the corresponding node in the Figma Layers tool window and then drag the selection to the chat or to the terminal. This may be helpful if you only need to target one layer instead of regenerating an entire screen.
Click
next to the required node in the Figma Layers tool window and then paste the
idin the chat or in the terminal.
Right-click the required item, select the applicable format, and then paste it in the chat or in the terminal.

Manage styles, layouts, and colors
You can work with styles and colors right from WebStorm, in the dedicated Figma Inspect tool window.
To inspect a node, select it in the Figma Layers tool window and click
next to it.
The Figma Inspect tool window shows the styles, layouts, and colors of the selected node.
Switch the color notation between Hex, RGB, and HSL.

Switch the language from CSS to Android: Compose or to Android: XML, compare the XML with Figma's own Dev Mode output for the same node.

To copy the code of a layout, a style, or a color, click
next to it.

To add a style, a layout, or a color to the AI Chat, click
next to it.

To copy the code of the style, the layout, and the colors of a node at once as text, click
in the Currently inspecting area.

To add them to the AI Chat, click
.
Embedded Figma canvas
You can edit designs right in the embedded editor (canvas) without switching to Figma Desktop.
To enable the embedded canvas editor, go to on the main menu, find Registry in the Search Everywhere popup, and then select the checkbox next to
figma.embedded.editor.enabled.To open a layer in the canvas, click it in the Currently selected area.
Click
or
on the toolbar to zoom the selection in or out.
To restore the original size of the selection, click
.
To have the zoom level set automatically to ensure that the selection content fits within the embedded editor, click
.
To show the chessboard background, press
.
Configure Figma Connect settings and behavior
Click
on the toolbar of the Figma Layers tool window and then select
from the list.

Configure the settings as needed. To enable a setting, set a tick next to it in the popup list, the opens.
- Auto Include Selection in AI Context
Attach the current Figma selection to every new AI Context automatically.
- Auto-Start Server on IDE Startup
Start the connection automatically when you open a project. This option is enabled by default.
- Revoke All Paired Sessions
Remove all saved approvals. After that, you need to approve the next connection from Figma again.