This template contains the react example as shown on Figma Docs, with some structural changes and extra tooling.
It's based on the Reqsy Figma Plugin
- Run
yarn
to install dependencies. - Run
yarn build:watch
to start webpack in watch mode. - Open
Figma
->Plugins
->Development
->Import plugin from manifest...
and choosemanifest.json
file from this repo.
⭐ To change the UI of your plugin (the react code), start editing App.tsx.
⭐ To interact with the Figma API edit controller.ts.
⭐ Read more on the Figma API Overview.
This repo is using:
- React + Webpack
- TypeScript
- Prettier precommit hook
id - leave empty until assigned at first publish attempt, then add networkAccess.allowedDomains, networkAccess.devAllowedDomains - any url you acess for production or development must be declared