@volue/design-colors
Color primitives/tokens to be used across Volue's products
Installation
npm install @volue/design-colors --save
yarn add @volue/design-colors
Usage
JavaScript
In JavaScript, design token names are formatted in lower camelCase.
const tokens = require('@volue/design-colors');
console.log(tokens.colorBlue100);
In JSON, design token names are formatted in SNAKE_CASE.
const tokens = require('@volue/design-colors/dist/index.json');
console.log(tokens['COLOR_BLACK']);
Sass
Sass variables and map keys are formatted in kebab-case.
@import '~@volue/design-colors/dist/index';
a {
color: $color-accent120;
}