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

react-sketchapp

> 前端框架
Open source

render React components to Sketch ⚛️💎

14.9K stars0 likes2 views
WebsiteGitHub

About

render React components to Sketch ⚛️💎

Quick-start 🏃‍

First, make sure you have installed Sketch version 50+, & a recent npm.

Open a new Sketch file, then in a terminal:

bash
git clone https://github.com/airbnb/react-sketchapp.git
cd react-sketchapp/examples/basic-setup && npm install

npm run render

Next, check out some more examples!

Why?!

Managing the assets of design systems in Sketch is complex, error-prone and time consuming. Sketch is scriptable, but the API often changes. React provides the perfect wrapper to build reusable documents in a way already familiar to JavaScript developers.

What does the code look like?

javascript
import * as React from 'react';
import { render, Text, Artboard } from 'react-sketchapp';

const App = props => (
  <Artboard>
    <Text style={{ fontFamily: 'Comic Sans MS', color: 'hotPink' }}>{props.message}</Text>
  </Artboard>
);

export default context => {
  render(<App message="Hello world!" />, context.document.currentPage());
};

What can I do with it?

  • Manage design systems— react-sketchapp was built for Airbnb’s design system; this is the easiest way to manage Sketch assets in a large design system
  • Use real components for designs— Implement your designs in code as React components and render them into Sketch
  • Design with real data— Designing with data is important but challenging; react-sketchapp makes it simple to fetch and incorporate real data into your Sketch files
  • Build new tools on top of Sketch— the easiest way to use Sketch as a canvas for custom design tooling

Found a novel use? We'd love to hear about it!

Read more about why we built it

Documentation

  • Examples
  • API Reference
  • Styling
  • Universal Rendering
  • Data Fetching
  • FAQ
  • Contributing

Issues· 36 open

View all issuesOpen on GitHub
  • #528

    Add TestRenderer.act callback function

    Updated Jul 18, 2026
  • #492

    Non-uniform border mask path overlaps borderRadius

    bugUpdated Sep 15, 2023
  • #533

    SVG rendering broken in Sketch 85.1

    Updated Apr 12, 2022
  • #527

    Unable to use [email protected] with typescript

    Updated Aug 16, 2021
  • #526

    Better Image API Parity with React Native

    Updated Mar 26, 2021
  • #477

    Render crashes Sketch with @skpm/builder @0.7.0 - @0.7.5

    Updated Oct 12, 2020
  • #523

    Svg did not rendered as expected

    Updated Sep 17, 2020
  • #176

    form-validation example

    help wantedUpdated Aug 5, 2020
  • #519

    renderToJson broken in 3.2.5

    Updated Jun 8, 2020
  • #507

    Support fixed position for prototypes

    enhancementUpdated May 5, 2020

> Tags

TypeScriptreactreact-rendererreact-sketchappsketch

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedOct 1, 2026
Category前端框架
PricingOpen source

> Related tools

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