A skeleton project designed to run code downloaded from Figma Make locally, so you can easily modify the generated code with your favorite tools.
Figma now allows you to download an entire runnable project directly.
You may try this project if you encounter issues running the project downloaded from Figma Make
This project also includes a build:single command to generate a single HTML file containing your entire app.
This is useful if you want to share your app as a standalone file.
-
Pre-installed Packages
This project comes with many packages that Figma Make-generated code may require (seepackage.json). If you encounter errors about missing dependencies, simply install the required packages usingnpm install <package-name>. -
Automatic Removal of Version Specifiers in Imports
Figma Make sometimes generates import statements with explicit version specifiers, for example:import { Slot } from "@radix-ui/react-slot@1.1.2";
This can cause version conflicts or issues with local development.
Solution:
This project uses a custom Vite plugin that automatically removes version specifiers from import statements during build and development.
The above import will be transformed to:import { Slot } from "@radix-ui/react-slot";
This ensures compatibility with the dependencies installed in your project.
If you still see errors about missing packages, install them manually as needed.
-
Resolve
figma:asset/Imports
Figma Make may generate imports like:import logo from "figma:asset/logo.svg";
This project includes a custom Vite plugin that automatically resolves these imports to files in your local
src/assetsdirectory.
Before you begin, ensure you have the following installed:
git clone https://github.com/likang/figma-make-local-runner
cd figma-make-local-runner- Export your code from Figma Make
- Decompress the downloaded files
- Copy the
srcfolder into the root of this project, replacing the existingsrcfolder.
Important: Make sure to replace or merge with the existing files in the src folder. The current src folder contains a demo application that you should replace with your Figma Make code.
npm installnpm run devThe application will be available at http://localhost:5173 (or another port if 5173 is occupied).
This project is licensed under the MIT License - see the LICENSE file for details.