# Scandic Design System This repo contains the design system for Scandic Hotels. It is built on Vite. The output is an NPM package. It is currently not published to any registry. Consumers are free to choose how to consume the distribution. ## The stack ### Tech in this repository - [react-aria-components](https://react-spectrum.adobe.com/react-aria/components.html): Accessible components (set as peer dependency). - [Storybook](https://storybook.js.org/): Frontend workshop for building UI components and pages in isolation. - [Vite](https://vite.dev/): Build tool ## Usage Most of the components in this design system are self explanatory, refer to the Storybook for reference and use cases. However there are some components that benefit from a bit more documentation and these have more documentation attached to their Storybook. One such notable component is the `Typography` component. Read the documentation in the docs for the components story in Storybook at `lib/components/Typography/Typography.docs.mdx` or read it in the deployed Storybook in a browser. For example: https://design-system-scandic-hotels.netlify.app/?path=/docs/components-typography--docs ## Contributing - Clone the repository. - Do your changes. - Build the project. - Push the build output to origin. ### Clone the repository To get started with the project, clone the repository and install the dependencies: ```bash git clone git@bitbucket.org:scandic-swap/web.git cd web yarn ``` ### Do your changes Work your magic. ### Build the project ```bash yarn workspace @scandic-hotels/design-system build ``` ### Push the build output to origin ```bash git add packages/design-system/ git commit git push ``` ## Main script targets Run the following script targets either from the project root with: ```bash yarn workspace @scandic-hotels/design-system