@energie360/design-tokens
v1.3.0
Published
## Create customised CSS variables
Readme
Design Tokens
Create customised CSS variables
- Copy the file
design-tokens.jsoninto thecustomfolder (create it if it doesn't exist yet) and rename it accordingly, e.g.thalwil.json - Change the color codes (or other values).
- Run following command:
pnpm -F @energie360/design-tokens run custom-tokensFiles with the custom CSS variables are created in the custom folder, e.g. thalwil.css.
Make a color palette
Use this tool to create the color shades/tints: https://m2.material.io/design/color/the-color-system.html#tools-for-picking-colors
IMPORTANT
Currently our design system doesn't use "primary" and "secondary" colors like most design systems would. To get this behaviour for a new theme use the following mapping:
- Primary Color (and its shades) ->
primary-01andsecondary-01 - Secondary Color (and its shades) ->
secondary-02
