Repository navigation
Description
Problem or Motivation
No file holds the design values of the project. Each artifact sets its colors, fonts and sizes by hand. The inventory of main at 818ac6f (2026-11-11) found 8 "success" greens, 4 font stacks, 4 severity maps and 34 hex values in the docs site CSS. No check measures contrast or colorblind safety. The other children of the design spec tracker #4735 need one source of values to read.
Proposed Solution & Architectural Design
- Add three token files in the W3C Design Tokens (DTCG) format 2025.10, with
$schemahttps://www.designtokens.org/schemas/2025.10/format.json:design/tokens/base.tokens.json(50 tokens),light.tokens.json(38) anddark.tokens.json(38). No file refers to another file. Each color token holds its contrast rules in$extensions.devops-cli.contrast. The comment Token source files holds the three files, and the comment Spec text holds the text ofdocs/DESIGN.md. - Build with Style Dictionary 5.7.1 or a newer release that passes the build and the tests (version rule below). Add four JSON configs:
design/sd/base.json,light.json,dark.jsonanddark-explicit.json. Each config setslog.warningsto"error",transformGroup"css"(the"web"group writes0.5remas0.5pxinjson/flat), and the built-in formatscss/variables(withoutputReferences: true) andjson/flat. Selectors::root(base and light);@media (prefers-color-scheme: dark)with:root:not([data-theme="light"])(dark);:root[data-theme="dark"](dark-explicit). Use no custom transform and no custom format. - Lock the tool in
src/devops_cli/tools_lock/style-dictionary/(package.jsonandpackage-lock.json, style-dictionary only), as OpenSpec does. Install it withnpm ci --ignore-scriptsin the npm-tools stage of.devcontainer/Dockerfileand in CI withactions/setup-nodeand the Node version of.node-version. Turn on Renovate npm updates for this lock only (owner decision 9 of feat(design): track the project design spec #4735). make design-tokensruns the four builds. Commit the outputs and never edit them by hand:docs/assets/css/tokens-{base,light,dark,dark-explicit}.css(Jekyll cannot run the build), andsrc/devops_cli/design/css/tokens-*.csswithsrc/devops_cli/design/tokens-{base,light,dark}.jsonas package data. The start page item (feat(k8s): deploy Homepage as the cluster start page #4598) adds a fifth file entry with the selectorhtml.darkfork8s/startpage/.- Add
src/devops_cli/design/__init__.py:tokens(mode)reads the package data throughimportlib.resources; the module also holds the three series dash arrays (solid,6 3,8 3 2 3) and the reference dash2 2. - Add the CI job "Design Tokens" to
.github/workflows/ci.ymlwith a path filter:design/**,src/devops_cli/tools_lock/style-dictionary/**,src/devops_cli/design/**,docs/assets/css/**,k8s/startpage/**,k8s/monitoring/dashboards/**and.github/labels.yml. Steps: setup-node,npm ci --ignore-scripts,make design-tokens,git diff --exit-codeon every generated path,uv run pytest tests/design. Each step timeout is shorter than the job timeout. - Add
tests/designwith coloraide 8.13.1 as a dev dependency. The tests check that:- the light and dark files hold the same token names, in the source and in the build;
- every
$extensionscontrast rule passes in both themes, and each rule markedgrafanaalso passes on#ffffff,#f4f5f5,#181b1fand#111217; - the categorical colors pass the gates: CIEDE2000 12 or more for each pair under normal vision and simulated protan, deutan and tritan vision (Machado 2009); OKLab distance 15 or more (normal) and 8 or more (colorblind); 15 or more from each Google logo color; 15 or more from each status color; 10 or more from "Other";
- the cividis ramp has a monotonic L*, and diverging step 1 is red and step 9 is blue in both themes;
- the
@medialiterals40remand75remequalbreakpoint.mdandbreakpoint.lg; - the dash arrays of the design module equal
docs/DESIGN.md.
- Add
docs/DESIGN.md, the spec: palette, type, layout, chart rules C1 to C14, table rules T1 to T10 and the rules for each target. The comment Spec text holds the text. - Add an ADR (next free number) for the base and the pipeline, and a row in the "Where to look" table of
AGENTS.md: "style an artifact" goes todocs/DESIGN.md. - This item changes no consumer. The other children of feat(design): track the project design spec #4735 apply the tokens.
Summary of the color tokens (the WCAG 2.x ratios on bg and on surface are in the Spec text):
| Token | Light | Dark |
|---|---|---|
color.bg |
#ffffff |
#151514 |
color.surface |
#f6f6f3 |
#1f1f1d |
color.fg |
#1c1c1a |
#e8e8e3 |
color.fg-muted (also status.info, data.neutral) |
#5f5f59 |
#a9a9a1 |
color.border |
#dcdcd6 |
#3b3b37 |
color.border-strong |
#86867f |
#7a7a73 |
color.accent |
#0b6e8a |
#78c5da |
color.status.ok |
#007a5e |
#3dc9a0 |
color.status.warn |
#946200 |
#f0c04e |
color.status.error |
#b3261e |
#ff7a66 |
color.data.cat.1 |
#a463f2 |
#a463f2 |
color.data.cat.2 |
#e7298a |
#e7298a |
color.data.cat.3 |
#002d9c |
#82cfff |
Type: Source Serif 4 (reading text), Source Sans 3 (interface, tables, chart text) and Source Code Pro (code), all OFL-1.1, through the Google Fonts css2 API. Sizes 12, 14, 16, 18, 22, 28 and 36 px. Spacing on a 4 px base. Breakpoints 40rem and 75rem.
Target Subsystem
A new design/ source folder, the src/devops_cli/design/ package and CI.
Existing Tool Considered
The W3C DTCG format 2025.10 and Style Dictionary 5.7.1 (Apache-2.0, released 2026-10-24) build every format with built-in formats only. Version rule (owner, 2026-11-11): no minimum release age. Pin the newest Style Dictionary release that passes the build and the tests. On 2026-11-11 that is 5.8.0 (2026-11-03) if the build passes with it. coloraide 8.13.1 (MIT) computes WCAG contrast, colorblind simulation and CIEDE2000.
Rejected: IBM Carbon tokens (its DTCG export uses JSON Pointer values that Style Dictionary 5.7.1 cannot resolve; 24 and 29 tokens drop out, and the build fails with warnings set to "error"); GitHub Primer primitives (the artifacts look like GitHub pages, and a seed copy needs 98 hand edits for each upgrade); a DTCG resolver file (Style Dictionary 5.7.1 does not read resolvers, so the file could drift from the configs).
Trial of this build: npm ci 15 s; build 6.0 s; 0 warnings with warnings set to "error"; the output was the same byte for byte over two builds; 88 CSS variables in 4 files (9,336 bytes, 3,849 bytes gzip). Custom code: the design module of about 50 lines. Cost: about 150,000 tokens and 1 day.
Acceptance Criteria
make design-tokensexits 0 with warnings set to "error" and writes 88 CSS variables (50 base, 38 for each theme).- A second build gives no
git diff. tests/designpasses with 74 contrast rules (37 for each theme). It fails when a test token drops under its declared minimum.- The "Design Tokens" job runs in less than 1 minute, and only on its path filter.
docs/DESIGN.md, the ADR and theAGENTS.mdrow exist.
Dependencies
None.
Source: #4735
Proposed design
Problem statement
The project has no file of design values. Each artifact sets its colors, fonts and sizes by hand: the inventory of main at 818ac6f found 8 success greens, 4 font stacks, 4 severity maps and 34 hex values in the docs site CSS. No check measures contrast or colorblind safety. This item adds three DTCG token files, their Style Dictionary build, the generated CSS and JSON, the contrast tests and the spec. The other children of #4735 read one source of values.
Acceptance criteria
Requirement: Token source files
The change SHALL add three DTCG 2025.10 token files that hold 50 base tokens and 38 tokens for each theme.
Scenario: Token counts and schema
- WHEN A test reads
design/tokens/base.tokens.json,light.tokens.jsonanddark.tokens.json. - THEN Base holds 50 tokens, each theme holds 38, and each
$schemaishttps://www.designtokens.org/schemas/2025.10/format.json.
Requirement: No cross-file reference
Each token source file MUST hold the value of every token that it refers to.
Scenario: Reference inside one file
- WHEN A test collects each alias of the
$valueof a source file and looks the name up in the same file. - THEN Every alias resolves inside its own file, and no file names a token of another file.
Requirement: Theme name parity
The light and dark files SHALL hold the same token names.
Scenario: Name sets of the two themes
- WHEN A test flattens the token names of
light.tokens.jsonanddark.tokens.json. - THEN The two name sets are equal.
Requirement: Token build
make design-tokens MUST exit 0 with log.warnings set to "error" and write 50 base and 38 theme custom properties with the built-in css/variables and json/flat formats only.
Scenario: Run the build
- WHEN A test runs
make design-tokensand counts the custom properties of each generated CSS file. - THEN The command exits 0 and the four files hold 50, 38, 38 and 38 custom properties.
Requirement: Reproducible output
A second build MUST write the same bytes as the first build.
Scenario: Two builds
- WHEN A test builds the tokens twice and compares the output of every generated path.
- THEN No byte differs between the two builds.
Requirement: Contrast rules
Every token with a devops-cli.contrast extension MUST meet its declared minimum on each background that it names.
Scenario: Contrast of each rule
- WHEN A test computes the 74 contrast rules of the two themes with coloraide.
- THEN Every rule meets its
minvalue on each named background.
Requirement: Grafana backgrounds
Each contrast rule marked grafana MUST also pass on #ffffff, #f4f5f5, #181b1f and #111217.
Scenario: Rule on the Grafana backgrounds
- WHEN A test computes a rule with
grafanaset to true on the four Grafana backgrounds. - THEN Each ratio is at least the
minvalue of the rule.
Requirement: Categorical color gates
The categorical colors MUST pass the CIEDE2000, OKLab, Google logo, status and Other gates under normal, protan, deutan and tritan vision.
Scenario: Pair distance under simulated vision
- WHEN A test simulates protan, deutan and tritan vision with Machado 2009 and measures every pair.
- THEN Each pair is at least 12 CIEDE2000 apart under each vision, at least 15 OKLab apart under normal vision and at least 8 under each simulated vision; each color is at least 15 from each Google logo color and each status color, and at least 10 from Other.
Requirement: Ramp shape
The cividis ramp MUST have a monotonic L* and the diverging ramp MUST start red at step 1 and end blue at step 9.
Scenario: Ramp endpoints and lightness
- WHEN A test reads the two ramps of both themes.
- THEN The L* of cividis never turns, and step 1 is red and step 9 is blue in both themes.
Requirement: Breakpoint literals
The @media literals 40rem and 75rem MUST equal breakpoint.md and breakpoint.lg.
Scenario: Literal against the token
- WHEN A test reads the
@mediaexamples ofdocs/DESIGN.mdand the two breakpoint tokens. - THEN The two literals equal the two token values.
Requirement: Dash arrays
The dash arrays of the design module MUST equal the dash arrays of docs/DESIGN.md.
Scenario: Dash array of each series
- WHEN A test compares the three series dash arrays and the reference dash array with the values in
docs/DESIGN.md. - THEN Each array in the module equals its value in the spec.
Requirement: Token read
design.tokens(mode) SHALL return the token mapping of the built JSON of that mode.
Scenario: Read the dark tokens
- WHEN A test calls
devops_cli.design.tokens("dark"). - THEN It returns the mapping of
design/tokens-dark.jsonfrom the package data.
Requirement: Design Tokens job
The Design Tokens job MUST run on its path filter only, rebuild the tokens and fail when a generated file changes.
Scenario: Changed generated file
- WHEN A pull request changes a token source and not the generated CSS.
- THEN The job fails at the
git diff --exit-codestep.
Requirement: Tool lock install
The lock at src/devops_cli/tools_lock/style-dictionary/ MUST hold style-dictionary only, and the npm-tools stage of .devcontainer/Dockerfile and the Design Tokens job MUST install it with npm ci --ignore-scripts on the Node version of .node-version.
Scenario: Node version of the build
- WHEN A test reads the lock, the npm-tools stage of the Dockerfile and the steps of the job.
- THEN The lock names style-dictionary only, the stage installs it on the version of
.node-version, and the job runsactions/setup-nodewithnode-version-file: .node-versionbefore the same install.
Requirement: Spec and records
The change SHALL add docs/DESIGN.md, ADR 0024 and a row of the AGENTS.md "Where to look" table.
Scenario: The three records
- WHEN A test reads the three files.
- THEN
docs/DESIGN.mdholds the spec,docs/adr/0024-*holds the base and the pipeline, and the table row sends "style an artifact" todocs/DESIGN.md.
Requirement: Test dependency
coloraide==8.13.1 SHALL be a member of [dependency-groups] dev in pyproject.toml and resolved in uv.lock.
Scenario: Dev dependency pin
- WHEN A test reads the
devgroup ofpyproject.tomland thecoloraideentry ofuv.lock. - THEN Both name the pin.
Requirement: Renovate npm updates
The Renovate configuration SHALL enable npm updates for src/devops_cli/tools_lock/style-dictionary/package.json only.
Scenario: Path-scoped npm rule
- WHEN A test loads the
packageRulesof.github/renovate.json. - THEN A rule matches the style-dictionary lock and sets
enabledto true, and the blanketnpmrule still disables every other npm lock.
Existing Tool Considered
No alternatives check has run on this item. Style Dictionary 5.7.1 (Apache-2.0) covers the build: it reads DTCG 2025.10 and writes CSS variables with the built-in css/variables and json/flat formats, and outputReferences: true keeps aliases. It lacks a reader for DTCG resolver files, so four configs hold the selector of each theme. coloraide 8.13.1 (MIT) covers the tests: WCAG 2.x contrast, Machado 2009 colorblind simulation and CIEDE2000. It lacks a gate report, so each test compares a value with its declared minimum. The project builds only the design module of about 50 lines, which reads the package data through importlib.resources and holds the dash arrays. Its cost, with the token files, tests and records of the item, is about 150,000 tokens and 1 day.
Key questions
- Which tool builds the DTCG token files into CSS variables?: Use Style Dictionary 5.7.1 with the
csstransform group and the built-incss/variablesandjson/flatformats only. Setlog.warningsto"error", setoutputReferences: trueoncss/variables, and add no custom transform and no custom format. Four configs hold the selector of each theme because the tool reads no DTCG resolver file. Style Dictionary's formats page (fetched 2026-11-11) documents thecsstransform group,css/variablesandoutputReferences; its design-tokens page states DTCG support. (best practice) [sources: https://styledictionary.com/reference/hooks/formats, https://styledictionary.com/info/tokens/, AGENTS.md:11]- Chosen: Style Dictionary 5.7.1. Apache-2.0 and maintained. It reads DTCG 2025.10 and writes CSS variables with built-in formats only. The trial build gave 0 warnings in 6.0 s.
- Rejected: IBM Carbon tokens. Its DTCG export uses JSON Pointer values that Style Dictionary 5.7.1 cannot resolve. 24 and 29 tokens drop out, and the build fails with warnings set to "error".
- Rejected: GitHub Primer primitives. The artifacts look like GitHub pages, and a seed copy needs 98 hand edits for each upgrade.
- Rejected: A DTCG resolver file. Style Dictionary 5.7.1 does not read resolvers, so the file could drift from the four configs.
- Rejected: A custom build script. It repeats a maintained tool. The cost is about 150,000 tokens and 1 day.
- Which library computes WCAG contrast, colorblind simulation and CIEDE2000 in the tests?: Use coloraide 8.13.1 as a dev dependency. It computes WCAG 2.x contrast, Machado 2009 colorblind simulation and CIEDE2000, and the tests read its output. Put the pin in
[dependency-groups] devofpyproject.toml, as the other test tools do. The issue's trial used this pin; the tools of this run returned no separate page that names the library. (proposed)- Chosen: coloraide 8.13.1. MIT and maintained. One library gives contrast, CVD simulation and CIEDE2000 to the Python tests, with no second runtime.
- Rejected: Hand-written color formulas. A wrong matrix or ratio hides a failing token. The cost is more than the 150,000 tokens of the item.
- Rejected: culori in JavaScript. It puts a second runtime in the test job and reads the tokens through another process.
- How do the three theme files select the active theme in CSS?: Emit
:rootfor base and light. Emit@media (prefers-color-scheme: dark)with:root:not([data-theme="light"])for dark. Emit:root[data-theme="dark"]for dark-explicit. Setcolor-schemeto match each theme. MDN (fetched 2026-11-11) documents the media feature andcolor-scheme. The docs site already setsdata-themeon<html>(docs/_layouts/default.html:2) and styles[data-theme="light"](docs/assets/css/style.css:30), so the explicit selectors keep its toggle working. (best practice) [sources: https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/At-rules/@media/prefers-color-scheme, docs/_layouts/default.html:2, docs/assets/css/style.css:30]- Chosen: Media query with an explicit override. A page follows the system theme by default, and a page can still force one theme. The docs site's existing
data-themetoggle keeps working. - Rejected: Data attribute only. A reader with no attribute gets the light theme on a dark system.
- Rejected: Media query only. A page cannot show the dark theme on a light system.
- Chosen: Media query with an explicit override. A page follows the system theme by default, and a page can still force one theme. The docs site's existing
- Why does the item commit the generated CSS and JSON files?: Commit every generated CSS and JSON file. Jekyll builds
docs/in a container with no network and no Node (docs/SDLC.md:234,.github/workflows/ci.yml:973-975). The Python package ships the token JSON as package data. (best practice) [sources: .github/workflows/ci.yml:973-975, docs/SDLC.md:234]- Chosen: Commit the built files. The docs site and the package read the files with no Node at build time or at install time.
- Rejected: Build in the Docs Site job. The Jekyll container runs with
--network noneand holds no Node. - Rejected: Build at install time. Every host that installs the package would need Node and the lock.
- How do the
@mediarules get the breakpoint values when they cannot read a custom property?: Write the literals40remand75remin the@mediarules. Add a test that compares the literals indocs/DESIGN.mdwithbreakpoint.mdandbreakpoint.lg. MDN (fetched 2026-11-11) states that variables do not work inside media queries. (best practice) [sources: https://developer.mozilla.org/en-US/docs/Web/CSS/Guides/Cascading_variables/Using_custom_properties]- Chosen: Literals with a test. A media feature cannot read a custom property, so a literal is the only form that works. The test keeps the literal equal to the token.
- Rejected: Custom properties in the media query. The browser ignores a custom property in a media feature, so the rule never applies.
- Rejected: A CSS preprocessor. It adds a build step and a dependency for two values.
- Which ADR number does the new ADR take?: The new ADR takes the number 0024, because
docs/adr/0023-the-project-brain-is-a-derived-index-in-two-cache-tiers-and-two-scheduled-runs-keep-it.mdis the highest number that the repository records. [sources: docs/adr/0023-the-project-brain-is-a-derived-index-in-two-cache-tiers-and-two-scheduled-runs-keep-it.md] - How do the three font faces reach every web target?: Load the faces from the Google Fonts css2 API with
display=swap. Give every stack the system fallbacks thatbase.tokens.jsonholds. The docs site already loads Google Fonts through this API (docs/_layouts/default.html:12). (best practice) [sources: docs/_layouts/default.html:12]- Chosen: Google Fonts css2 API. The docs site already loads Google Fonts, the artifact CSP allows fonts.googleapis.com, and the change adds no npm dependency.
- Rejected: Self-hosted font files. It adds binary files and a licence notice to the repository.
- Rejected: npm font packages. It adds a dependency and a copy step to the build.
- Which Node version runs the token build in CI and in the devcontainer?: Both run the version that
.node-versionnames, which is 24. The CI job setsnode-version-file: .node-versioninactions/setup-node. Both install the lock withnpm ci --ignore-scripts. The npm-tools stage of the Dockerfile usesnode:24-trixie-slim. [sources: .github/workflows/ci.yml:58-60] - How does the Python package read the built tokens?: Add
src/devops_cli/design/__init__.pywithtokens(mode). It readsdesign/tokens-<mode>.jsonthroughimportlib.resources.files, assrc/devops_cli/roadmap/duplicate_eval.py:20does. The same module holds the three series dash arrays and the reference dash array. (best practice) [sources: src/devops_cli/roadmap/duplicate_eval.py:20, src/devops_cli/roadmap/jev_eval.py:22]- Chosen:
importlib.resourcesover package data. It reads the file inside a wheel, with no path that assumes a checkout. The project already usesimportlib.resources.filesinsrc/devops_cli/roadmap/duplicate_eval.py. - Rejected: A path under the source tree. It breaks when a host installs the package from a wheel.
- Chosen:
- How do npm updates of the style-dictionary lock reach Renovate without enabling every npm lock?: Add a
packageRulesentry after the blanket npm disable that matchessrc/devops_cli/tools_lock/style-dictionary/package.jsonand setsenabled: true. Every other npm lock stays off, so the OpenSpec and Dev Containers CLI locks remain deliberate bumps (ADR 0010). (best practice) [sources: .github/renovate.json:39-42, docs/adr/0010-openspec-is-the-spec-and-change-proposal-layer.md:18]- Chosen: Path-scoped npm rule. It enables updates for the new lock and keeps the blanket disable for the OpenSpec and Dev Containers CLI locks, which the project bumps deliberately (ADR 0010).
- Rejected: Enable the npm manager globally. It would update the OpenSpec and Dev Containers CLI locks, which the project bumps deliberately (ADR 0010).
- Rejected: Keep npm off. The owner decision 9 of feat(design): track the project design spec #4735 requires updates for this lock.
- Where does the coloraide pin go?:
pyproject.toml,[dependency-groups] dev, beside pytest, ruff and the other test tools;uv.lockrecords the resolution. [sources: pyproject.toml:90-120, uv.lock]
Fit
Fits in one pull request.
Suspected block
None.
Dependencies
None.
Activity
dan-petty commentedon Nov 11, 2026
Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones.
featprefix of the title gives the type.design, and .github/labels.yml declares no scope/design label. Add the label to the file to give the scope to this item.Multiple open items depend on this single source of design values, so it blocks their delivery.It removes 34 duplicated hex values and 4 font stacks and gives every artifact one verified source.It spans token files, four build configs, a CI job, a Python module, a test suite, and a spec document.Both concern the project design system, but #4720 consumes the tokens to render a review page while this item creates the tokens and their build.dan-petty commentedon Nov 11, 2026
Token source files (DTCG 2025.10)
The three source files of
design/tokens/for this item. The trial build of these files gave 0 warnings and passed 74 contrast rules with 0 failures. Copy each file as it is; the values come from the sources named in each$description.design/tokens/base.tokens.json{ "$schema": "https://www.designtokens.org/schemas/2025.10/format.json", "$description": "devops-cli design tokens: values that do not change with the theme. DTCG Format 2025.10. Built by Style Dictionary 5.7.1.", "font": { "family": { "$type": "fontFamily", "serif": { "$value": [ "Source Serif 4", "Source Serif Pro", "Iowan Old Style", "Charter", "Georgia", "serif" ], "$description": "Reading text of reports and docs pages. Adobe, OFL-1.1." }, "sans": { "$value": [ "Source Sans 3", "Source Sans Pro", "system-ui", "-apple-system", "Segoe UI", "Helvetica Neue", "Arial", "sans-serif" ], "$description": "Interface text: headings, tables, captions, chart text. Adobe, OFL-1.1." }, "mono": { "$value": [ "Source Code Pro", "ui-monospace", "SFMono-Regular", "Menlo", "Consolas", "Liberation Mono", "monospace" ], "$description": "Code, identifiers, hashes. Adobe, OFL-1.1." } }, "weight": { "$type": "fontWeight", "regular": { "$value": 400 }, "semibold": { "$value": 600 } }, "size": { "$type": "dimension", "xs": { "$value": { "value": 0.75, "unit": "rem" } }, "sm": { "$value": { "value": 0.875, "unit": "rem" } }, "md": { "$value": { "value": 1, "unit": "rem" } }, "lg": { "$value": { "value": 1.125, "unit": "rem" } }, "xl": { "$value": { "value": 1.375, "unit": "rem" } }, "2xl": { "$value": { "value": 1.75, "unit": "rem" } }, "3xl": { "$value": { "value": 2.25, "unit": "rem" } } }, "line-height": { "$type": "number", "tight": { "$value": 1.2 }, "ui": { "$value": 1.4 }, "code": { "$value": 1.5 }, "reading": { "$value": 1.6 } } }, "space": { "$type": "dimension", "1": { "$value": { "value": 0.25, "unit": "rem" } }, "2": { "$value": { "value": 0.5, "unit": "rem" } }, "3": { "$value": { "value": 0.75, "unit": "rem" } }, "4": { "$value": { "value": 1, "unit": "rem" } }, "6": { "$value": { "value": 1.5, "unit": "rem" } }, "8": { "$value": { "value": 2, "unit": "rem" } }, "12": { "$value": { "value": 3, "unit": "rem" } }, "16": { "$value": { "value": 4, "unit": "rem" } } }, "size": { "$type": "dimension", "measure": { "$value": { "value": 40, "unit": "rem" }, "$description": "Reading column, about 70 characters." }, "wide": { "$value": { "value": 60, "unit": "rem" }, "$description": "Figures and tables." }, "full": { "$value": { "value": 72, "unit": "rem" }, "$description": "Page frame and dashboards." }, "margin": { "$value": { "value": 15, "unit": "rem" }, "$description": "Margin-note column at breakpoint.lg." }, "gutter": { "$value": { "value": 1, "unit": "rem" }, "$description": "Side gutter at every width." }, "target": { "$value": { "value": 1.5, "unit": "rem" }, "$description": "Smallest interactive target, 24 px (WCAG 2.2 SC 2.5.8)." }, "chart-min": { "$value": { "value": 40, "unit": "rem" }, "$description": "Design width of a static chart; under it the chart scrolls in its own box so text stays 12 px." } }, "breakpoint": { "$type": "dimension", "md": { "$value": { "value": 40, "unit": "rem" } }, "lg": { "$value": { "value": 75, "unit": "rem" } } }, "radius": { "$type": "dimension", "none": { "$value": { "value": 0, "unit": "px" } }, "sm": { "$value": { "value": 2, "unit": "px" } } }, "border": { "width": { "$type": "dimension", "hairline": { "$value": { "value": 1, "unit": "px" } }, "focus": { "$value": { "value": 2, "unit": "px" } } } }, "motion": { "duration": { "$type": "duration", "fast": { "$value": { "value": 120, "unit": "ms" } } }, "easing": { "$type": "cubicBezier", "standard": { "$value": [ 0.2, 0, 0, 1 ] } } }, "chart": { "stroke": { "$type": "dimension", "data": { "$value": { "value": 1.5, "unit": "px" } }, "highlight": { "$value": { "value": 2.5, "unit": "px" } }, "grid": { "$value": { "value": 1, "unit": "px" } }, "reference": { "$value": { "value": 1, "unit": "px" } } }, "band-opacity": { "$type": "number", "$value": 0.2, "$description": "Fill opacity of a measured interval band." }, "font-size": { "$type": "dimension", "tick": { "$value": "{font.size.xs}" }, "label": { "$value": "{font.size.sm}" }, "title": { "$value": "{font.size.md}" } }, "max-series": { "$type": "number", "$value": 3, "$description": "Most colored series in one chart; more go to Other, small multiples or a table." } }, "color": { "$type": "color", "data": { "cat": { "1": { "$value": { "colorSpace": "srgb", "components": [ 0.6431, 0.3882, 0.949 ], "hex": "#a463f2" }, "$description": "Series 1, purple. Observable 10 slot 7 (d3-scale-chromatic schemeObservable10, ISC). Same in both themes and in Grafana.", "$extensions": { "devops-cli": { "contrast": { "min": 3.0, "on": [ "color.bg", "color.surface" ], "grafana": true } } } }, "2": { "$value": { "colorSpace": "srgb", "components": [ 0.9059, 0.1608, 0.5412 ], "hex": "#e7298a" }, "$description": "Series 2, pink. ColorBrewer Dark2 slot 4 (Apache-2.0). Same in both themes and in Grafana.", "$extensions": { "devops-cli": { "contrast": { "min": 3.0, "on": [ "color.bg", "color.surface" ], "grafana": true } } } } } } } }design/tokens/light.tokens.json{ "$schema": "https://www.designtokens.org/schemas/2025.10/format.json", "$description": "devops-cli design tokens, light theme. Same names as the other theme (CI checks it).", "color": { "$type": "color", "bg": { "$value": { "colorSpace": "srgb", "components": [ 1.0, 1.0, 1.0 ], "hex": "#ffffff" }, "$description": "Page and chart background." }, "surface": { "$value": { "colorSpace": "srgb", "components": [ 0.9647, 0.9647, 0.9529 ], "hex": "#f6f6f3" }, "$description": "Code blocks, callouts, table header band." }, "border": { "$value": { "colorSpace": "srgb", "components": [ 0.8627, 0.8627, 0.8392 ], "hex": "#dcdcd6" }, "$description": "Decorative rules and gridlines only (no 3:1 need)." }, "border-strong": { "$value": { "colorSpace": "srgb", "components": [ 0.5255, 0.5255, 0.498 ], "hex": "#86867f" }, "$description": "Control borders and chart axes.", "$extensions": { "devops-cli": { "contrast": { "min": 3.0, "on": [ "color.bg", "color.surface" ] } } } }, "fg": { "$value": { "colorSpace": "srgb", "components": [ 0.1098, 0.1098, 0.102 ], "hex": "#1c1c1a" }, "$description": "Body text; a single chart series.", "$extensions": { "devops-cli": { "contrast": { "min": 4.5, "on": [ "color.bg", "color.surface" ] } } } }, "fg-muted": { "$value": { "colorSpace": "srgb", "components": [ 0.3725, 0.3725, 0.349 ], "hex": "#5f5f59" }, "$description": "Secondary text, captions, ticks.", "$extensions": { "devops-cli": { "contrast": { "min": 4.5, "on": [ "color.bg", "color.surface" ] } } } }, "accent": { "$value": { "colorSpace": "srgb", "components": [ 0.0431, 0.4314, 0.5412 ], "hex": "#0b6e8a" }, "$description": "Links, focus ring, the one highlighted series.", "$extensions": { "devops-cli": { "contrast": { "min": 4.5, "on": [ "color.bg", "color.surface" ] } } } }, "focus": { "$value": "{color.accent}", "$description": "Focus outline, 2 px.", "$extensions": { "devops-cli": { "contrast": { "min": 3.0, "on": [ "color.bg", "color.surface" ] } } } }, "status": { "ok": { "$value": { "colorSpace": "srgb", "components": [ 0.0, 0.4784, 0.3686 ], "hex": "#007a5e" }, "$description": "Status ok. Never a chart series.", "$extensions": { "devops-cli": { "contrast": { "min": 4.5, "on": [ "color.bg", "color.surface" ] } } } }, "warn": { "$value": { "colorSpace": "srgb", "components": [ 0.5804, 0.3843, 0.0 ], "hex": "#946200" }, "$description": "Status warn; warn threshold lines.", "$extensions": { "devops-cli": { "contrast": { "min": 4.5, "on": [ "color.bg", "color.surface" ] } } } }, "error": { "$value": { "colorSpace": "srgb", "components": [ 0.702, 0.149, 0.1176 ], "hex": "#b3261e" }, "$description": "Status error; page threshold lines.", "$extensions": { "devops-cli": { "contrast": { "min": 4.5, "on": [ "color.bg", "color.surface" ] } } } }, "info": { "$value": "{color.fg-muted}", "$description": "Status info: neutral, not blue.", "$extensions": { "devops-cli": { "contrast": { "min": 4.5, "on": [ "color.bg", "color.surface" ] } } } }, "ok-bg": { "$value": { "colorSpace": "srgb", "components": [ 0.8941, 0.949, 0.9255 ], "hex": "#e4f2ec" }, "$description": "Tint behind an ok callout." }, "warn-bg": { "$value": { "colorSpace": "srgb", "components": [ 0.9804, 0.9412, 0.8549 ], "hex": "#faf0da" }, "$description": "Tint behind a warn callout." }, "error-bg": { "$value": { "colorSpace": "srgb", "components": [ 0.9843, 0.9098, 0.902 ], "hex": "#fbe8e6" }, "$description": "Tint behind an error callout." } }, "syntax": { "comment": { "$value": "{color.fg-muted}", "$description": "Code comments (italic).", "$extensions": { "devops-cli": { "contrast": { "min": 4.5, "on": [ "color.surface" ] } } } }, "string": { "$value": "{color.accent}", "$description": "Strings and literals.", "$extensions": { "devops-cli": { "contrast": { "min": 4.5, "on": [ "color.surface" ] } } } }, "keyword": { "$value": "{color.fg}", "$description": "Keywords (semibold).", "$extensions": { "devops-cli": { "contrast": { "min": 4.5, "on": [ "color.surface" ] } } } } }, "data": { "cat": { "3": { "$value": { "colorSpace": "srgb", "components": [ 0.0, 0.1765, 0.6118 ], "hex": "#002d9c" }, "$description": "Series 3, blue. Carbon blue.80 (@carbon/colors 11.61.0, Apache-2.0). Theme-aware targets only.", "$extensions": { "devops-cli": { "contrast": { "min": 3.0, "on": [ "color.bg", "color.surface" ] } } } } }, "neutral": { "$value": "{color.fg-muted}", "$description": "Other, baseline, context series.", "$extensions": { "devops-cli": { "contrast": { "min": 3.0, "on": [ "color.bg", "color.surface" ] } } } }, "seq": { "1": { "$value": { "colorSpace": "srgb", "components": [ 0.9961, 0.9098, 0.2196 ], "hex": "#fee838" } }, "2": { "$value": { "colorSpace": "srgb", "components": [ 0.8706, 0.7882, 0.3451 ], "hex": "#dec958" } }, "3": { "$value": { "colorSpace": "srgb", "components": [ 0.7373, 0.6824, 0.4235 ], "hex": "#bcae6c" } }, "4": { "$value": { "colorSpace": "srgb", "components": [ 0.6078, 0.5804, 0.4627 ], "hex": "#9b9476" } }, "5": { "$value": { "colorSpace": "srgb", "components": [ 0.4902, 0.4863, 0.4706 ], "hex": "#7d7c78" } }, "6": { "$value": { "colorSpace": "srgb", "components": [ 0.3804, 0.3961, 0.4353 ], "hex": "#61656f" } }, "7": { "$value": { "colorSpace": "srgb", "components": [ 0.2627, 0.3059, 0.4235 ], "hex": "#434e6c" } }, "8": { "$value": { "colorSpace": "srgb", "components": [ 0.102, 0.2196, 0.4353 ], "hex": "#1a386f" } }, "9": { "$value": { "colorSpace": "srgb", "components": [ 0.0, 0.1333, 0.3059 ], "hex": "#00224e" } }, "$description": "cividis (Nunez et al. 2018), 9 steps; step 1 = lowest value; the highest value has the most contrast in each theme." }, "div": { "1": { "$value": { "colorSpace": "srgb", "components": [ 0.698, 0.0941, 0.1686 ], "hex": "#b2182b" } }, "2": { "$value": { "colorSpace": "srgb", "components": [ 0.8392, 0.3765, 0.302 ], "hex": "#d6604d" } }, "3": { "$value": { "colorSpace": "srgb", "components": [ 0.9569, 0.6471, 0.5098 ], "hex": "#f4a582" } }, "4": { "$value": { "colorSpace": "srgb", "components": [ 0.9922, 0.8588, 0.7804 ], "hex": "#fddbc7" } }, "5": { "$value": { "colorSpace": "srgb", "components": [ 0.9686, 0.9686, 0.9686 ], "hex": "#f7f7f7" } }, "6": { "$value": { "colorSpace": "srgb", "components": [ 0.8196, 0.898, 0.9412 ], "hex": "#d1e5f0" } }, "7": { "$value": { "colorSpace": "srgb", "components": [ 0.5725, 0.7725, 0.8706 ], "hex": "#92c5de" } }, "8": { "$value": { "colorSpace": "srgb", "components": [ 0.2627, 0.5765, 0.7647 ], "hex": "#4393c3" } }, "9": { "$value": { "colorSpace": "srgb", "components": [ 0.1294, 0.4, 0.6745 ], "hex": "#2166ac" } }, "$description": "ColorBrewer RdBu (Apache-2.0), reversed. Step 1 = worse (red), 5 = no change, 9 = better (blue)." } } } }design/tokens/dark.tokens.json{ "$schema": "https://www.designtokens.org/schemas/2025.10/format.json", "$description": "devops-cli design tokens, dark theme. Same names as the other theme (CI checks it).", "color": { "$type": "color", "bg": { "$value": { "colorSpace": "srgb", "components": [ 0.0824, 0.0824, 0.0784 ], "hex": "#151514" }, "$description": "Page and chart background." }, "surface": { "$value": { "colorSpace": "srgb", "components": [ 0.1216, 0.1216, 0.1137 ], "hex": "#1f1f1d" }, "$description": "Code blocks, callouts, table header band." }, "border": { "$value": { "colorSpace": "srgb", "components": [ 0.2314, 0.2314, 0.2157 ], "hex": "#3b3b37" }, "$description": "Decorative rules and gridlines only (no 3:1 need)." }, "border-strong": { "$value": { "colorSpace": "srgb", "components": [ 0.4784, 0.4784, 0.451 ], "hex": "#7a7a73" }, "$description": "Control borders and chart axes.", "$extensions": { "devops-cli": { "contrast": { "min": 3.0, "on": [ "color.bg", "color.surface" ] } } } }, "fg": { "$value": { "colorSpace": "srgb", "components": [ 0.9098, 0.9098, 0.8902 ], "hex": "#e8e8e3" }, "$description": "Body text; a single chart series.", "$extensions": { "devops-cli": { "contrast": { "min": 4.5, "on": [ "color.bg", "color.surface" ] } } } }, "fg-muted": { "$value": { "colorSpace": "srgb", "components": [ 0.6627, 0.6627, 0.6314 ], "hex": "#a9a9a1" }, "$description": "Secondary text, captions, ticks.", "$extensions": { "devops-cli": { "contrast": { "min": 4.5, "on": [ "color.bg", "color.surface" ] } } } }, "accent": { "$value": { "colorSpace": "srgb", "components": [ 0.4706, 0.7725, 0.8549 ], "hex": "#78c5da" }, "$description": "Links, focus ring, the one highlighted series.", "$extensions": { "devops-cli": { "contrast": { "min": 4.5, "on": [ "color.bg", "color.surface" ] } } } }, "focus": { "$value": "{color.accent}", "$description": "Focus outline, 2 px.", "$extensions": { "devops-cli": { "contrast": { "min": 3.0, "on": [ "color.bg", "color.surface" ] } } } }, "status": { "ok": { "$value": { "colorSpace": "srgb", "components": [ 0.2392, 0.7882, 0.6275 ], "hex": "#3dc9a0" }, "$description": "Status ok. Never a chart series.", "$extensions": { "devops-cli": { "contrast": { "min": 4.5, "on": [ "color.bg", "color.surface" ] } } } }, "warn": { "$value": { "colorSpace": "srgb", "components": [ 0.9412, 0.7529, 0.3059 ], "hex": "#f0c04e" }, "$description": "Status warn; warn threshold lines.", "$extensions": { "devops-cli": { "contrast": { "min": 4.5, "on": [ "color.bg", "color.surface" ] } } } }, "error": { "$value": { "colorSpace": "srgb", "components": [ 1.0, 0.4784, 0.4 ], "hex": "#ff7a66" }, "$description": "Status error; page threshold lines.", "$extensions": { "devops-cli": { "contrast": { "min": 4.5, "on": [ "color.bg", "color.surface" ] } } } }, "info": { "$value": "{color.fg-muted}", "$description": "Status info: neutral, not blue.", "$extensions": { "devops-cli": { "contrast": { "min": 4.5, "on": [ "color.bg", "color.surface" ] } } } }, "ok-bg": { "$value": { "colorSpace": "srgb", "components": [ 0.0745, 0.1804, 0.1529 ], "hex": "#132e27" }, "$description": "Tint behind an ok callout." }, "warn-bg": { "$value": { "colorSpace": "srgb", "components": [ 0.2, 0.1608, 0.0588 ], "hex": "#33290f" }, "$description": "Tint behind a warn callout." }, "error-bg": { "$value": { "colorSpace": "srgb", "components": [ 0.2275, 0.1098, 0.0941 ], "hex": "#3a1c18" }, "$description": "Tint behind an error callout." } }, "syntax": { "comment": { "$value": "{color.fg-muted}", "$description": "Code comments (italic).", "$extensions": { "devops-cli": { "contrast": { "min": 4.5, "on": [ "color.surface" ] } } } }, "string": { "$value": "{color.accent}", "$description": "Strings and literals.", "$extensions": { "devops-cli": { "contrast": { "min": 4.5, "on": [ "color.surface" ] } } } }, "keyword": { "$value": "{color.fg}", "$description": "Keywords (semibold).", "$extensions": { "devops-cli": { "contrast": { "min": 4.5, "on": [ "color.surface" ] } } } } }, "data": { "cat": { "3": { "$value": { "colorSpace": "srgb", "components": [ 0.5098, 0.8118, 1.0 ], "hex": "#82cfff" }, "$description": "Series 3, blue. Carbon cyan.30 (@carbon/colors 11.61.0, Apache-2.0). Theme-aware targets only.", "$extensions": { "devops-cli": { "contrast": { "min": 3.0, "on": [ "color.bg", "color.surface" ] } } } } }, "neutral": { "$value": "{color.fg-muted}", "$description": "Other, baseline, context series.", "$extensions": { "devops-cli": { "contrast": { "min": 3.0, "on": [ "color.bg", "color.surface" ] } } } }, "seq": { "1": { "$value": { "colorSpace": "srgb", "components": [ 0.0, 0.1333, 0.3059 ], "hex": "#00224e" } }, "2": { "$value": { "colorSpace": "srgb", "components": [ 0.102, 0.2196, 0.4353 ], "hex": "#1a386f" } }, "3": { "$value": { "colorSpace": "srgb", "components": [ 0.2627, 0.3059, 0.4235 ], "hex": "#434e6c" } }, "4": { "$value": { "colorSpace": "srgb", "components": [ 0.3804, 0.3961, 0.4353 ], "hex": "#61656f" } }, "5": { "$value": { "colorSpace": "srgb", "components": [ 0.4902, 0.4863, 0.4706 ], "hex": "#7d7c78" } }, "6": { "$value": { "colorSpace": "srgb", "components": [ 0.6078, 0.5804, 0.4627 ], "hex": "#9b9476" } }, "7": { "$value": { "colorSpace": "srgb", "components": [ 0.7373, 0.6824, 0.4235 ], "hex": "#bcae6c" } }, "8": { "$value": { "colorSpace": "srgb", "components": [ 0.8706, 0.7882, 0.3451 ], "hex": "#dec958" } }, "9": { "$value": { "colorSpace": "srgb", "components": [ 0.9961, 0.9098, 0.2196 ], "hex": "#fee838" } }, "$description": "cividis (Nunez et al. 2018), 9 steps; step 1 = lowest value; the highest value has the most contrast in each theme." }, "div": { "1": { "$value": { "colorSpace": "srgb", "components": [ 1.0, 0.6784, 0.6784 ], "hex": "#ffadad" } }, "2": { "$value": { "colorSpace": "srgb", "components": [ 0.7451, 0.4353, 0.3882 ], "hex": "#be6f63" } }, "3": { "$value": { "colorSpace": "srgb", "components": [ 0.4902, 0.2039, 0.1176 ], "hex": "#7d341e" } }, "4": { "$value": { "colorSpace": "srgb", "components": [ 0.2549, 0.0706, 0.0039 ], "hex": "#411201" } }, "5": { "$value": { "colorSpace": "srgb", "components": [ 0.098, 0.0471, 0.0353 ], "hex": "#190c09" } }, "6": { "$value": { "colorSpace": "srgb", "components": [ 0.0784, 0.1882, 0.2431 ], "hex": "#14303e" } }, "7": { "$value": { "colorSpace": "srgb", "components": [ 0.1569, 0.4078, 0.5255 ], "hex": "#286886" } }, "8": { "$value": { "colorSpace": "srgb", "components": [ 0.3176, 0.6235, 0.8275 ], "hex": "#519fd3" } }, "9": { "$value": { "colorSpace": "srgb", "components": [ 0.6196, 0.6902, 1.0 ], "hex": "#9eb0ff" } }, "$description": "Crameri berlin (matplotlib 3.11.2), reversed. Step 1 = worse (red), 5 = no change, 9 = better (blue)." } } } }dan-petty commentedon Nov 11, 2026
Spec text for docs/DESIGN.md
The text that
docs/DESIGN.mdtakes, as the design spec study wrote it on 2026-11-11. The other children of the tracker refer to its rule ids (C1 to C14, T1 to T10). Contrast and colorblind numbers come from coloraide 8.13.1 on the built token JSON.Palette, light and dark
Chart palettes
Typography
Spacing and layout
Chart rules
Table rules
Rules for each target
devops-cli-service commentedon Nov 11, 2026
Status set to Ready at fbe8984 (see proposed design in issue body).
docs(openspec): archive the change of #4738
dan-petty commentedon Nov 11, 2026
Owner direction of 2026-11-11:
New rule: no minimum release age for dependencies, images, charts or tools. Pin the newest release that fixes the known security and bug issues and that the surrounding tools support (the tests pass).
Body changes: the 14-day clause about Style Dictionary 5.8.0 is removed. The build pins the newest Style Dictionary release that passes the build and the tests; on 2026-11-11 that is 5.8.0 (2026-11-03) if the build passes with it. The trial results of 5.7.1 stay as written. PR #4811 can move to 5.8.0 when its build passes.
docs(openspec): archive the change of #4738
docs(openspec): archive the change of #4738
devops-cli-service commentedon Nov 12, 2026
Released in v0.115.0: https://github.com/dan-petty/devops-cli/releases/tag/v0.115.0
devops-cli-service commentedon Nov 12, 2026
Live since 2026-11-12 04:08 UTC
test(roadmap): hold each label color to its design token (#5675)