react-figma

by ilyalesik

A React renderer into Figma

841 Stars 35 Forks Last release: 3 months ago (v0.1.6) MIT License 834 Commits 74 Releases

Available items

Integration

Developer services
$299.00

Integration help

Custom code optional

Contact me before purchase

Custom Feature

Developer services
$399.00

Custom feature

Contact me before purchase

1 Support Hour

Developer services
$39.00

Email/Chat Support

Ask me anything

Coding not included

React Figma

React Figma logo by Lera Lesik

All Contributors npm version CircleCI Join the community on Spectrum

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

Example of code:

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

export const App = () => { return ( text ); };


⚠️ Warning!️ Project is not production ready and currently at beta version. API can be changed.


Installation

Using boilerplate

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

From scratch

Install it with yarn:

yarn add react react-figma

Or with npm:

npm i react react-figma --save

Usage

Configure main thread

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

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

setupMainThread();

Configure ui thread

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

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

render();

Import components

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

export const App = () => { return ( ); };

Docs

Examples

Become a Contributor πŸŽ–

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:

Tested with browserstack

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

πŸ’»

This project follows the all-contributors specification. Contributions of any kind welcome!

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.