@enveritas/design-tokens

0.3.2 • Public • Published

Enveritas Design Tokens

This repository contains the design tokens of the Enveritas Design System (eds).
The design tokens are prepared to synchronize with the Figma Token Studio plugin via Github. The tokens are converted into distribution formats with style-dictionary.

General Structure

There are four main folders relevant to this repository:

  • src/scripts
    Contains the style-dictionary instructions for building the corresponding style dictionaries.
  • build
    Contains the style dictionary figma.json that is synchronized with the Figma Token Studio plugin. The initial set of tokens was computed based on a set of base tokens which can be found in the initial commit.
  • dist
    Contains the style dictionaries for further distribution and consumption of other modules.

Scripts

There are three different scripts for creating the style dictionaries:

  • src/scripts/dist.js
    This script prepares the tokens from build/figma.json into the defined distribution style dictionaries. These dictionaries are written into the folder dist.

Workflow

The file build/figma.json should be synchronized on the figma branch with the Figma Token Studio Plugin. Updates from Figma can be pushed through Figma in a pull request. After merging to the main branch, the distribution sets can be generated with the dist.js script.

Dependencies (0)

    Dev Dependencies (8)

    Package Sidebar

    Install

    npm i @enveritas/design-tokens

    Weekly Downloads

    67

    Version

    0.3.2

    License

    none

    Unpacked Size

    331 kB

    Total Files

    7

    Last publish

    Collaborators

    • stefan-enveritas
    • jeffpotter
    • jacob-enveritas
    • fdnklg