0.0.4 • Published 2 years ago

pull-from-figma v0.0.4

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

pull-from-figma

this is a tool aiming to help developers to download and keep updated figma templates as react components

How to use

  1. Get an access token on figma and store it in FIGMA_TOKEN env variable
    export FIGMA_TOKEN=<YOUR_TOKEN>
  2. create a file figma.json with the following structure :
{
    "ref":{
        "figma_id": "",
        "output": ""
    }
}
  • ref will be a reference to update this component
  • figma_id is your figma project id (you can find it in the project url www.figma.com/file/{id})
  • output is a javascript file the component will be written
  1. run npx pull-from-figma with eventually --ref=ref to generate the files
usage : pull-from-figma [--file=figma.json] [--ref=.*]