Repository navigation
feat(design): add the design tokens and their build - #4811
Merged
Merged
Conversation
This was referenced Nov 11, 2026
Owner
Author
|
Measurements for this pull request (devcontainer, 2026-11-11):
Tool age and license checks:
The CI time of the job "Design Tokens" follows in a later comment, when the run leaves the queue. |
dan-petty
marked this pull request as ready for review
November 11, 2026 21:49
dan-petty
enabled auto-merge (squash)
November 11, 2026 21:49
dan-petty
force-pushed
the
feat/4738-design-tokens
branch
from
November 11, 2026 22:02
4c3d897 to
046c481
Compare
Contributor
|
Pull request #4811 has merge conflicts with |
Add the design tokens in the W3C DTCG format 2025.10 (design/tokens/), four Style Dictionary 5.7.1 configs with warnings set to "error" (design/sd/), `make design-tokens`, and the committed outputs for the docs site and the package `devops_cli.design`. The CI job "Design Tokens" builds the tokens when a path of its filter changes, fails when a committed output is not the build, and runs tests/design. The tests check the name parity of the themes, 74 contrast rules, the categorical gates under simulated color vision deficiency, the ramps, the breakpoint literals and the dash patterns. The devcontainer image installs the Style Dictionary lock, and Renovate updates it 14 days after a release. The ast-grep rule css-color-literal rejects a color literal in the hand-written CSS of the package. docs/DESIGN.md is the spec, and ADR 0024 records the base and the pipeline. No consumer changes.
The scope of the pull request title needs a label in .github/labels.yml and a place in the scope list of the title check.
CONTRIBUTING.md, Dependency Versions, sets no minimum release age (owner, 2026-11-11). Pin Style Dictionary 5.8.0 and coloraide 8.14.1, and remove the minimum release age from the Renovate rule of the Style Dictionary lock. The build gives the same bytes.
dan-petty
force-pushed
the
feat/4738-design-tokens
branch
from
November 12, 2026 00:23
d69459b to
4e7474f
Compare
Owner
Author
|
CI time of the job "Design Tokens" (job limit 5 minutes):
Changes after the first comment:
|
2 tasks done
dan-petty
pushed a commit
that referenced
this pull request
Nov 12, 2026
🤖 I have created a release *beep* *boop* --- ## [0.115.0](v0.114.1...v0.115.0) (2026-11-12) ### Features * **design:** add the design tokens and their build ([#4811](#4811)) ([db4b19a](db4b19a)) * **roadmap:** find symbol definitions with tree-sitter ([#4820](#4820)) ([3b3fddc](3b3fddc)) ### Bug Fixes * **ai:** the gateway group that answered decides the local label ([#4907](#4907)) ([0da637f](0da637f)) * **ci:** replay a changed gate check in fail-to-pass ([#4898](#4898)) ([59bfc57](59bfc57)) * **config:** read each config file as YAML 1.2 ([#4858](#4858)) ([c3130a3](c3130a3)) * **roadmap:** loosen the caps that turn a stage refusal into a loss ([#4869](#4869)) ([4492fc3](4492fc3)) * **roadmap:** refine reads a dependency named by title ([#4877](#4877)) ([2829f9c](2829f9c)) * **roadmap:** refine sends a judge refusal to an agent round ([#4874](#4874)) ([e4fc6a9](e4fc6a9)) * **tests:** refuse test writes under the real home ([#4857](#4857)) ([0f6ac1b](0f6ac1b)) * **tests:** the plain-Python helper test keeps PYTHONPATH ([#4914](#4914)) ([99c109d](99c109d)) ### Performance Improvements * **ci:** direct pytest runs wait for a gate slot ([#4901](#4901)) ([e80db62](e80db62)) * **roadmap:** status lane reads the snapshot, skips idle stops ([#4887](#4887)) ([f285cf8](f285cf8)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: dan-petty-release[bot] <346998822+dan-petty-release[bot]@users.noreply.github.com>
dan-petty
added a commit
that referenced
this pull request
Nov 12, 2026
The review of #4811 found two gaps in the design token checks. - The step "Run the Design Tests" had a limit of 2 minutes, but one test had a bound of 600 s. This broke "Nested Time Limits" in ARCHITECTURE.md: a hung test stopped the step with no pytest-timeout diagnostic. The step now gives `--timeout 60`, and the contract test asserts a test bound shorter than the step. - Each DTCG source color holds its value in `components` and in `hex`. Style Dictionary reads only `components`, so a change to `hex` alone passed every check. A new design test compares the `hex` of each of the 66 source colors with its `components` (coloraide). `docs/DESIGN.md` tells a person to keep the two equal. The sources keep `hex` because people read it. Closes #4906 Change: `openspec/changes/archive/2026-11-12-4906-check-the-design-test-bound-and/`
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds one source of design values and its build. Before, each artifact set its colors, fonts and sizes by hand, and no check measured contrast or colorblind safety.
Three W3C DTCG 2025.10 token files in
design/tokens/are the source. Style Dictionary 5.7.1 builds them with built-in formats and warnings as errors (make design-tokens) into committed CSS for the docs site and CSS and JSON fordevops_cli.design. The CI job "Design Tokens" fails when an output is not the build, and runstests/design: name parity, 74 contrast rules, colorblind gates, ramps, breakpoints, dash patterns. Renovate updates the lock. An ast-grep rule rejects color literals in package CSS.docs/DESIGN.mdis the spec; ADR 0024 records the base and pipeline. No consumer changes: the other items of #4735 apply the tokens.Closes #4738
Change:
openspec/changes/archive/2026-11-11-4738-add-the-design-tokens-and-their/