You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
import*asReactfrom'react';import{render,Text,Artboard}from'react-sketchapp';constApp=props=>(<Artboard><Textstyle={{fontFamily: 'Comic Sans MS',color: 'hotPink'}}>{props.message}</Text></Artboard>);exportdefaultcontext=>{render(<Appmessage="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