hubees-icons

0.2.0 • Public • Published

Hubees Icons

How to use

In the root of the project, copy and past the ".env.example" file and rename it to ".env".

Now let's get the Figma Token, go to this link: https://www.figma.com/settings, and follow the instructions as the gif below.

programmatic-export

Once you got that, paste in the .env file on "FIGMA_TOKEN" parameter.

Now let's get the file you are using, once you open the figma file, you can get that on the URL: image

Go back to your ".env" file and paste it on "FILE_ID" parameter.

Your file should be like that: image

All right, now we just need to run the script to get the icons.

Available scripts

image

npm run clean: Will delete all local icons;
npm run export: Will download locally all the icons from the pages solid and outline;
npm run rename: Will rename the icons, removing the extra prefix that figma bring by default, and add the prefix "hubees-";
npm run build: Will run clean, export and rename at once;
npm run np: This command help to create a npm version after run build;
npm run release: This command does everything needed to build and publish the icons lib. But to use it, you need to have git and npm access.

Readme

Keywords

none

Package Sidebar

Install

npm i hubees-icons

Weekly Downloads

49

Version

0.2.0

License

ISC

Unpacked Size

70.9 kB

Total Files

48

Last publish

Collaborators

  • mayconnw