@grace-studio/graceful-figma
v1.1.0
Published
[![npm version](https://badge.fury.io/js/@grace-studio%2Fgraceful-figma.svg)](https://badge.fury.io/js/@grace-studio%2Fgraceful-figma)
Downloads
21
Readme
@grace-studio/graceful-figma
Installation
For global access of the tool install it with
npm i -g @grace-studio/graceful-figma
or yarn global add @grace-studio/graceful-figma
It can also be installed locally in a project with npm i -D @grace-studio/graceful-figma
or yarn add -D @grace-studio/graceful-figma
Usage
The React icons outputted by the command is dependent on @grace-studio/graceful-next to work properly.
With cli-parameters:
graceful-figma react-icons \
--key <project-key> \
--page <page-name> \
--section <section-name> or <section-name,other-section-name> \
--out <./output/dir>
--force
Using config file .gracefulrc.json
{
"token": "optional place for your access token",
"react-icons": {
"key": "project-key",
"page": "page-name",
"section": "section-name", // or ["section-name", "other-section-name"] or "section-name,other-section-name"
"out": "./output/dir",
"force": true || false // optional, will show confirm dialog otherwise. Useful in pipelines.
}
}
graceful-figma react-icons
Optional .env
The access token can be placed in the .env
file
#.env
FIGMA_ACCESS_TOKEN=your-secret-access-token