Skip to content

Commit 39d326a

Browse files
authored
docs: resolve dangling ADR-0010 references (#5281)
1 parent 5ec0e1a commit 39d326a

2 files changed

Lines changed: 6 additions & 4 deletions

File tree

.github/workflows/tokens_studio_release.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,8 @@ jobs:
9191
# src/tokens/css/semantic/*.css in place, so that selector change
9292
# is expected in this PR's diff), then concatenate the generated
9393
# CSS into one committed bundle (the bundler itself adds no
94-
# behaviour, deliberately not minified — ADR-0010). Importable on
94+
# behaviour, deliberately not minified — ADR-0010, proposed in
95+
# #5199, acceptance tracked in #5202). Importable on
9596
# the beta line as @equinor/eds-tokens/next/css/variables.css via
9697
# the ./next/css/* wildcard publish_tokens.yaml already injects.
9798
- name: Widen semantic scope and bundle CSS into variables.css
@@ -107,7 +108,7 @@ jobs:
107108
# "Added" in the changelog, which is what a token update is.
108109
commit-message: 'feat: update tokens from Tokens Studio release'
109110
title: 'feat: update tokens from Tokens Studio release'
110-
body: 'Automated pull of the token state after a Tokens Studio release: raw token sets via `studio tokens pull` (sources in `packages/eds-tokens/.studio.json`), generated CSS (EDS-CSS export) into `packages/eds-tokens/src/tokens/css/`, DTCG (EDS-DTCG export) into `src/tokens/dtcg/`, TypeScript modules generated from the two into `src/tokens/ts/`, and the bundled `src/tokens/css/variables.css` (concatenation of the CSS export, per ADR-0010). The `semantic/*.css` files are widened to `:root, [data-color-scheme]` by `scripts/widen-semantic-scope.mjs` before bundling (#5226) — that selector diff against the raw export is expected.'
111+
body: 'Automated pull of the token state after a Tokens Studio release: raw token sets via `studio tokens pull` (sources in `packages/eds-tokens/.studio.json`), generated CSS (EDS-CSS export) into `packages/eds-tokens/src/tokens/css/`, DTCG (EDS-DTCG export) into `src/tokens/dtcg/`, TypeScript modules generated from the two into `src/tokens/ts/`, and the bundled `src/tokens/css/variables.css` (concatenation of the CSS export, per ADR-0010 — proposed in #5199). The `semantic/*.css` files are widened to `:root, [data-color-scheme]` by `scripts/widen-semantic-scope.mjs` before bundling (#5226) — that selector diff against the raw export is expected.'
111112
branch: tokens-studio-release
112113
# This workflow runs unattended (release-triggered) and the PR it
113114
# creates gets no CI runs, so a failed pull must not be silent

packages/eds-tokens/scripts/generate-css-bundle.mjs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@
22
* Bundle the Tokens Studio CSS export into one committed file.
33
*
44
* Concatenates every generated CSS file under `src/tokens/css/` into
5-
* `src/tokens/css/variables.css` (ADR-0010). The bundle adds no
6-
* behaviour on top of the generated files — every mode file is
5+
* `src/tokens/css/variables.css` (ADR-0010, proposed in #5199). The
6+
* bundle adds no behaviour on top of the generated files — every mode
7+
* file is
78
* `:root`- or attribute-scoped, and `var()` references are late-bound.
89
* Files are concatenated in sorted path order to keep the committed
910
* artifact deterministic.

0 commit comments

Comments
 (0)