@enveritas/design-tokens
v0.3.4
Published
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](http
Downloads
670
Keywords
Readme
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/scriptsContains the style-dictionary instructions for building the corresponding style dictionaries.buildContains the style dictionaryfigma.jsonthat 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.distContains 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.jsThis script prepares the tokens frombuild/figma.jsoninto the defined distribution style dictionaries. These dictionaries are written into the folderdist.
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.
Releasing
Release should be done by creating a release based on the main branch. Before making a release you should:
Create a pull request from
pre-releasetomainthat- Updates the CHANGELOG.md file and moves
Unreleasedchanges to the version you are planning to release - Updates the
versionin thepackage.jsonfile
- Updates the CHANGELOG.md file and moves
Merge the pull from
pre-releasetomainCreate a release in Github based on the HEAD of the
mainbranch. Creating a release in Github will trigger the action to deploy the new package version to NPMJS.
