Skip to content

Tokens is available to use in developing custom components and UI that is also used in `@kda/design-system`. It contains variables in CSS and JS variables that can be imported into any type of project.

License

Notifications You must be signed in to change notification settings

shenzhongkang/kda-tokens

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

@kda/tokens

Tokens for KDA Design System.

yarn generate will generate three types style file, tokens.css, tokens.less, tokens.scss.

Usage

  1. CSS-In-JS
import tokens from '@kda/tokens';

<div style={{ color: tokens.color }}>Content</div>;
  1. Vanilla CSS
@import url('@idocs/tokens/tokens.css');

.container {
  color: var(--color);
}
  1. Less Precessor
@import '@kda/tokens/tokens.less';

.container {
  color: @color;
}
  1. Scss Precessor
@import '@kda/tokens/tokens.scss';

.container {
  color: $color;
}

About

Tokens is available to use in developing custom components and UI that is also used in `@kda/design-system`. It contains variables in CSS and JS variables that can be imported into any type of project.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published