test-gy-design-tokens

1.0.6 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i test-gy-design-tokens

Weekly Downloads

0

Version

1.0.6

License

MIT

Unpacked Size

6.07 MB

Total Files

136

Last publish

Collaborators

  • jgonz613