Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
R

react-figma

> 前端框架
Open source

⚛️ A React renderer for Figma

2.7K stars0 likes3 views
WebsiteGitHub

About

⚛️ A React renderer for Figma

React Figma

A React renderer for Figma. Use React components as a source for your designs.

  • Compatible with react-native, react-sketchapp, react-primitives API.
  • Flexible layouts support with Yoga Layout.
  • ♻️ Hydration and HMR support.
  • ⚙️ Built on Figma Plugin API.
  • Is not a code generator.

Example of code:

javascript
import * as React from 'react';
import { Page, View, Text } from 'react-figma';

export const App = () => {
    return (
        <Page name="New page" isCurrent>
            <View>
                <View style={{ width: 200, height: 100, backgroundColor: '#dd55aa' }} />
                <Text style={{ color: '#ffffff' }}>text</Text>
            </View>
        </Page>
    );
};

Installation

Using boilerplate

You can use react-figma-boilerplate for creating own projects.

From scratch

Install it with yarn:

bash
yarn add react react-figma

Or with npm:

bash
npm i react react-figma --save

Usage

Configure main thread

javascript
import { setupMainThread } from 'react-figma/rpc';

figma.showUI(__html__, { visible: false });

setupMainThread();

Configure ui thread

javascript
import * as React from 'react';
import { App } from './App';

import 'react-figma/rpc';
import { render } from 'react-figma';

render(<App />);

Import components

javascript
import * as React from 'react';
import { Page, Rectangle, Text } from 'react-figma';

export const App = () => {
    return (
        <Page name="New page">
            <Rectangle style={{ width: 200, height: 100, backgroundColor: '#dd55aa' }} />
            <Text characters="text" style={{ color: '#ffffff' }} />
        </Page>
    );
};

Docs

  • API Overview
    • render
    • Page
    • Frame
    • View
    • Text
    • Image
    • ...
  • Styling
  • Architecture

Examples

  • Basic
    • Basic + HMR
  • Design system
  • Interactive
  • UI - Interact with a Plugin UI
  • Data fetching
  • styled-components
  • PrimerDemo - Example of multiplatform UI-kit
  • Component Variants
  • MDX
  • Local Styles

Sponsoring

Become a backer and get your logo on our Readme on GitHub with a link to your site.

Become a sponsor and get your logo on our README on GitHub with a link to your site.

Contributing

Everyone is welcome to contribute. Whether you're helping us implement features, fix bugs or improve the docs, we'd love to have you as part of the community!

How to Contribute

Check out our Contributing Guide for ideas on contributing and setup steps for getting repository up and running on your local machine.

Acknowledgements

React Figma team wishes to thank the following invaluable contributions:

  • Lera Lesik, for creating project logo.
  • Maksim, for TypeScript counseling.

Tested with browserstack

Contributors ✨

Thanks goes to these wonderful people (emoji key):


Ilya Lesik


Losev Yaroslav


Vishnu Singh


corrina


Zachary Witt


Abdelrahman Ashraf


sprashad


Vivian Lee


macintoshhelper


Pierre Grimaud


Greg Westneat


Marius Reimer


szeko


Jonathan Holmes


headwindz


Darío Hereñú


Konstantin Popov


Utkarsh Singh


mrkenneh


Anna Do


Steven Petryk


Thierry Charbonnel


Jack Oliver


Marc Abramowitz


fishtriangle


Carlos


Raghu Ram M

This project follows the [all-contributors](https://github.com/all-contributors/all-co

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

TypeScriptfigmafigma-pluginsreact

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
Category前端框架
PricingOpen source

> Related tools

R
React
用于构建用户界面的 JavaScript 库
V
Vue.js
渐进式 JavaScript 框架
N
Next.js
基于 React 的全栈 Web 框架