0.0.6 • Published 2 months ago

create-fwidgets v0.0.6

Weekly downloads
-
License
MIT
Repository
github
Last release
2 months ago

create-fwidgets

Create a new Figma plugin using the fwidgets library.

screenshot

Usage

npm create fwidgets@latest

Follow the prompts to create a fully-scaffolded plugin directory:

$ npm create fwidgets@latest
  Enter the name of the plugin:
  > My Plugin
  Enter the directory in which to create the plugin:
  > my-plugin
  ✔ Cloned: fwextensions/fwidgets/packages/plugin -> my-plugin

Then install the dependencies and start the development server:

$ cd my-plugin
$ npm install
$ npm run dev

The plugin will be rebuilt whenever files in the src directory change. (This package uses the excellent create-figma-plugin tool to build and package the plugin.)

In Figma, go to Plugins > Development > Import plugin from manifest... and select the manifest.json file that has been generated in your plugin's directory. Run your new plugin to see the sample code ask for a color, then a number of rectangles to create, and finally a confirmation before creating the colored rectangles and copying their bounding boxes to the clipboard as JSON.

Get started creating your own Figma plugin UI.

0.0.5

2 months ago

0.0.6

2 months ago

0.0.4

4 months ago

0.0.3

4 months ago

0.0.2

4 months ago

0.0.1

4 months ago