A template for Preact-powered Figma plugins
-
Create a new plugin via Figma.
Plugins > Development > New Plugin
Choose the "Empty" plugin type. -
Clone this repo into your plugin folder.
You can do npx degit github:setphen/FigmaPreactStarter --force
to copy the
main branch without cloning any of this template's git history.
- Add or replace these lines in
manifest.json
"main": "dist/code.js",
"ui": "dist/ui.html",
npm i
to install modules
npm run watch
to start development