1.0.6 • Published 2 years ago

test-gy-design-tokens v1.0.6

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Design Tokens

Tokens are a collection of JSON files that organize a brand's styles into a semantic hierarchy and enable generating multiple types of assets. Assets derived from these tokens can then be published as an npm package for others to use.

Installation

NPM

All brands are contained in a single package. See the Github Package Registry requirements for installing a package into your project.

npm install @publicissapient/design-tokens-starter

Use one of the following path structures for importing files:

@publicissapient/design-tokens-starter/<brand>/<file>
@publicissapient/design-tokens-starter/<brand>/<theme>/<file>

Usage

Each brand will contain the same files. Directory/file naming conventions use kebab-case.

  • variables.css: CSS variables.
  • variables.js: JavaScript variables.
  • custom-media.css:Custom media query variables
  • font-face.css: @font-face rules.
  • utilities.css: A tiny set of utility classes based on the available tokens

Development

Development within this codebase requires experience with the following tools:

For more info read the docs on adding new tokens and the development/release process.

Credits

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago