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.
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 dictionaryfigma.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.
There are three different scripts for creating the style dictionaries:
-
src/scripts/dist.js
This script prepares the tokens frombuild/figma.json
into the defined distribution style dictionaries. These dictionaries are written into the folderdist
.
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.