Skip to content

feat(design): add the design tokens and their build #4738

Closed
1 of 1 issue completed
Closed

Description

@dan-petty

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 $schema https://www.designtokens.org/schemas/2025.10/format.json: design/tokens/base.tokens.json (50 tokens), light.tokens.json (38) and dark.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 of docs/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.json and dark-explicit.json. Each config sets log.warnings to "error", transformGroup "css" (the "web" group writes 0.5rem as 0.5px in json/flat), and the built-in formats css/variables (with outputReferences: true) and json/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.json and package-lock.json, style-dictionary only), as OpenSpec does. Install it with npm ci --ignore-scripts in the npm-tools stage of .devcontainer/Dockerfile and in CI with actions/setup-node and 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-tokens runs 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), and src/devops_cli/design/css/tokens-*.css with src/devops_cli/design/tokens-{base,light,dark}.json as package data. The start page item (feat(k8s): deploy Homepage as the cluster start page #4598) adds a fifth file entry with the selector html.dark for k8s/startpage/.
  • Add src/devops_cli/design/__init__.py: tokens(mode) reads the package data through importlib.resources; the module also holds the three series dash arrays (solid, 6 3, 8 3 2 3) and the reference dash 2 2.
  • Add the CI job "Design Tokens" to .github/workflows/ci.yml with 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-code on every generated path, uv run pytest tests/design. Each step timeout is shorter than the job timeout.
  • Add tests/design with coloraide 8.13.1 as a dev dependency. The tests check that:
    1. the light and dark files hold the same token names, in the source and in the build;
    2. every $extensions contrast rule passes in both themes, and each rule marked grafana also passes on #ffffff, #f4f5f5, #181b1f and #111217;
    3. 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";
    4. the cividis ramp has a monotonic L*, and diverging step 1 is red and step 9 is blue in both themes;
    5. the @media literals 40rem and 75rem equal breakpoint.md and breakpoint.lg;
    6. 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 to docs/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-tokens exits 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/design passes 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 the AGENTS.md row 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.json and dark.tokens.json.
  • THEN Base holds 50 tokens, each theme holds 38, and each $schema is https://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 $value of 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.json and dark.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-tokens and 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 min value 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 grafana set to true on the four Grafana backgrounds.
  • THEN Each ratio is at least the min value 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 @media examples of docs/DESIGN.md and 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.json from 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-code step.

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 runs actions/setup-node with node-version-file: .node-version before 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.md holds the spec, docs/adr/0024-* holds the base and the pipeline, and the table row sends "style an artifact" to docs/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 dev group of pyproject.toml and the coloraide entry of uv.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 packageRules of .github/renovate.json.
  • THEN A rule matches the style-dictionary lock and sets enabled to true, and the blanket npm rule 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 css transform group and the built-in css/variables and json/flat formats only. Set log.warnings to "error", set outputReferences: true on css/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 the css transform group, css/variables and outputReferences; 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] dev of pyproject.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 :root for 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. Set color-scheme to match each theme. MDN (fetched 2026-11-11) documents the media feature and color-scheme. The docs site already sets data-theme on <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-theme toggle 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.
  • 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 none and holds no Node.
    • Rejected: Build at install time. Every host that installs the package would need Node and the lock.
  • How do the @media rules get the breakpoint values when they cannot read a custom property?: Write the literals 40rem and 75rem in the @media rules. Add a test that compares the literals in docs/DESIGN.md with breakpoint.md and breakpoint.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.md is 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 that base.tokens.json holds. 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-version names, which is 24. The CI job sets node-version-file: .node-version in actions/setup-node. Both install the lock with npm ci --ignore-scripts. The npm-tools stage of the Dockerfile uses node: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__.py with tokens(mode). It reads design/tokens-<mode>.json through importlib.resources.files, as src/devops_cli/roadmap/duplicate_eval.py:20 does. 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.resources over package data. It reads the file inside a wheel, with no path that assumes a checkout. The project already uses importlib.resources.files in src/devops_cli/roadmap/duplicate_eval.py.
    • Rejected: A path under the source tree. It breaks when a host installs the package from a wheel.
  • How do npm updates of the style-dictionary lock reach Renovate without enabling every npm lock?: Add a packageRules entry after the blanket npm disable that matches src/devops_cli/tools_lock/style-dictionary/package.json and sets enabled: 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.lock records the resolution. [sources: pyproject.toml:90-120, uv.lock]

