Home

Awesome

figma-theme

Generate development-ready theme JSON files from Figma Styles

npm i figma-theme

Getting Started

  1. Install figma-theme as a dev dependency in your project
  2. Get a personal access token for the Figma API
  3. Create a .env file with your access token
  1. Add an npm run script: figma-theme <figma-file-id>
  2. Run the script to create a theme.json file based on Figma Styles

Options

Options can be passed as CLI flags or included in a figma-theme object in your package.json

<!-- - TRi6YSk76405ImoatoMF1u28 - 2aMG4hw2qp3jSTGmtAMyhZ - JGLoPfwRFqCwn4xZ8wUmSwp7 - Yw9L6FATzLpdcsnA5vdSgCRT -->