@devoinc/genesys-tokens
TypeScript icon, indicating that this package has built-in type declarations

6.5.0 • Public • Published

Genesys tokens

Tokens' definition and generation tools.

This project provides the tools to generate Devo's brand design tokens and its customizations. It includes the agnostic source for the generation of the tokens, as described in Genesys Design System. It uses style-dictionary under the hood. The generated tokens are W3CDTCG-compliant©™. See W3C Design Tokens Format Module for more information.

Tokens generation tools

Generator

Given an input schema, we can generate the corresponding tokens. Tokens are generated in the following formats: css, figma tokens plugin, js, json and scss. An extra html format provides an interactive visualization of the output.

import { generate, Scheme } from '@devoinc/genesys-tokens';

generate({
  source: './schemes/light',
  scheme: Scheme.light,
  menuScheme: Scheme.light,
  output: `dist/light/`,
});

Validator

Once a set of tokens has been generated, the output can be validated using:

validate(pathToFolder);

Typescript

The type definitions for the brands generated using @devoinc/genesys-tokens are available in @devoinc/genesys-tokens-types.

Readme

Keywords

Package Sidebar

Install

npm i @devoinc/genesys-tokens

Weekly Downloads

57

Version

6.5.0

License

MIT

Unpacked Size

919 kB

Total Files

357

Last publish

Collaborators

  • devo_ci