Skip to content

Latest commit

 

History

History
 
 

generate-icon-lib

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

@modulz/generate-icon-lib

Usage

generate-icon-lib --file=<figma-file-key>

The figma-file-key can be sourced from the link to a Figma document:

  • https://www.figma.com/file/<figma-file-key>

Authentication with Figma

Go to your Account Settings in Figma to create a Personal Access Token.

This can be provided to generate-icon-lib via the FIGMA_ACCESS_TOKEN environment variable.

Create an .env file an intended directory for easy reuse:

echo "FIGMA_ACCESS_TOKEN=<token>" >> packages/radix-icons/.env

Future

  • Support importing from Sketch
  • Support importing from a directory of SVGs
  • Allow the CLI to re-run on existing SVGs in a package ie. after changing the React component template
  • Publish the @modulz/generate-icon-lib CLI Tool for public use

License

Licensed under the MIT License, Copyright © 2020-present Modulz.

See LICENSE for more information.