0.0.4 • Published 3 years ago
pull-from-figma v0.0.4
pull-from-figma
this is a tool aiming to help developers to download and keep updated figma templates as react components
How to use
- Get an access token on figma and store it in
FIGMA_TOKENenv variableexport FIGMA_TOKEN=<YOUR_TOKEN> - create a file
figma.jsonwith the following structure :
{
"ref":{
"figma_id": "",
"output": ""
}
}refwill be a reference to update this componentfigma_idis your figma project id (you can find it in the project url www.figma.com/file/{id})outputis a javascript file the component will be written
- run
npx pull-from-figmawith eventually--ref=refto generate the files
usage : pull-from-figma [--file=figma.json] [--ref=.*]