@volue/design-icons
Icons to be used across Volue's products
Installation
npm install @volue/design-icons --save
yarn add @volue/design-icons
Usage
JavaScript
In JavaScript, design token names are formatted in lower camelCase.
const tokens = require('@volue/design-icons');
console.log(tokens.signOut);
In JSON, design token names are formatted in SNAKE_CASE.
const tokens = require('@volue/design-icons/dist/index.json');
console.log(tokens['SIGN_OUT']);
Sass
Sass variables and map keys are formatted in kebab-case.
@import '~@volue/design-icons/dist/index';
SVG sprite
@volue/design-icons/dist/sprite.svg