0.2.2 • Published 13 days ago

@channel.io/bezier-tokens v0.2.2

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
13 days ago

Bezier Tokens

Bezier Tokens is a design tokens library that implements Bezier design system.

Installation

npm i -D @channel.io/bezier-tokens

Usage

JavaScript

You can access and use values by token group.

import { tokens } from '@channel.io/bezier-tokens'

console.log(tokens.global.color['blue-300']) // "#..."
console.log(tokens.lightTheme.color['bg-black-dark']) // "#..."

CSS

Provide all design tokens as CSS variables. If you want to apply dark theme tokens, add the data-bezier-theme="dark" attribute to the parent element. The default is light theme tokens, which can also be applied by adding the data-bezier-theme="light" attribute to the parent element.

import '@channel.io/bezier-tokens/css/styles.css'

div {
  background: var(--bg-black-dark);
}

Contributing

See contribution guide.

Maintainers

This package is mainly contributed by Channel Corp. Although feel free to contribution, or raise concerns!

0.2.2

13 days ago

0.2.1

28 days ago

0.2.0

1 month ago

0.1.0

1 month ago

0.1.0-alpha.5

3 months ago

0.1.0-alpha.4

4 months ago

0.1.0-alpha.3

5 months ago

0.1.0-alpha.2

5 months ago

0.1.0-alpha.1

6 months ago

0.1.0-alpha.0

6 months ago