|
| 1 | +--- |
| 2 | +title: How to install and use the StackBlitz plugin for Figma |
| 3 | +description: With StackBlitz’s Figma plugin, Dev Mode users can open components in StackBlitz directly from Figma. |
| 4 | +og_image: figma-plugin.png |
| 5 | +--- |
| 6 | + |
| 7 | +# {{ $frontmatter.title }} |
| 8 | + |
| 9 | +[Figma](https://www.figma.com/) is a collaborative UI/UX design tool. Figma’s [Dev Mode](https://www.figma.com/dev-mode/) enables developers to inspect designs, extract code, and access design details, streamlining the design-to-production process. |
| 10 | + |
| 11 | +Figma supports a [number of plugins](https://www.figma.com/community/category/development/plugins) that extend the functionality and integrate additional tools with the platform. |
| 12 | + |
| 13 | +::: tip Available with all StackBlitz plans including **Personal**, **Personal+**, **Teams**, and **Enterprise**. |
| 14 | + |
| 15 | +The plugin is compatible with all Figma plans. |
| 16 | +::: |
| 17 | + |
| 18 | +## About the StackBlitz plugin for Figma |
| 19 | + |
| 20 | +With [StackBlitz’s Figma plugin](https://www.figma.com/community/plugin/1287113487428429346), Dev Mode users can open components in StackBlitz directly from Figma. |
| 21 | + |
| 22 | + |
| 23 | + |
| 24 | +After configuring the plugin, you will be able to: |
| 25 | + |
| 26 | +- Link layers in Figma to specific components in your design system |
| 27 | +- Open the relevant components in an instant, browser-based development environment directly from Figma Dev Mode |
| 28 | +- View and modify the relevant component in StackBlitz without any local configuration |
| 29 | +- Preview any changes live within StackBlitz |
| 30 | +- Commit edits back to the repository or open a pull request |
| 31 | + |
| 32 | +## **Installing the plugin** |
| 33 | + |
| 34 | +To use the StackBlitz plugin, add it to a Figma file from either: |
| 35 | + |
| 36 | +- **The [plugins directory](https://www.figma.com/community/plugin/1287113487428429346)** by clicking “Open in…” and then selecting the name of the file. |
| 37 | + |
| 38 | + |
| 39 | +- **Dev Mode within your Figma file** by searching for "StackBlitz" under *Plugins* |
| 40 | + |
| 41 | +  |
| 42 | + *Initialize the StackBlitz plugin from within Dev Mode.* |
| 43 | + |
| 44 | + |
| 45 | +## Using the StackBlitz plugin with Dev Mode |
| 46 | + |
| 47 | +Once you have added the plugin to your Figma file, |
| 48 | + |
| 49 | +1. Enable [Dev Mode](https://www.figma.com/dev-mode/) is on (`Shift` + `D`) |
| 50 | +1. Select a layer |
| 51 | +1. Open in the StackBlitz plugin and paste a URL of a repository with the code of your project. |
| 52 | + - You can also use the URL of a specific file within this repository: typically, a component file, for instance: https://github.com/stackblitz/docs/blob/main/.vitepress/theme/components/CardLists/CardList.vue |
| 53 | +1. Click the "Create instant environment link" button to have the link generated for the selected layer. |
| 54 | + |
| 55 | +The link is now added to the layer's Dev resources. |
| 56 | + |
| 57 | +When you click it, a new tab will open with the full IDE loaded with your project. If your link included a file, this file will already be open in the editor. |
| 58 | + |
| 59 | +### Recommended uses for the plugin |
| 60 | + |
| 61 | +We suggest providing instant environment links, especially for the essential components in your app. The components that might need adjustments in future are good candidates as well. |
| 62 | + |
| 63 | +Generally, every time a developer looks at a component in Figma to make changes in the code, having a resource link handy will make their work so much easier! |
| 64 | + |
| 65 | +For more information, [view the StackBlitz plugin in the Figma community directory](https://www.figma.com/community/plugin/1287113487428429346) and refer to the [Figma Dev Mode documentation](https://help.figma.com/hc/en-us/articles/15023124644247-Guide-to-Dev-Mode). |
| 66 | + |
| 67 | +:::info How can we improve this guide? |
| 68 | +Haven't found an answer to your question? [Let us know! ](mailto:[email protected]) |
| 69 | +::: |
0 commit comments