1.0.0-alpha.13 • Published 3 years ago

@wuerthcs/design-token v1.0.0-alpha.13

Weekly downloads
97
License
MIT
Repository
github
Last release
3 years ago

Würth Cloud Services - Design Tokens

Release NPM.js package

Installation

You can install the design tokens via NPM or yarn.

npm install @wuerthcs/design-token --save

Usage

You can find all design token files in the @wuerthcs/design-token/dist folder. For example in Typescript you could work with the tokens like this:

Javascript

import tokens from '@wuerthcs/design-token/dist/variables.json';

console.log(tokens.color.light.font.base);

CSS

@import "node_modules/@wuerthcs/design-token/dist/variables.css";

body {
  font-size: var(--SizeFontLg);
  line-height: var(--SizeLineHeightLg);
}

Maintainers

TBD

License

TBD