A plugin that allows you to import any icon set from react-icons in to your Figma file, creating a component with an appropriate name for each icon.
https://www.figma.com/community/plugin/921172243620367846/Import-React-Icons
-
Clone the repository
-
Open the Figma desktop app
-
Visit
Plugins > Development > Import plugin from manifest...
-
Find and open the
manifest.json
file in the repository
Install the dependencies and start the build in watch mode:
nvm install
yarn install
yarn build:watch
This will build the plugin and then re-build it whenever a file is modified.
You can now test the plugin by visiting Plugins > Development > Import React-Icons
.
Note: Figma has no "hot reload" for plugins, when you make a change to a file you must wait for compilation to finish and then close and re-open the plugin.
To publish an update to the plugin you will need to login as the "Portable Account" account (check LastPass) and then:
-
Build the new version of the plugin and test it
-
Open the Figma desktop app
-
Visit
Plugins > Manage Plugins...
-
Under
In development
press the options button next toImport React-Icons
and selectPublish New Release...
-
(Optional) Add some information to the
"Version notes"
field -
Hit
"Publish"
View TODO.md