amiga

Convert SVG to JSON using Figma, Sketch, or a folder of SVGs.

  • amiga

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
amiga
0.0.44 years ago4 years agoMinified + gzip package size for amiga in KB

Readme

amiga
Export JSON from SVGs.

Install

yarn add amiga --dev
npm install amiga --save-dev

Figma

Setup

  1. Generate a
[personal access token](https://www.figma.com/developers/docs#auth-dev-token)
for the Figma API
  1. Create a .env file with your access token
- `FIGMA_TOKEN=<personal-access-token>`
- Alternatively add an environment variable for `FIGMA_TOKEN` in your npm
  script
  1. You can now use amiga figma <figma-file-id> to generate a JSON file from
all components

Options

--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

Sketch

Coming soon!

Thanks

This project is built on the shoulders of giants and wouldn't be possible without an amazing community. Huge thanks to the following people:
design tools and creating figma-theme their thoughts on icons Figma API easy as heck to work with article on icons as react components