npm i @koobiq/icons
Install dependencies by running:
yarn install
- Draw your icon in Koobiq Icons figma file.
- Make icons contains the only single outlined and flattened path with name
shape
(second-color path with nameshape-2
). - Using a Fill Rule Editor plugin, set shapes' fill rule to Non-zero fill. Make sure icon is rendered correctly.
- Run flatten for shapes one more time (there is a bug in Figma).
Create a file with name .env
and add there your Figma access token.
To export your icons (SVG) from Figma run the command:
yarn run figma:sync
Change mapping.json
:
- Add an entry into
mapping.json
with a new codepoint keys. - Edit the name of an icon in the
mapping.json
in case of icon rename
Commit SVG files mapping.json
and push all changes to git.
Run stage commit script to create a new release tag.
yarn run stage:commit
Use semver for version naming. So increment major (first) version number if any of these changes were made:
- Any icon name was changed (breaking changes for front-end developers)
- Any icon codepoint was changed (breaking changes for tech writers)
- Significant changes in icon metaphor (breaking changes for all)