Setup
Download the boilerplate
git clone https://github.com/visualjerk/vue-cion-design-system.git your-system-name
Install its dependencies
cd your-system-name && yarn install
Start development server
yarn dev
Design tokens
Design tokens define the look and feel of your design system at the most basic level.
To get a grasp of what design tokens are, open up src/system/tokens/font-size.yml
in your editor.
As you can see, every font-size value is represented by a meaningful name. Instead of hardcoding values in your codebase you can just refer to the name of each token.
Your styleguide will automatically list these tokens in the section "Design Tokens":
Now try updating the value for "font-size-body" to 17px and see how the styleguide adapts to your change.
Adjusting colors
Open up src/system/tokens/color.yml
in your editor.
By default we use HSL to describe color tokens. This helps creating consistent colors throughout the application. If you don't know HSL yet, take a look at the HSL Color Picker.
Color hues
In order to keep the color token file DRY, base hues are listed under "aliases". Each alias stands for hue + saturation. Try to adjust the value for "teal" and see how that affects the styleguide.
Color tokens
The actual color tokens are listed under "props". Try changing the "color-primary" and its variations to use blue instead of teal and see the effect on the styleguide.
Creating your design
Have a look at the examples inside src/system/tokens/_examples
to get an idea of what is possible. You can try to overwrite the tokens in the main folder with those in the examples subfolders.
Now you can start to create your own design by adjusting the design tokens to your taste. Enjoy!