Skip to content

A CLI tool used to generate React/Next (with Tailwind-CSS utility classes) or bare HTML/CSS source code using only the Figma design file ID and a generated Figma API token.

License

Notifications You must be signed in to change notification settings

theAstralProgrammer0/figma-codegen-backup

Repository files navigation

figma-codegen

CLI tool to generate code from Figma files.

Installation

git clone cd figma-codegen npm install npm run build npm link

Usage

Set FIGMA_TOKEN env. figma-codegen --reactstyle

generate figma_url https://figma.com/file/KEY/Name

For Next.js: cd output/generated-app && npm i && npm run dev

Supported Nodes

All listed: CANVAS, FRAME, etc.

Tests

npm test

About

A CLI tool used to generate React/Next (with Tailwind-CSS utility classes) or bare HTML/CSS source code using only the Figma design file ID and a generated Figma API token.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published