The repo has three packages:
packages/design-system-react
: A component library & design system. It contains the recipes, exports a preset and a button component. This package also contains.stories.tsx
files that are loaded by the workshop application.apps/front
: A Vite frontend application. It renders the button from@mono/design-system-react
.apps/workshop
: A storybook application that picks the stories from the component library.
- Run
pnpm install
:)
- Install the dependencies
- Run
pnpm dev
to start thefront
andworkshop
applications. - Open workshop and front in your browser.
- Notice that the
Edgy
story is missing its styles. - Edit
packages/design-system-react/src/button/button.stories.ts
, comment out the Edgy args story, uncomment the Edgy render story. - Restart the servers.
- Notice that
Edgy
is now correctly styled.