@volue/design-elevation
TypeScript icon, indicating that this package has built-in type declarations

1.0.5 • Public • Published

@volue/design-elevation

Elevation primitives/tokens to be used across Volue's products

Screenshot

Installation

npm install @volue/design-elevation --save
# or
yarn add @volue/design-elevation

Usage

JavaScript

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

Sass variables and map keys are formatted in kebab-case.

// Using variables
@import '~@volue/design-elevation/dist/index';

div {
  box-shadow: $elevation-m;
}

Dependencies (0)

    Dev Dependencies (9)

    Package Sidebar

    Install

    npm i @volue/design-elevation

    Weekly Downloads

    539

    Version

    1.0.5

    License

    UNLICENSED

    Unpacked Size

    19.1 kB

    Total Files

    12

    Last publish

    Collaborators

    • aleksanderxxx
    • fima1