@figma-export/cli

Export design assets and components from Figma to code.

npmmacoslinuxwindows
Try with needOr install directly
Source

About

Command line for @figma-export

Commands

figma-export

Examples

export icons from figma as SVG files$ figma-export config.json
generate CSS variables from figma design tokens$ figma-export --output ./tokens config.json
convert figma components to React component code$ figma-export --format=react config.json
save figma design system colors and typography as JSON$ figma-export --only-colors --only-typography config.json
batch download all figma artboards as PNG images$ figma-export --format=png --output ./exports config.json