UNPKG

pdh-design-system

Version:

PDH Design System React Components

46 lines (28 loc) 846 B
# PDH-Design-System-React Storybook project for the react portion of design system of the [Pacific Data Hub](https://pacificdata.org/). # Usage To run the storybook, use the following command: ```bash npm run storybook ``` To run the storybook with debugging, use the following command: ```bash npm run sb-debug ``` To build the component library (outputs CJS + ESM + types + CSS to `dist/`), use the following command: ```bash npm run build ``` To build a static export of the storybook, use the following command: ```bash npm run build-storybook ``` To serve the static storybook export locally, use the following command: ```bash npm run serve-storybook ``` # Theme To set the theme of the storybook, set the STORYBOOK_THEME environment variable to either "dark" or "light". ```bash STORYBOOK_THEME=dark npm run storybook ```