npm.io
0.3.0 • Published 4 years ago

@manifest-ui/tokens

Licence
MIT
Version
0.3.0
Deps
0
Size
23 kB
Vulns
0
Weekly
0

@manifest-ui/tokens

Design tokens for manifest-ui projects

Installation

yarn add @manifest-ui/tokens

Usage

Use the getToken function to return the token value.

import { getToken } from '@manifest-ui/tokens';

const backgroundColor = getToken('color-background-primary');
Raw Values

You can also access the raw token value, however, this is not recommended as these are subject to change.

import { COLOR_BACKGROUND_PRIMARY } from '@manifest-ui/tokens';