This project was bootstrapped with Create React App.
npm i
npm run chromatic
The chromatic script runs Chromatic to diff the current code from the baseline.
- Run create-react-app
npx create-react-app chromatic-demo
- Add Storybook
npx -p @storybook/cli sb init
- Add Chromatic
npm install --save-dev storybook-chromatic
- Add
import "storybook-chromatic";
to.storybook/config.js
- Log into Chromatic site and add project
- Add
chromatic
npm script to this project's package.json (script with app-code is displayed when you setup project in previous step) npm run chromatic
- This generates baseline images and provides a URL to view the results.