Open-Awesome
CategoriesAlternativesStacksSelf-HostedExplore
Open-Awesome

© 2026 Open-Awesome. Curated for the developer elite.

TermsPrivacyAboutGitHubRSS
  1. Home
  2. Design systems
  3. Figmagic

Figmagic

MITTypeScriptv4.6.0

Generate design tokens, export graphics, and extract React components from Figma documents to bridge design and development.

Visit WebsiteGitHubGitHub
857 stars82 forks0 contributors

What is Figmagic?

Figmagic is a command-line tool that bridges the gap between design and development by automating the extraction of design tokens, graphics, and React components from Figma documents. It solves the problem of manual handoff and inconsistent design implementation by treating Figma as the source of truth and generating code that binds to design tokens.

Target Audience

Frontend developers, design system engineers, and product teams who use Figma for design and want to automate the translation of designs into code while maintaining a structured design system.

Value Proposition

Developers choose Figmagic because it is lightweight, automatable, and designer-driven, with design tokens as a first-class concept. It offers flexibility through customizable templates and supports a wide range of output formats, reducing boilerplate and ensuring consistency between design and code.

Overview

Figmagic is the missing piece between DevOps and design: Generate design tokens, export graphics, and extract design token-driven React components from your Figma documents.

Use Cases

Best For

  • Automating design token extraction from Figma for design systems
  • Generating React components from Figma designs to speed up development
  • Exporting graphics (SVG/PNG) from Figma without manual effort
  • Maintaining consistency between design and code in cross-platform projects
  • Scaffolding low-level UI components (buttons, inputs) from Figma elements
  • Integrating design handoff into CI/CD pipelines with GitHub Actions

Not Ideal For

  • Projects using design tools other than Figma, such as Sketch or Adobe XD
  • Teams needing to generate complex, stateful React components with custom business logic
  • Environments where designers frequently change Figma structure without adhering to naming conventions
  • Small, rapid-prototyping projects where setting up the required Figma pages and configuration is disproportionate to the value

Pros & Cons

Pros

Automated Design Token Extraction

Extracts platform-agnostic tokens like colors, spacing, and typography from Figma frames, outputting them in JSON, TypeScript, CSS, or other formats, which reduces manual handoff errors and ensures consistency.

Flexible Code Generation

Supports customizable templates for React, Styled Components, Storybook, and graphics, allowing teams to tailor generated code to their tech stack, as shown in the extensive configuration options.

Designer-Centric Workflow

Treats Figma as the single source of truth, enabling designers to maintain tokens and components directly in the design tool, which promotes collaboration and reduces developer overhead.

Lightweight and Integrable

Has no external dependencies and can be run via CLI, environment variables, or config files, with GitHub Actions available for CI/CD integration, making it easy to automate in pipelines.

Cons

Strict Figma Structure Required

Figma documents must have a page named 'Design tokens' and frames with specific spellings; deviations break extraction, as admitted in the README, requiring rigid adherence that can limit flexibility.

Limited Advanced Component Support

Best suited for low-level elements like buttons and inputs; complex components or Figma Variants are not yet supported, and the README warns that generated components may need significant manual refinement.

Complex Configuration Setup

Requires setting up a Figma API token, configuration file, and understanding numerous CLI options, which can be overwhelming for new users and adds initial setup overhead.

Frequently Asked Questions

Quick Stats

Stars857
Forks82
Contributors0
Open Issues10
Last commit11 months ago
CreatedSince 2018

Tags

#design-system#hacktoberfest#devops#figma#tokens#ux#styled-components#frontend-tooling#design-tokens#code-generation#automation#react-components#figma-integration#design-systems

Built With

T
TypeScript
N
Node.js

Links & Resources

Website

Included in

Design systems831
Auto-fetched 4 hours ago

Related Projects

Style DictionaryStyle Dictionary

A build system for creating cross-platform styles.

Stars4,629
Forks619
Last commit10 days ago
TheoTheo

Theo is a an abstraction for transforming and formatting Design Tokens

Stars1,991
Forks119
Last commit10 months ago
Community-curated · Updated weekly · 100% open source

Found a gem we're missing?

Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.

Submit a projectStar on GitHub