/extractFigmaTokensExample

simple example of Figma's color tokens extraction via its API

Primary LanguageJavaScript

Color tokens extraction example with Figma API

This project is an example of the extractions of figma tokens in order to be used in your projects.

Running the code

To run this code you need to generate a Figma API key and make it accessible to the code by putting it in an environment variable:

export FIGMA_API_TOKEN="XXXXX-XXXXX-XXXXX-XXXXX-XXXXX-XXXXX"

Then you just need to run it via the following command line:

npm start