Convert SVG to JSON using Figma, Sketch, or a folder of SVGs.
npm install amigaExport JSON from SVGs.
yarn add amiga --dev
npm install amiga --save-dev
1. Generate a
personal access token
for the Figma API
2. Create a .env file with your access token
- FIGMA_TOKEN=
- Alternatively add an environment variable for FIGMA_TOKEN in your npm
script
3. You can now use amiga figma to generate a JSON file from
all components
````
--name name of the generated JSON file
--out-dir output directory (defaults to cwd)
--camel-case camelCase all props
--blacklist exclude props in a space separated list
Coming soon!
This project is built on the shoulders of giants and wouldn't be possible
without an amazing community. Huge thanks to the following people:
- Brent Jackson for always experimenting with
design tools and creating
figma-theme
- Github Design for sharing
their thoughts on icons
- Jon Gold for making the
Figma API easy as heck to work with
- David Gilbertson for his wonderful
article on
icons as react components