Skip to content

sbaechler/example-fractal

Repository files navigation

Example Design System

Design Systems are for People.

Structure

Fractal based styleguides consist of two parts: Components and Documentation. The Documentation part is for the design concepts. The Components part holds the actual components.

The documentation is written in Markdown. The components are Handlebars files.

To write Markdown, use your favorite text editor (e.g. Atom) with a markdown plugin, or an online editor like Dillinger.

The Guide

This guide is based on Fractal. The component structure is based on the GE Predix Design system. The documentation structure is based on the Salesforce Lightning Design System with a bit of Shopify Polaris sprinkled in.

Visual Regression test

Visualize changes by comparing screenshots of the components. This functionality is provided by BackstopJS.

You can compare the current state to the latest built state.

  1. Make sure you have a local build by running npm run build.
  2. Create reference screenshots by running npm run visual-reference.
  3. To create the diffs, run npm run visual. Make sure the local server is running.
  4. Optionally update the references with the new state by running npm run visual-approve.

The backstop configuration is in the folder tests/backstop/config.js.

Installation

Node.js 6.9 or higher is required.

Run npm install.

To simplify the creating of new components install the fractalcomp package.

Run locally

Run npm start.

About

Opinionated Fractal Styleguide prototype.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published