{
  "$schema": "https://www.digitaltableteur.com/schemas/contract-spec/1.0/contract.schema.json",
  "specVersion": "1.0",
  "name": "Grid",
  "status": "stable",
  "description": "CSS grid layout primitive with scalar and token-breakpoint responsive columns and gaps.",
  "package": {
    "name": "@digitaltableteur/react",
    "import": "import { Grid } from \"@digitaltableteur/react\";"
  },
  "props": {
    "children": {
      "type": "ReactNode",
      "optional": false,
      "description": "Grid cells (supports span on child props)."
    },
    "columns": {
      "type": "number | string",
      "optional": true,
      "description": "Column count or grid-template-columns string. Defaults to `1`."
    },
    "tabletColumns": {
      "type": "number | string",
      "optional": true,
      "description": "Columns from the tablet breakpoint (768px) up. Numeric counts render as\n`repeat(n, minmax(0, 1fr))` so cells can shrink below content width."
    },
    "desktopColumns": {
      "type": "number | string",
      "optional": true,
      "description": "Columns from the desktop breakpoint (1024px) up. Falls back to\ntabletColumns, then columns."
    },
    "wideColumns": {
      "type": "number | string",
      "optional": true,
      "description": "Columns from the wide breakpoint (1440px) up. Falls back through\ndesktopColumns, tabletColumns, columns."
    },
    "ultraColumns": {
      "type": "number | string",
      "optional": true,
      "description": "Columns from the ultra breakpoint (1920px) up. Falls back through\nwideColumns, desktopColumns, tabletColumns, columns."
    },
    "rows": {
      "type": "number | string",
      "optional": true,
      "description": "Row count or grid-template-rows string."
    },
    "gap": {
      "type": "string",
      "optional": true,
      "description": "Grid gap. Defaults to the raw value `1rem`; pass a space token such as\nvar(--space-layout-24) instead."
    },
    "tabletGap": {
      "type": "string",
      "optional": true,
      "description": "Gap from the tablet breakpoint (768px) up."
    },
    "desktopGap": {
      "type": "string",
      "optional": true,
      "description": "Gap from the desktop breakpoint (1024px) up. Falls back to tabletGap,\nthen gap."
    },
    "wideGap": {
      "type": "string",
      "optional": true,
      "description": "Gap from the wide breakpoint (1440px) up. Falls back through desktopGap,\ntabletGap, gap."
    },
    "ultraGap": {
      "type": "string",
      "optional": true,
      "description": "Gap from the ultra breakpoint (1920px) up. Falls back through wideGap,\ndesktopGap, tabletGap, gap."
    },
    "rowGap": {
      "type": "string",
      "optional": true,
      "description": "Row gap override."
    },
    "colGap": {
      "type": "string",
      "optional": true,
      "description": "Column gap override."
    },
    "align": {
      "type": "union",
      "values": [
        "inherit",
        "center",
        "flex-start",
        "flex-end",
        "stretch",
        "baseline",
        "-moz-initial",
        "initial",
        "revert",
        "revert-layer",
        "unset",
        "end",
        "self-end",
        "self-start",
        "start",
        "anchor-center",
        "normal"
      ],
      "optional": true,
      "description": "align-items. No default: when omitted Grid sets no align-items, so the CSS\ninitial value (normal) applies."
    },
    "justify": {
      "type": "union",
      "values": [
        "inherit",
        "center",
        "flex-start",
        "flex-end",
        "stretch",
        "baseline",
        "-moz-initial",
        "initial",
        "revert",
        "revert-layer",
        "unset",
        "end",
        "self-end",
        "self-start",
        "start",
        "anchor-center",
        "normal",
        "left",
        "legacy",
        "right"
      ],
      "optional": true,
      "description": "justify-items. No default: when omitted Grid sets no justify-items."
    },
    "style": {
      "type": "CSSProperties",
      "optional": true
    },
    "className": {
      "type": "string",
      "optional": true,
      "description": "Grid class names."
    }
  },
  "accessibility": {
    "criteria": [
      {
        "id": "axe-no-violations",
        "statement": "Required stories produce no axe violations at the configured severity.",
        "verification": "automated",
        "wcag": [
          "2.5.8"
        ],
        "check": "npm run test:stories:matrix:ci",
        "evidence": [
          {
            "artifact": "../../../nextjs-app/shared/components/Grid/__a11y-evidence__/layout-grid-default.dark.json",
            "sourceCommit": "930c562b591b6d9967e1e8c214899052624d9a2f",
            "capturedAt": "2026-11-03T22:42:17.191Z",
            "passed": true,
            "runner": "local-recapture"
          },
          {
            "artifact": "../../../nextjs-app/shared/components/Grid/__a11y-evidence__/layout-grid-default.json",
            "sourceCommit": "930c562b591b6d9967e1e8c214899052624d9a2f",
            "capturedAt": "2026-11-03T22:21:19.841Z",
            "passed": true,
            "runner": "local-recapture"
          },
          {
            "artifact": "../../../nextjs-app/shared/components/Grid/__a11y-evidence__/layout-grid-default.light.json",
            "sourceCommit": "930c562b591b6d9967e1e8c214899052624d9a2f",
            "capturedAt": "2026-11-03T22:31:27.297Z",
            "passed": true,
            "runner": "local-recapture"
          },
          {
            "artifact": "../../../nextjs-app/shared/components/Grid/__a11y-evidence__/layout-grid-example.dark.json",
            "sourceCommit": "930c562b591b6d9967e1e8c214899052624d9a2f",
            "capturedAt": "2026-11-03T22:42:17.753Z",
            "passed": true,
            "runner": "local-recapture"
          },
          {
            "artifact": "../../../nextjs-app/shared/components/Grid/__a11y-evidence__/layout-grid-example.json",
            "sourceCommit": "930c562b591b6d9967e1e8c214899052624d9a2f",
            "capturedAt": "2026-11-03T22:21:20.411Z",
            "passed": true,
            "runner": "local-recapture"
          },
          {
            "artifact": "../../../nextjs-app/shared/components/Grid/__a11y-evidence__/layout-grid-example.light.json",
            "sourceCommit": "930c562b591b6d9967e1e8c214899052624d9a2f",
            "capturedAt": "2026-11-03T22:31:27.878Z",
            "passed": true,
            "runner": "local-recapture"
          },
          {
            "artifact": "../../../nextjs-app/shared/components/Grid/__a11y-evidence__/layout-grid-forced-colors.dark.json",
            "sourceCommit": "930c562b591b6d9967e1e8c214899052624d9a2f",
            "capturedAt": "2026-11-03T22:42:18.123Z",
            "passed": true,
            "runner": "local-recapture"
          },
          {
            "artifact": "../../../nextjs-app/shared/components/Grid/__a11y-evidence__/layout-grid-forced-colors.json",
            "sourceCommit": "930c562b591b6d9967e1e8c214899052624d9a2f",
            "capturedAt": "2026-11-03T22:21:20.707Z",
            "passed": true,
            "runner": "local-recapture"
          },
          {
            "artifact": "../../../nextjs-app/shared/components/Grid/__a11y-evidence__/layout-grid-forced-colors.light.json",
            "sourceCommit": "930c562b591b6d9967e1e8c214899052624d9a2f",
            "capturedAt": "2026-11-03T22:31:28.210Z",
            "passed": true,
            "runner": "local-recapture"
          },
          {
            "artifact": "../../../nextjs-app/shared/components/Grid/__a11y-evidence__/layout-grid-playground.dark.json",
            "sourceCommit": "930c562b591b6d9967e1e8c214899052624d9a2f",
            "capturedAt": "2026-11-03T22:42:17.474Z",
            "passed": true,
            "runner": "local-recapture"
          },
          {
            "artifact": "../../../nextjs-app/shared/components/Grid/__a11y-evidence__/layout-grid-playground.json",
            "sourceCommit": "930c562b591b6d9967e1e8c214899052624d9a2f",
            "capturedAt": "2026-11-03T22:21:20.123Z",
            "passed": true,
            "runner": "local-recapture"
          },
          {
            "artifact": "../../../nextjs-app/shared/components/Grid/__a11y-evidence__/layout-grid-playground.light.json",
            "sourceCommit": "930c562b591b6d9967e1e8c214899052624d9a2f",
            "capturedAt": "2026-11-03T22:31:27.588Z",
            "passed": true,
            "runner": "local-recapture"
          }
        ]
      },
      {
        "id": "accessibility-tree",
        "statement": "The accessibility tree (role, name, state) matches the committed snapshot for every required story.",
        "verification": "automated",
        "wcag": [
          "1.3.1",
          "4.1.2"
        ],
        "check": "npm run test:stories:matrix:ci",
        "evidence": [
          {
            "artifact": "../../../nextjs-app/shared/components/Grid/__a11y-evidence__/layout-grid-default.dark.json",
            "sourceCommit": "930c562b591b6d9967e1e8c214899052624d9a2f",
            "capturedAt": "2026-11-03T22:42:17.191Z",
            "passed": true,
            "runner": "local-recapture"
          },
          {
            "artifact": "../../../nextjs-app/shared/components/Grid/__a11y-evidence__/layout-grid-default.forced-colors.json",
            "sourceCommit": "930c562b591b6d9967e1e8c214899052624d9a2f",
            "capturedAt": "2026-11-03T22:50:33.057Z",
            "passed": true,
            "runner": "local-recapture"
          },
          {
            "artifact": "../../../nextjs-app/shared/components/Grid/__a11y-evidence__/layout-grid-default.json",
            "sourceCommit": "930c562b591b6d9967e1e8c214899052624d9a2f",
            "capturedAt": "2026-11-03T22:21:19.841Z",
            "passed": true,
            "runner": "local-recapture"
          },
          {
            "artifact": "../../../nextjs-app/shared/components/Grid/__a11y-evidence__/layout-grid-default.light.json",
            "sourceCommit": "930c562b591b6d9967e1e8c214899052624d9a2f",
            "capturedAt": "2026-11-03T22:31:27.297Z",
            "passed": true,
            "runner": "local-recapture"
          },
          {
            "artifact": "../../../nextjs-app/shared/components/Grid/__a11y-evidence__/layout-grid-example.dark.json",
            "sourceCommit": "930c562b591b6d9967e1e8c214899052624d9a2f",
            "capturedAt": "2026-11-03T22:42:17.753Z",
            "passed": true,
            "runner": "local-recapture"
          },
          {
            "artifact": "../../../nextjs-app/shared/components/Grid/__a11y-evidence__/layout-grid-example.forced-colors.json",
            "sourceCommit": "930c562b591b6d9967e1e8c214899052624d9a2f",
            "capturedAt": "2026-11-03T22:50:33.596Z",
            "passed": true,
            "runner": "local-recapture"
          },
          {
            "artifact": "../../../nextjs-app/shared/components/Grid/__a11y-evidence__/layout-grid-example.json",
            "sourceCommit": "930c562b591b6d9967e1e8c214899052624d9a2f",
            "capturedAt": "2026-11-03T22:21:20.411Z",
            "passed": true,
            "runner": "local-recapture"
          },
          {
            "artifact": "../../../nextjs-app/shared/components/Grid/__a11y-evidence__/layout-grid-example.light.json",
            "sourceCommit": "930c562b591b6d9967e1e8c214899052624d9a2f",
            "capturedAt": "2026-11-03T22:31:27.878Z",
            "passed": true,
            "runner": "local-recapture"
          },
          {
            "artifact": "../../../nextjs-app/shared/components/Grid/__a11y-evidence__/layout-grid-forced-colors.dark.json",
            "sourceCommit": "930c562b591b6d9967e1e8c214899052624d9a2f",
            "capturedAt": "2026-11-03T22:42:18.123Z",
            "passed": true,
            "runner": "local-recapture"
          },
          {
            "artifact": "../../../nextjs-app/shared/components/Grid/__a11y-evidence__/layout-grid-forced-colors.forced-colors.json",
            "sourceCommit": "930c562b591b6d9967e1e8c214899052624d9a2f",
            "capturedAt": "2026-11-03T22:50:33.905Z",
            "passed": true,
            "runner": "local-recapture"
          },
          {
            "artifact": "../../../nextjs-app/shared/components/Grid/__a11y-evidence__/layout-grid-forced-colors.json",
            "sourceCommit": "930c562b591b6d9967e1e8c214899052624d9a2f",
            "capturedAt": "2026-11-03T22:21:20.707Z",
            "passed": true,
            "runner": "local-recapture"
          },
          {
            "artifact": "../../../nextjs-app/shared/components/Grid/__a11y-evidence__/layout-grid-forced-colors.light.json",
            "sourceCommit": "930c562b591b6d9967e1e8c214899052624d9a2f",
            "capturedAt": "2026-11-03T22:31:28.210Z",
            "passed": true,
            "runner": "local-recapture"
          },
          {
            "artifact": "../../../nextjs-app/shared/components/Grid/__a11y-evidence__/layout-grid-playground.dark.json",
            "sourceCommit": "930c562b591b6d9967e1e8c214899052624d9a2f",
            "capturedAt": "2026-11-03T22:42:17.474Z",
            "passed": true,
            "runner": "local-recapture"
          },
          {
            "artifact": "../../../nextjs-app/shared/components/Grid/__a11y-evidence__/layout-grid-playground.forced-colors.json",
            "sourceCommit": "930c562b591b6d9967e1e8c214899052624d9a2f",
            "capturedAt": "2026-11-03T22:50:33.335Z",
            "passed": true,
            "runner": "local-recapture"
          },
          {
            "artifact": "../../../nextjs-app/shared/components/Grid/__a11y-evidence__/layout-grid-playground.json",
            "sourceCommit": "930c562b591b6d9967e1e8c214899052624d9a2f",
            "capturedAt": "2026-11-03T22:21:20.123Z",
            "passed": true,
            "runner": "local-recapture"
          },
          {
            "artifact": "../../../nextjs-app/shared/components/Grid/__a11y-evidence__/layout-grid-playground.light.json",
            "sourceCommit": "930c562b591b6d9967e1e8c214899052624d9a2f",
            "capturedAt": "2026-11-03T22:31:27.588Z",
            "passed": true,
            "runner": "local-recapture"
          }
        ]
      },
      {
        "id": "forced-colors-real-browser",
        "statement": "The component remains legible and operable under a real browser forced-colors: active pass.",
        "verification": "automated",
        "check": "npm run test:stories:hc",
        "evidence": [
          {
            "artifact": "../../../nextjs-app/shared/components/Grid/__a11y-evidence__/layout-grid-default.forced-colors.json",
            "sourceCommit": "930c562b591b6d9967e1e8c214899052624d9a2f",
            "capturedAt": "2026-11-03T22:50:33.057Z",
            "passed": true,
            "runner": "local-recapture"
          },
          {
            "artifact": "../../../nextjs-app/shared/components/Grid/__a11y-evidence__/layout-grid-example.forced-colors.json",
            "sourceCommit": "930c562b591b6d9967e1e8c214899052624d9a2f",
            "capturedAt": "2026-11-03T22:50:33.596Z",
            "passed": true,
            "runner": "local-recapture"
          },
          {
            "artifact": "../../../nextjs-app/shared/components/Grid/__a11y-evidence__/layout-grid-forced-colors.forced-colors.json",
            "sourceCommit": "930c562b591b6d9967e1e8c214899052624d9a2f",
            "capturedAt": "2026-11-03T22:50:33.905Z",
            "passed": true,
            "runner": "local-recapture"
          },
          {
            "artifact": "../../../nextjs-app/shared/components/Grid/__a11y-evidence__/layout-grid-playground.forced-colors.json",
            "sourceCommit": "930c562b591b6d9967e1e8c214899052624d9a2f",
            "capturedAt": "2026-11-03T22:50:33.335Z",
            "passed": true,
            "runner": "local-recapture"
          }
        ]
      },
      {
        "id": "human-a11y-review",
        "statement": "A human completed an end-to-end accessibility review of this component.",
        "verification": "manual",
        "note": "2026-05-28 — Breadth beta port: keyboard/ARIA contract reviewed, ForcedColors story added, Storybook axe gate (parameters.a11y.test: error). 2026-07-05 (beta→stable) — re-verified independently: axe-clean across all 7 stories; AT snapshots refreshed compare-clean in all four modes (plain/light/dark/forced-colors); Controls 9/9 operable + 0 inert. Pure two-dimensional layout primitive with no color surface of its own (tokens.colors empty), so light/dark is a structural no-op. The GridProps `[key: string]: any` passthrough is the intentional, documented escape hatch for arbitrary grid CSS props — kept as-is. 2026-07-10 — Figma component built (Atoms, node 1177-1654, parity-audit batch B2a): contract axes as variants with DT variable bindings.",
        "reviewedAt": "2026-11-04"
      }
    ]
  },
  "governance": {
    "owner": "design-system",
    "lastReviewed": "2026-11-04",
    "note": "Reviewed by Petri Lahdelma; prepared by Claude from a code review on 2026-11-03"
  },
  "source": [
    "../../../nextjs-app/shared/components/Grid/Grid.module.css",
    "../../../nextjs-app/shared/components/Grid/Grid.tsx"
  ]
}