Fit

Fits in one pull request.

Suspected block

None.

Dependencies

None.

Sub-issues

Sub-issues

1 of 1 Issues completed
Loading 1 sub-issues

Activity

  1. added
    source/agent
    on Nov 11, 2026
  2. added
    type/feature
    status/new
    value/high
    effort/high
    on Nov 11, 2026
  3. dan-petty commented on Nov 11, 2026

    @dan-petty
    OwnerAuthor

    Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones.

    • Type: type/feature. The feat prefix of the title gives the type.
    • Scope: none. The title has the scope design, and .github/labels.yml declares no scope/design label. Add the label to the file to give the scope to this item.
    • Priority: P1-High. Multiple open items depend on this single source of design values, so it blocks their delivery.
    • Value: High. It removes 34 duplicated hex values and 4 font stacks and gives every artifact one verified source.
    • Effort: High. It spans token files, four build configs, a CI job, a Python module, a test suite, and a spec document.
    • Related: feat(roadmap): render the project review as an HTML page #4720, which asks for a different change. 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.
  4. added
    priority/p1-high
    on Nov 11, 2026
  5. dan-petty commented on Nov 11, 2026

    @dan-petty
    OwnerAuthor

    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)."
       }
      }
     }
    }
  6. dan-petty commented on Nov 11, 2026

    @dan-petty
    OwnerAuthor

    Spec text for docs/DESIGN.md

    The text that docs/DESIGN.md takes, 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
    WCAG 2.x contrast, computed by coloraide 8.13.1 on the Style Dictionary output. Format: hex, ratio on bg / ratio on surface.
    
    Surfaces: bg #ffffff (light) | #151514 (dark); surface #f6f6f3 | #1f1f1d.
    Lines: border #dcdcd6 | #3b3b37, decorative only (rules, gridlines; no 3:1 need). border-strong #86867f 3.66 / 3.38 | #7a7a73 4.23 / 3.82 (controls, chart axes; 3:1 needed).
    Text (4.5:1 needed):
    - fg #1c1c1a 17.07 / 15.76 | #e8e8e3 14.86 / 13.43
    - fg-muted #5f5f59 6.43 / 5.94 | #a9a9a1 7.72 / 6.98
    - accent (links, focus, highlight series) #0b6e8a 5.81 / 5.37 | #78c5da 9.39 / 8.49
    - status.ok #007a5e 5.32 / 4.92 | #3dc9a0 8.75 / 7.91
    - status.warn #946200 5.24 / 4.84 | #f0c04e 10.75 / 9.71
    - status.error #b3261e 6.54 / 6.04 | #ff7a66 7.16 / 6.47
    - status.info = fg-muted (neutral, not blue)
    Status color on its tint (status / fg): light ok-bg #e4f2ec 4.62 / 14.80, warn-bg #faf0da 4.63 / 15.07, error-bg #fbe8e6 5.54 / 14.46; dark ok-bg #132e27 6.95 / 11.80, warn-bg #33290f 8.43 / 11.66, error-bg #3a1c18 6.05 / 12.57.
    Code (on surface): syntax.comment = fg-muted, italic (5.94 | 6.98); syntax.string = accent (5.37 | 8.49); syntax.keyword = fg, semibold (15.76 | 13.43); everything else fg. This fixes the docs-site light failures 1.44:1, 1.83:1, 2.85:1 and 3.04:1 (inventory of main 818ac6f3).
    Focus: 2 px accent outline, 2 px offset (5.81 | 9.39).
    Lowest values: text 4.84 (light warn on surface), 6.47 (dark error on surface); non-text 3.38 (light border-strong on surface), 3.82 (dark border-strong on surface).
    Status under simulated CVD (CIEDE2000, normal/protan/deutan/tritan): light ok-warn 37.2/16.4/21.4/47.4, ok-error 58.6/16.6/19.2/58.3, warn-error 26.9/12.3/4.0/12.6; dark ok-warn 36.8/17.1/23.3/50.5, ok-error 61.6/13.6/16.6/66.4, warn-error 34.2/18.8/10.4/16.9. Light warn vs error is 4.0 under deutan, so every status shows a shape and a word.
    Theme selection: tokens-light.css on :root; tokens-dark.css under @media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) }; tokens-dark-explicit.css on :root[data-theme="dark"]; color-scheme follows, so form controls and scrollbars match.
    
    Chart palettes
    Method: Machado 2009 simulation at severity 1.0 for protan, deutan and tritan; CIEDE2000 over all pairs (coloraide 8.13.1, the contrast test). Second metric: a second palette validator (OKLab x100, all pairs;. Hard gates for a categorical color: chroma 0.10 or more; 3.2:1 or more on bg, surface and the Grafana backgrounds of its theme; 15 or more from each Google logo color; 15 or more (normal vision) from each status color; 8 or more under CVD from warn and error; 10 or more from 'Other' gray under all visions. Gates for a set: CIEDE2000 12 or more under all visions, OKLab 15 or more (normal) and 8 or more (protan, deutan).
    
    CATEGORICAL (identity), at most 3 colors plus Other, fixed order, never cycled, color follows the entity:
    - series 1 color.data.cat.1 #a463f2 (purple), both themes. Contrast: light 3.72 bg / 3.44 surface; dark 4.91 / 4.44; Grafana #ffffff 3.72, #f4f5f5 3.41, #181b1f 4.64, #111217 5.03.
    - series 2 color.data.cat.2 #e7298a (pink), both themes. Light 4.13 / 3.82; dark 4.42 / 4.00; Grafana 4.13, 3.78, 4.18, 4.53.
    - series 3 color.data.cat.3 blue: light #002d9c 11.32 / 10.45; dark #82cfff 10.72 / 9.68. Theme-aware targets only (not Grafana).
    - Other, baseline, context: color.data.neutral = fg-muted #5f5f59 | #a9a9a1.
    - A single series uses fg; one highlighted series uses accent and the context uses neutral.
    Evidence: worst CIEDE2000 (normal/protan/deutan/tritan) light 23.4/14.3/28.4/28.4, dark 23.4/17.8/19.6/28.4; OKLab normal 20.3, CVD worst 14.7 (light) and 16.9 (dark); vs Other 16.9 (light) and 10.3 (dark); vs status 26.8 or more; vs warn/error under CVD 14.3 (light) and 10.1 (dark); Google 21.2 or more. Validator: PASS on chroma, CVD, normal vision and contrast; the skill's lightness band flags the blue slot (L 0.363 light, 0.822 dark). The band is a skill opinion, not a standard; the blue slot differs by lightness on purpose, because mid blues are within 15 of Google blue.
    Why 3 colors: no 4-color set passes all gates in light mode with the same hue family per slot in both themes (0 sets). Best 4th candidates fail a gate: brown #9c755f (OKLab deutan 5.3 with pink, chroma 0.059), light-only purple.70 #6929c4, dark-only yellow.60 #8e6a00 (different hue families), or a near-black red #520408. A 4th entity goes to Other, small multiples or a table. This also matches the SRE trait 'diagrams with few colors'.
    Second channel: line series 1 solid, series 2 dash 6 3, series 3 dash 8 3 2 3; references and thresholds dash 2 2 at 1 px, which no series uses; points use circle, square, triangle; bars use direct labels.
    
    SEQUENTIAL (magnitude): cividis, 9 steps; step 1 = lowest. Light runs #fee838 to #00224e, dark runs #00224e to #fee838, so the highest value has the most contrast (15.69:1 and 14.63:1). L* monotonic (91.3 to 13.8); adjacent CIEDE2000 7.4 normal, 7.8 protan, 7.8 deutan, 7.0 tritan. The faint end is 1.25:1 and 1.16:1, so heatmaps print values or have a data table. Ordered series (p50/p95/p99) use steps 5, 7, 9 with direct labels. Tool names: Vega 'cividis', Grafana 'continuous-cividis'.
    
    DIVERGING (polarity): 9 steps, 1 = worse (red), 5 = no change (near the background), 9 = better (blue), in both themes. Light ColorBrewer RdBu reversed: #b2182b #d6604d #f4a582 #fddbc7 #f7f7f7 #d1e5f0 #92c5de #4393c3 #2166ac (center 1.07:1, ends 6.87 and 5.90). Dark Crameri berlin reversed: #ffadad #be6f63 #7d341e #411201 #190c09 #14303e #286886 #519fd3 #9eb0ff (center 1.05:1, ends 10.30 and 8.80). Mirror pairs CIEDE2000 16.5 or more (light protan) and 21.9 or more (dark protan); adjacent 7.1 or more. Use it only where red means worse (more latency, more errors). Grafana has no diverging mode: show change as a line around zero.
    
    STATUS IN CHARTS: only abnormal states get a status color: warn and error threshold lines. Status ok is never a series or a line. Page lines use status.error, ticket lines use status.warn, the 1x budget-pace line uses fg-muted.
    
    GRAFANA (hex does not follow the Grafana theme): series 1 and 2 hex from tokens-base.json (pass all four backgrounds); a third entity is the 'text' color as baseline or Other; more series use the 'shades' mode of 'text' or a table. Status by Grafana names that resolve per theme: ok 'text', warn 'semi-dark-orange' (light 3.05:1, dark 6.54:1), error 'red' (4.51, 4.84); semi-dark-orange vs red under deutan 12.9 (light) and 13.2 (dark), against 5.0 and 6.8 for Grafana green vs red. Heatmaps 'continuous-cividis'. Viewers with color vision deficiency can pick the built-in deut_prot or tritanopia themes.
    
    Typography
    Faces: Source Serif 4 for reading text of reports and docs pages; Source Sans 3 for headings, navigation, tables, captions, chart text, buttons and dashboards in HTML; Source Code Pro for code, identifiers, hashes and commands. Grafana keeps Inter and Roboto Mono (no font input, createTypography.ts:86-87). The terminal uses the user's font.
    Delivery: one path for every web target, the Google Fonts css2 API (Source Sans 3 400/600, Source Serif 4 opsz 8..60 400/600, Source Code Pro 400/600, display=swap). It works inside agent artifacts (the artifact CSP allows only fonts.googleapis.com), it adds no npm dependency, and the docs site already loads Google Fonts (docs/_layouts/default.html:12). Every stack has system fallbacks (base.tokens.json font.family.*). The render check loaded all three faces.
    Scale (font.size tokens; line height; weight; use):
    - 3xl 36 px, 1.2, 400: h1, report title
    - 2xl 28 px, 1.2, 400: h2 (SRE trait: heading level shows by size, not weight)
    - xl 22 px, 1.2, 600: h3
    - lg 18 px, 1.6, 400 serif: reading text at 40rem and wider
    - md 16 px, 1.6 serif: reading text under 40rem; 16 px 600 sans: figure titles
    - sm 14 px, 1.4 sans: tables, captions, notes, legends, footnotes
    - xs 12 px, 1.4 sans: chart ticks and axis titles only; nothing smaller anywhere
    - mono 14 px, 1.5: code blocks; inline code 0.875 em
    Weights: 400 for text, h1 and h2; 600 for h3, table headers, figure titles and the 'Figure N-M.' label. No italics for emphasis in tables; italics only for code comments and the Markdown caption line.
    Numbers: tabular-nums lining-nums in every numeric cell, stat and tick; numbers align right; fixed decimals per column; ',' as thousands separator; the minus sign U+2212 for negative values; a no-break space between number and unit ('212 ms', '99.9 %'); multipliers with no space ('14.4x' written with U+00D7); IEC prefixes for bytes (KiB, MiB, GiB); ISO 8601 dates; 24 h UTC times ('14:00 UTC').
    Case: sentence case for every heading, title, panel title, axis title, legend, form label and table header. No all caps, except acronyms and unit symbols.
    Measure: reading text 40rem (about 70 characters); figures and tables up to 60rem.
    Glyphs: status marks on web pages are inline SVG shapes, not font glyphs (Carbon measured missing glyphs for U+2717, U+25A0-25CF and U+26A0 in web faces).
    
    Spacing and layout
    Spacing scale (4 px base, rem tokens): space.1 4, space.2 8, space.3 12, space.4 16, space.6 24, space.8 32, space.12 48, space.16 64 px. Paragraph gap space.4; h2 has space.16 above, a 1 px border rule and space.6 padding (the SRE section rule); h3 space.8 above; figures and tables space.8 margin; table cells space.2 vertical and space.4 on the right.
    Widths: side gutter size.gutter 16 px at every width plus the safe-area insets; reading column size.measure 40rem; figures and tables size.wide 60rem; page frame and dashboards size.full 72rem; margin notes size.margin 15rem.
    Breakpoints: breakpoint.md 40rem (body text goes from 16 px to 18 px); breakpoint.lg 75rem (margin-note column: 40rem text, space.12 gap, 15rem notes). @media cannot read custom properties, so the CSS uses the literals 40rem and 75rem and a test compares them with the tokens .
    Phone (under 40rem): one column; margin notes inline with a 2 px left rule; tables, code and static SVG charts scroll sideways in their own box (tabindex=0, role=region, a label); a static chart keeps size.chart-min 40rem so 12 px chart text never shrinks; captions stay outside the scroll box; legends go above the chart; SLO tiles wrap to 2 per row.
    Wide: content stops at size.full; extra width is white space, never stretched text.
    Targets: interactive elements are size.target 24 px or larger (WCAG 2.2 SC 2.5.8); the trial page buttons rendered 54-71 x 32 px.
    Surfaces: bg for the page and charts; surface for code blocks, callouts and the SLO tile band; radius.none for figures, tables, tiles and charts; radius.sm 2 px for buttons, inputs and inline code; no shadows (no elevation tokens); hairline 1 px rules; 2 px only for focus and the table header rule.
    Motion: motion.duration.fast 120 ms with motion.easing.standard, only for hover and theme change, only inside prefers-reduced-motion: no-preference. Charts do not animate.
    Grafana layout (24-column grid): row 1 SLO tiles (SLO target, SLI over the window, error budget left, burn rate now), each w6 h4; row 2 burn rate (w12 h8) and budget left over the window (w12 h8); then one golden-signals row in book order (latency, traffic, errors, saturation), w12 h8 each, two per row; then collapsed rows for capacity, toil and details.
    
    Chart rules
    C1 Form: one message per chart. Line for change over time, bar or dot for comparison, stat for one number, table for exact values. No pie with more than 3 parts, no 3D, no dual y-axes.
    C2 Title and subtitle: the figure title states the finding in sentence case ('The 6 h burn rate crossed its 6x page line once in 48 hours'). The subtitle gives the SLO or measure, the window and step, n, the source, and 'illustrative data' when the data is not measured. Dashboard panel titles name the signal and measure ('Latency: p95 of successful requests').
    C3 Captions (SRE trait): 'Figure <section>-<n>.' below the figure; 'Table <section>-<n>.' above the table, outside the scroll box. A caption says how to read the chart and where the data comes from. In GitHub Markdown the figure caption is an italic line under the image and the table caption a bold line above the table, because GitHub removes figure and figcaption.
    C4 Axes and units: every value axis has a title with its unit in parentheses ('Burn rate (x)', 'Latency, p95 (ms)', 'Time since 2026-11-09 00:00 UTC (h)'). 3 to 5 ticks on round numbers. Ticks 12 px in fg-muted; axis line border-strong (3:1).
    C5 Zero baseline: bars, columns, areas, rates, ratios and burn rates start at 0. A line may start away from 0 only for a level, with a labeled axis and a note in the subtitle. A log axis says 'log scale'.
    C6 Ink: horizontal gridlines only, 1 px in border; no frame, plot background, gradient, shadow, texture or decoration. Lines 1.5 px (chart.stroke.data); the highlighted series 2.5 px in accent. A 2 px bg gap between stacked segments and between bars.
    C7 Color: at most 3 colored series (chart.max-series) in the fixed order cat.1 to cat.3, plus Other in neutral. Color follows the entity. Status colors show state only. Text never takes a series color. Color is never the only channel: each series has a dash pattern (solid, 6 3, 8 3 2 3), a direct label at a peak or line end, and a legend when there are 2 or more series.
    C8 References: thresholds, targets and SLO lines are 1 px lines with dash 2 2 and a direct label at the LEFT end inside the plot, so the label stays in view when the chart scrolls on a phone. Labels have a 3 px bg halo. Deploys and incidents are vertical 1 px dotted lines in fg-muted with a label above the plot.
    C9 Sample size: every aggregate states n and the window. Do not show p99 when n < 100 or p95 when n < 20: print 'low sample' and the n. Mark windows with n < 30 in the caption.
    C10 Uncertainty: show measured intervals only, as a band at chart.band-opacity 0.2 or as error bars, and name the method ('95 % CI, bootstrap, 1,000 resamples'). A min-max range is not an interval. Benchmarks show the spread next to the median.
    C11 Accessibility: SVG charts have role=img with a title and a desc that states the message; a data table follows in a details element; no information depends on hover.
    C12 SRE patterns (SRE workbook Table 5-8, 99.9 % SLO over 30 d):
     a) SLO panel: four tiles - SLO target with its window, SLI over the window, error budget left in %, burn rate now. Each tile shows a 36 px number and a state shape plus word. Budget thresholds: more than 25 % neutral, 0-25 % warn, under 0 % error.
     b) Error budget chart: budget left (%) over the window from 100 % with a 2 2 dashed even-burn line to 0 % at the window end.
     c) Burn-rate chart: the 1 h series against its 14.4x page line (2 % of budget), the 6 h series against its 6x page line (5 % of budget), and the 1x budget-pace line (ticket on the 3 d window, 10 %). y from 0, unit x. Never draw a 1 h series against the 6x line.
     d) Golden signals in book order: latency of successful requests (s; p50/p95/p99 as sequential steps 5/7/9), traffic (reqps), errors (percentunit, with the SLO line), saturation (percentunit, with the limit line).
     e) Toil: stacked columns of hours per week from zero, 3 categories plus Other, totals labeled.
     f) Capacity: use, request and limit lines, and the headroom as text; label projections as projections.
    C13 Terminal charts (ui/sparklines.py, telemetry/waterfall.py): print min, max and the unit next to the block characters; color never carries the meaning.
    C14 Grafana mapping: series 2 lineStyle dash [10,10] (a Grafana preset); reference lines are constant queries (for example vector(14.4)) with a display name, a role color name and lineStyle dots; fillOpacity 0; legend as a list for 3 series or fewer, else a table with last, mean, max.
    
    Table rules
    T1 Caption: 'Table <section>-<n>.' above the table, outside its scroll box, in 14 px sans; the caption says what, the window in UTC, n and the source. Markdown: a bold 'Table N.' line above the table.
    T2 Rules: a 2 px fg rule under the header row and a 1 px border rule under each body row (SRE book: th, tr border-bottom 1px). No vertical rules, no zebra fill, no cell backgrounds, no shadows, radius 0.
    T3 Text: 14 px Source Sans 3, line height 1.4; header in 600, sentence case; left-aligned text; cells do not wrap numbers.
    T4 Numbers: right-aligned with tabular-nums lining-nums; fixed decimals per column; ',' thousands separator; the minus sign U+2212; the unit in the column header, not in the cells ('Latency, p95 (ms)'). Change columns carry a sign ('+2.4', U+2212 '8.1').
    T5 Empty and special values: '-' (hyphen-minus) for no value in HTML and Markdown (generator.py today mixes '*None*' and '-'); 'low sample' with the n when C9 applies. No emoji as data ('Yes' replaces the lock emoji in ENV_VARS.md; 'Pass' replaces the check-mark emoji in review Markdown).
    T6 State column: an inline SVG shape plus a word in HTML (circle with check 'OK', triangle with '!' 'Warn', hexagon with 'x' 'Fail', square with 'i' 'Info'); in Markdown and the terminal a text mark plus the word ('OK', '! Warn', 'Fail').
    T7 Width: tables sit in an overflow-x: auto box (tabindex=0, role=region, aria-labelledby the caption) up to 60rem; the page never scrolls sideways.
    T8 Markdown alignment: '| :--- |' for text columns and '| ---: |' for number columns, with spaces, in hand-written and generated files (152 rows use this style today; 1,596 generated rows use '|---|'). rumdl checks MD055, MD056, MD058 and MD060 (style compact).
    T9 Check results: one table format for commands/pr.py and github/pr_evidence.py with the columns Check, Result, Link.
    T10 Postmortem action items: columns Item, Type, Owner role, Issue, State. Timeline: columns Time (UTC), Event.
    
    Rules for each target
    DOCS SITE (Jekyll 3.10, legacy Pages build of main:/docs; #4656 moves it to a Pages workflow): commit the generated docs/assets/css/tokens-{base,light,dark,dark-explicit}.css. Rewrite docs/assets/css/style.css (570 lines, 34 hex) to read only token variables. In docs/_layouts/default.html remove data-theme="dark" (line 2) and the 'dark' default of the toggle script, so the system theme applies until the reader picks one; replace Inter and JetBrains Mono with the Source faces (same css2 API); add :focus-visible. Rouge classes: .c .c1 .cm .cs to syntax.comment (italic), .s .s1 .s2 .sb .sc .sd .se .sh .si .sx .sr .ss to syntax.string, .k .kc .kd .kn .kp .kr .kt to syntax.keyword (600), others fg. Breakpoints 40rem and 75rem replace the single 768px one. One SVG favicon replaces the emoji favicon.
    MERMAID: on github.com, no init directive, no classDef, no style and no hex, because a fixed theme does not follow GitHub dark mode ; GitHub draws its own light and dark themes. Use 'flowchart' (24 blocks use 'graph'), sentence-case labels, 15 nodes or fewer, one direction; src/devops_cli/ai/diagram.py writes 'flowchart TD/LR'. On the docs site: mermaid 12.2.0 from jsDelivr with SRI (12.3.0 is under 14 days old), theme 'base', themeVariables read from the token CSS variables with getComputedStyle (the color tokens used are hex in the CSS): background color-bg, primaryColor color-surface, primaryBorderColor color-border-strong, primaryTextColor color-fg, lineColor color-fg-muted, secondaryColor color-bg, tertiaryColor color-surface, fontFamily font-family-sans, fontSize 14px; draw again when the theme changes. Covers 14 blocks on 5 pages.
    README, HAND-WRITTEN AND GENERATED DOCS, ISSUES AND PULL REQUESTS (GitHub Markdown): sentence-case headings (about 80 Title Case headings in README, ARCHITECTURE, SECURITY, docs/SDLC.md, docs/ROUTINE_TASKS.md; 'and' for '&'); table rules T5, T8, T9; captions per C3; charts as <picture> with prefers-color-scheme light and dark SVG sources and alt text; GitHub alerts NOTE, WARNING, CAUTION for callouts; issue form labels in sentence case ('Problem description'); static README badges in color 5f5f59 and the CI badge as it is. CHANGELOG.md stays with release-please. rumdl 0.3.2 runs in pre-commit and CI; its config moves from devcontainer.json:59-63 to .rumdl.toml.
    LABELS (.github/labels.yml and the package list of #4652): one color per label family from the light token hex: priority p0 status.error #b3261e, p1 status.warn #946200, p2 accent #0b6e8a, p3 fg-muted #5f5f59; type/* cat.1 #a463f2, cat.2 #e7298a, cat.3 #002d9c and grays; other families grays (#86867f, #dcdcd6); no brand colors. A test checks every label color against the token JSON.
    GRAFANA 13.2.4 (no theme input): set [users] default_theme = system in k8s/monitoring/grafana-values.yaml. Colors per chart_palettes GRAFANA and C14; status by roles.ini [grafana] names. The builder (grafana/schema.py:82-84, builders.py:60,89) drops palette-classic and the 'short' default: single series 'text', series 1-2 from tokens-base.json, a required unit. Units (C4, one id per quantity): s for durations, percentunit for 0-1 ratios, bytes (IEC) and binBps for sizes and byte rates, bps for link rates, reqps or ops for rates, short for counts, none only for ids. Sentence-case titles; every panel has a description. The linter (grafana/linter.py) gets the color rule (hex only from tokens-base.json series values, names only from roles.ini [grafana]) and the unit rule (unit set and in the allowlist). Scope: the 10 own dashboards; the 5 gnetId-derived copies (k8s-views-*, nvidia-dcgm) and Node Exporter Full stay as published. #4675 owns queries, units and legends and keeps default Grafana colors until its panel children merge; the color work follows them.
    SERVICE DASHBOARD (#3655, #4621, sre-service.json): built on the Grafana layout in spacing_layout and C12: SLO row, burn-rate and budget row, golden-signals row, then the jobs table and logs panels of #4621 with the same units and names.
    START PAGE (Homepage v2.7.0, #4598 deploys it, #4600 and #4601 add content): settings.yaml color: stone (the Tailwind palette nearest the warm-neutral tokens); leave 'theme' unset so the switcher stays (a fixed theme removes it, settings.md:94-110); custom.css = the generated token CSS plus about 20 lines that map body, links, cards and status classes to token variables. Homepage switches its theme with a class on html, so the build writes one more css/variables file with selector 'html.dark' for k8s/startpage/ (configuration only; confirm the class name when #4598 deploys). Homepage's 'R G B' channel variables stay at the chosen Tailwind palette (no custom transform).
    REPORTS AND THE PROJECT REVIEW REPORT (#4679): one HTML file with the token CSS inlined (9.3 KB, 3.8 KB gzip) and the shared report.css ; charts as inline SVG pairs (light and dark) switched by the same selectors as the tokens. Outline: title; byline (version or period, commit, UTC time); a summary of 3 to 5 sentences with numbers; numbered sections with figures and tables per C3 and T1; a postmortem section (Summary, Impact with n, Timeline in UTC, Root causes and trigger, Resolution and detection, Action items, Lessons learned: what went well, what went wrong, where we got lucky) when the period has an incident; an appendix 'Method and data'. Study reports: Summary, Method, Results, Limits, Decisions. The report publishes to the content store through the interface that the content-store study chooses.
    AGENT HTML ARTIFACTS: inline the same token CSS and report.css (package data src/devops_cli/design/); fonts through Google Fonts (the artifact CSP allows only that host). A knowledge-base page tells agents how to do it.
    CHARTS IN CODE: Altair 6.3.0 with vl-convert-python 1.9.0 (optional extra 'report'). design.vega_config(mode) maps tokens to Vega-Lite config keys (no literal color or size); alt.theme.register('devops-light'/'devops-dark'); render_svg_pair(chart) writes a light and a dark SVG with text kept as text. No matplotlib until a consumer exists.
    RICH 15.0.0: get_console() loads Theme.read(src/devops_cli/design/roles.ini) and highlight=False. Roles to ANSI names (hex becomes grey code 90 on 16-color terminals, and Rich cannot detect a light background): status.ok green, status.warn yellow, status.error bold red, status.info default; sev.critical bold red, sev.high red, sev.medium yellow, sev.low default, sev.info dim; muted dim, heading bold, table.header bold, border dim, accent cyan, link underline cyan, code cyan. Each status prints a mark and a word: 'OK' with the check mark, '! Warn', 'Fail' with the ballot x, 'i Info'. One severity map replaces the 4 maps (review/report.py:123, commands/review.py:996, output/formatters/scalars.py:20, commands/scan.py:85); INFO is no longer green. Syntax theme ansi_dark (ansi_light as a setting) replaces monokai (config/defaults.py:380). NO_COLOR keeps bold and the words. Status logic stops reading emoji (tables.py:215, report.py:847, reference_extractor.py:609, pipeline.py:844 and 2009).
    TEXTUAL 8.2.8: register_theme devops-light and devops-dark from the token JSON (primary accent, warning status.warn, error status.error, success status.ok, foreground fg, background bg, surface and panel surface); default devops-dark with a setting for light (Textual cannot detect the terminal background); status dots in ui/projections.py:38-40 get a word.
    TERMINAL CHARTS: C13.
    
  7. added
    owner/agent
    on Nov 11, 2026
  8. added
    status/ready
    and removed
    status/new
    on Nov 11, 2026
  9. devops-cli-service commented on Nov 11, 2026

    @devops-cli-service
    Contributor

    Status set to Ready at fbe8984 (see proposed design in issue body).

  10. added
    status/in-progress
    and removed
    status/ready
    on Nov 11, 2026
  11. dan-petty commented on Nov 11, 2026

    @dan-petty
    OwnerAuthor

    Owner direction of 2026-11-11:

    not sure about the "at least two weeks old" rule, sometimes security updates and bugfixes need to be used within minues of their release, as long as the tooling supports that version, it is fine to update

    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.

  12. removed
    status/in-progress
    owner/agent
    on Nov 12, 2026
  13. devops-cli-service commented on Nov 12, 2026

    @devops-cli-service
    Contributor

    Live since 2026-11-12 04:08 UTC

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    effort/highpriority/p1-highsource/agenttype/featurevalue/high

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions