Elevation primitives/tokens to be used across Volue's products
npm install @volue/design-elevation --save
# or
yarn add @volue/design-elevation
In JavaScript, design token names are formatted in lower camelCase.
const tokens = require('@volue/design-elevation');
console.log(tokens.elevationM);
In JSON, design token names are formatted in SNAKE_CASE.
const tokens = require('@volue/design-elevation/dist/index.json');
console.log(tokens['ELEVATION_M']);
Sass variables and map keys are formatted in kebab-case.
// Using variables
@import '~@volue/design-elevation/dist/index';
div {
box-shadow: $elevation-m;
}