Base HTML

Clone this repo:

git clone git@github.com:jdromero88/base-html.git && cd base-html

Install DS

npm i storybook-html-demo -D
cd node_modules/storybook-html-demo && npm i && cd ../../

run this command to run storybook npm run ds

Add a Storybook Design System

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 the css

<link rel="stylesheet" href="index.css">

In the scss file import the DS css file

@import "../node_modules/storybook-html-demo/src/stories/atoms/Button.css";
@import "../node_modules/storybook-html-demo/src/stories/molecules/ButtonGroup.css";

Compile the SCSS

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