A skeleton project designed to run code downloaded from Figma Make locally
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.
undefinedPre-installed Packagesundefined
This project comes with many packages that Figma Make-generated code may require (see package.json). If you encounter errors about missing dependencies, simply install the required packages using npm install <package-name>.
undefinedAutomatic Removal of Version Specifiers in Importsundefined
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.
undefinedSolution:undefined
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.
undefinedResolve figma:asset/ Importsundefined
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/assets directory.
Before you begin, ensure you have the following installed:
git clone https://github.com/likang/figma-make-local-runner
cd figma-make-local-runner
src folder into the root of this project, replacing the existing src folder.undefinedImportant: 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 install
npm run dev
The 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.
We use cookies
We use cookies to analyze traffic and improve your experience. You can accept or reject analytics cookies.