Modern starter template for Figma plugins with React, Vite, and TailwindCSS.
npm install
npm run reset # Optional: configure plugin name & ID
npm run watch # Start developmentImport to Figma: Plugins → Development → Import plugin from manifest → Select manifest.json
src/- React UI componentsfigma/code.js- Figma plugin backenddist/- Built files (auto-generated)
npm run watch- Development with auto-rebuildnpm run build- Production buildnpm run reset- Setup wizard (generates plugin ID, sets name)
- React 18 + Vite
- TailwindCSS v4
- ESLint + Prettier
// figma/code.js
figma.ui.onmessage = (msg) => {
if (msg.type === 'action') {
// Your Figma API logic
}
}
// React component
parent.postMessage({ pluginMessage: { type: 'action' } }, '*')MIT - Created by Antonija Pek