Back to React Sketchapp

Styleguide

examples/styleguide/README.md

3.2.2870 B
Original Source

Styleguide

How to use

Download the example or clone the repo:

bash
curl https://codeload.github.com/airbnb/react-sketchapp/tar.gz/master | tar -xz --strip=2 react-sketchapp-master/examples/styleguide
cd styleguide

Install the dependencies

bash
npm install

Then, open Sketch and navigate to Plugins → react-sketchapp: Styleguide

Run with live reloading in Sketch

bash
npm run render

The idea behind the example

The reason we started react-sketchapp was to build dynamic styleguides! This is an example showing how to quickly render rich styleguides from JavaScript design system definition. It uses chroma-js to dynamically generate color contrast labels.