A CLI tool to quickly scaffold Figma plugins using React, Vite, and TypeScript — with optional extras like Prettier, Tailwind CSS and Shadcn UI.
The easiest way to get started is using npx:
npx create-figma-react-plugin my-plugin# Using npx (recommended)
npx create-figma-react-plugin my-plugin
# Or install globally
npm install -g create-figma-react-plugin
create-figma-react-plugin my-plugin# Create a new plugin project
npx create-figma-react-plugin my-pluginYou’ll be prompted for:
- Plugin name
- Plugin ID (reverse-domain format, e.g.
com.example.myplugin) - Description
- Extras (Prettier, Tailwind CSS, Shadcn UI)
This will generate a new Figma plugin project in the my-plugin folder with:
⚡ React + Vite for fast dev experience
🏗️ TypeScript for type safety
🎨 Optional extras like Tailwind CSS and Shadcn UI
my-plugin/
├── manifest.json
├── package.json
├── tsconfig.json
├── vite.config.ts
├── src/
│ ├── main.tsx
│ └── ui.tsx
If you select Tailwind CSS (and/or Shadcn UI), config files will be added and vite.config.ts will be extended.
After scaffolding your plugin, run:
cd my-plugin
npm run devThis will start the Vite dev server. Open the Figma desktop app, go to Plugins > Development > Import Plugin from Manifest... and select your plugin's manifest.json.
- Error: Cannot find module ...
- Make sure you are using Node.js v18 or newer.
- Ensure you ran
npm installin your plugin directory.
- How do I add more extras later?
- You can manually install Prettier, Tailwind CSS, or Shadcn UI by following their docs.
- How do I update my plugin?
- Edit your code and re-run
npm run build.
- Edit your code and re-run
- Where can I get help?
- ⚡ React + Vite for blazing fast builds
- 🏗️ TypeScript out of the box
- 🧹 Prettier (optional)
- 🎨 Tailwind CSS v4 (optional)
- 🎨 Shadcn UI (optional)
- 🗂 Reverse-domain plugin ID support
- 🚀 Zero-config setup
Contributions, issues, and feature requests are welcome! Feel free to open an issue or submit a PR.
This project is licensed under the MIT License.