Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/bitovi/storybook-github-pages-demo

Repo for deploying storybook to Github pages for video demonstration purpose.
https://github.com/bitovi/storybook-github-pages-demo

Last synced: about 7 hours ago
JSON representation

Repo for deploying storybook to Github pages for video demonstration purpose.

Awesome Lists containing this project

README

        

# Example Storybook Project for video demonstration

To run the project.

```bash
docker-compose up
```

To build the project
```
npm run build-storybook
```

### Organization

There are two places to put CSS. Global styles go in the public/styles folder. Module styles stay in the individual `.astro` file for their module.

#### Global Styles

Global styles go in the `public` folder and are organized into the following files:

- `main.css`
- `text.css` includes headings, body, labels, etc.
- `heading-1` through `heading-6` all includes styles for the three breakpoints.
- `font-faces.css` has `@font-face` rules for using Poppins. Currently we directly use scripts from Google Fonts in Layout.astro.

#### Module Styles

Module styles go into a `` block at the bottom of the `.astro` file that contains the corresponding component.

An `.astro` file looks like this:

```astro
---
// TypeScript/JavaScript code goes here. Use JavaScript for Hubspot compatibility.
---

<!-- HTML markup goes here -->

<style>
/* Styles for this component go here */

```