Skip to content

Commit

Permalink
Include env setup in README
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewortwein committed Jan 22, 2025
1 parent 70445d5 commit 6254f5b
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,15 @@ pnpm add @storybook/icons

## Generating new icons from Figma

Fetch all icons from Figma locally and create React components + stories automatically:
First, set local environment variables:

```console
FIGMA_API_TOKEN=<YOUR_FIGMA_API_TOKEN>
FIGMA_FILE_ID=<FIGMA_FILE_ID>
FIGMA_CANVAS=Icons
```

Then, fetch all icons from Figma locally and create React components + stories automatically:

```console
pnpm generate-icons
Expand Down

0 comments on commit 6254f5b

Please sign in to comment.