1.0.4 • Published 4 years ago

tokens-exporter-script v1.0.4

Weekly downloads
-
License
ISC
Repository
-
Last release
4 years ago

Tokens Generator

A script for quickly generating json tokens from figma.

Quick start

Pre-requisite

If needed, install Node.js via Homebrew (or see other options: https://nodejs.org/en/download/package-manager/)

brew install node

Installation

Install the project dependencies via the CLI command:

npm install -g tokens-exporter-script

IMPORTANT: Fetch the .env containing the secret keys for the oAuth to work and put it in the folder you are working on

Todo: instructions on how to get the .env in a secure way.

Using the generator

You can run the script from the /src/tokens-generator folder using the CLI command:

tokens-exporter start

Configuration

For now you can only configure the output folder of the generated files. To do so use:

tokens-exporter config

Help

To check the available commands use:

tokens-exporter help

Todo: oAuth flow instructions

Roadmap

Todo: What the generator currently does (color tokens for the themes) and what is planned for other projects and other tokens..