@nederlands-dagblad/storybook
v0.2.46
Published
This repository contains the design system for our company, built with Vue 3, Tailwind CSS, and Storybook.
Readme
Company Design System
This repository contains the design system for our company, built with Vue 3, Tailwind CSS, and Storybook.
Getting Started
Installation
npm installUpdating tokens
- Go to the Design system in Figma: https://www.figma.com/design/KBKdkDiytfjb5XDctGX367.
- Install the plugin 'Design token manager' from the Figma community.
- Open the plugin and click the 'export' button.
- Copy the generated JSON to the
/tokensfolder in this project. - Run the
yarn build-tailwind-tokenscommand to generate the Tailwind CSS configuration from the tokens.
Note: this command only needs to be run when the tokens are updated in Figma. No need to call this method every time you run the project, or deploy it.
Development
To run the development server:
npm run serveTo run Storybook:
npm run storybookBuilding
To build the library:
npm run buildTo build Storybook:
npm run build-storybookComponents
The design system includes the following components:
- Button
- Card
Each component has its own directory with:
- Vue component file
- Storybook stories file
Customization
The design system uses Tailwind CSS for styling. You can customize the design tokens in the tailwind.config.js file.
Adding New Components
- Create a new directory in
src/components/ - Add your Vue component file
- Create a Storybook stories file
- Export the component in
src/components/index.js
