create-fwidgets

0.0.6 • Public • Published

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.

Readme

Keywords

Package Sidebar

Install

npm i create-fwidgets

Weekly Downloads

37

Version

0.0.6

License

MIT

Unpacked Size

13.2 kB

Total Files

10

Last publish

Collaborators

  • fwextensions