+3. **Steps:** `studio tokens pull` (raw token sets → `src/tokens/<alias>/`), `studio exports run` for the two saved configurations — `EDS-CSS` (css) and `EDS-DTCG` (dtcg), referenced by ID — into `src/tokens/css/` and `src/tokens/dtcg/`, then `pnpm run generate:ts-tokens` which combines DTCG structure with evaluated CSS values into TS modules in `src/tokens/ts/` (see the script header in `packages/eds-tokens/scripts/generate-ts-tokens.mjs` for the mechanics, including CSS Color 4 gamut mapping), and finally `pnpm run generate:css-bundle`, which widens the semantic layer to `:root, [data-color-scheme]` (`scripts/widen-semantic-scope.mjs`, #5226) and concatenates the CSS export into a single committed bundle at `src/tokens/css/variables.css` (plain concatenation, deliberately not minified).
0 commit comments