A boilerplate for creating Figma plugins with Svelte, Vite and Typescript
This Figma Plugin boilerplate uses Svelte, Vite, and Typescript to create Figma plugins. It allows users to connect their plugin to Figma and provides a manifest.json file for linking the plugin to Figma. The development process involves watching for changes and building the plugin UI in the ‘src/App.svelte’ file. The final plugin can be packaged up when ready.
npm install
After installation, go to Plugins / Development / New Plugin in the Figma desktop app for Mac OS or Windows.
Choose the option “Link existing plugin”.
Type “New Plugin” in the Figma global search to go to the plugin development page.
Link the manifest.json file located at the public folder in your directory.
Edit the manifest.json file to give a new name for your plugin.
Start building your plugin UI in the ‘src/App.svelte’ file.
This Figma Plugin boilerplate provides a convenient framework for creating Figma plugins using Svelte, Vite, and Typescript. It simplifies the process of connecting the plugin to Figma and provides a development environment for building the plugin UI. By utilizing powerful tools like Vite and Typescript, developers can create high-quality and efficient Figma plugins.