@urbaninfrastructure/design-tokens
v7.1.0
Published
Design tokens for the Bikesharing systems. A design token currently consist of
Keywords
Readme
Bikesharing public design tokens
Design tokens for the Bikesharing systems. A design token currently consist of
- a name
- colors
Adding New Colors
To add a new color to the palette:
Add the new color definition to
src/color-base.tsin thethemeobject with the following structure:colorName: { name: 'Display Name', ral: 'RAL Code', hex: '#HEXCODE', }Run the build script to generate the updated color tokens:
yarn build-colors
This will automatically generate the src/color.ts file with all the color variations (light, dark, palette versions) for the new color.
Test
yarn
yarn test