Clone this repo:
git clone git@github.com:jdromero88/base-html.git && cd base-html
npm i storybook-html-demo -D
cd node_modules/storybook-html-demo && npm i && cd ../../
run this command to run storybook npm run ds
To add a Design System made with storyboook you can do it by updating the ./storybook/main.js
"refs": {
"design-system": {
"title": "iLab Design System",
"url": "https://main--61d37f5ad4221d003aab534d.chromatic.com/",
"expanded": false, // optional, true by default
}
}
<link rel="stylesheet" href="index.css">
@import "../node_modules/storybook-html-demo/src/stories/atoms/Button.css";
@import "../node_modules/storybook-html-demo/src/stories/molecules/ButtonGroup.css";
sass --style=compressed ./src/index.scss ./src/index.css
if you dont have sass can install by running:
npm install --save-dev sass
or
brew install sass/sass/sass