{
  "$schema": "https://www.digitaltableteur.com/schemas/contract-spec/1.0/contract.schema.json",
  "specVersion": "1.0",
  "name": "Icon",
  "status": "stable",
  "description": "Phosphor icon wrapper with size, weight, and motion affordances.",
  "package": {
    "name": "@digitaltableteur/react",
    "import": "import { Icon } from \"@digitaltableteur/react\";"
  },
  "props": {
    "name": {
      "type": "string",
      "optional": false,
      "description": "Phosphor icon name. Accepts PascalCase (e.g., \"ShareNetwork\") or slug (\"share-network\")."
    },
    "weight": {
      "type": "union",
      "values": [
        "thin",
        "light",
        "regular",
        "bold",
        "fill",
        "duotone"
      ],
      "optional": true,
      "description": "Optional Phosphor weight override."
    },
    "legacyStyle": {
      "type": "union",
      "values": [
        "thin",
        "light",
        "regular",
        "duotone",
        "solid",
        "brands"
      ],
      "optional": true,
      "description": "Legacy FontAwesome-style weight string kept for backward compatibility."
    },
    "size": {
      "type": "union",
      "values": [
        "sm",
        "md",
        "lg",
        "xl",
        "xs",
        "2xs",
        "2xl"
      ],
      "optional": true,
      "description": "A named size from the ladder (2xs to 2xl) or a number of pixels. The type\nalso accepts a number; numeric sizes render at that pixel size without the\ntokenized size class."
    },
    "color": {
      "type": "string",
      "optional": true,
      "description": "SVG color override; defaults to the inherited current color."
    },
    "rotate": {
      "type": "0 | 90 | 180 | 270",
      "optional": true,
      "description": "Quarter-turn rotation applied to the glyph."
    },
    "flip": {
      "type": "union",
      "values": [
        "horizontal",
        "vertical",
        "both"
      ],
      "optional": true,
      "description": "Mirror the glyph along one or both axes."
    },
    "spin": {
      "type": "boolean",
      "optional": true,
      "description": "Apply the continuous rotation animation."
    },
    "pulse": {
      "type": "boolean",
      "optional": true,
      "description": "Apply the pulse animation when spin is not active."
    },
    "mirrored": {
      "type": "boolean",
      "optional": true,
      "description": "Use Phosphor's horizontal mirroring."
    },
    "ariaLabel": {
      "type": "string",
      "optional": true,
      "description": "Accessible name for a meaningful icon."
    },
    "decorative": {
      "type": "boolean",
      "optional": true,
      "description": "Hide the icon from assistive technology. Defaults to true without ariaLabel; when true it wins over ariaLabel, which is then dropped."
    }
  },
  "accessibility": {
    "criteria": [
      {
        "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/Icon/__a11y-evidence__/content-icon-default.dark.json",
            "sourceCommit": "930c562b591b6d9967e1e8c214899052624d9a2f",
            "capturedAt": "2026-11-03T22:38:58.930Z",
            "passed": true,
            "runner": "local-recapture"
          },
          {
            "artifact": "../../../nextjs-app/shared/components/Icon/__a11y-evidence__/content-icon-default.forced-colors.json",
            "sourceCommit": "930c562b591b6d9967e1e8c214899052624d9a2f",
            "capturedAt": "2026-11-03T22:47:40.098Z",
            "passed": true,
            "runner": "local-recapture"
          },
          {
            "artifact": "../../../nextjs-app/shared/components/Icon/__a11y-evidence__/content-icon-default.json",
            "sourceCommit": "930c562b591b6d9967e1e8c214899052624d9a2f",
            "capturedAt": "2026-11-03T22:20:00.879Z",
            "passed": true,
            "runner": "local-recapture"
          },
          {
            "artifact": "../../../nextjs-app/shared/components/Icon/__a11y-evidence__/content-icon-default.light.json",
            "sourceCommit": "930c562b591b6d9967e1e8c214899052624d9a2f",
            "capturedAt": "2026-11-03T22:29:40.421Z",
            "passed": true,
            "runner": "local-recapture"
          },
          {
            "artifact": "../../../nextjs-app/shared/components/Icon/__a11y-evidence__/content-icon-example.dark.json",
            "sourceCommit": "930c562b591b6d9967e1e8c214899052624d9a2f",
            "capturedAt": "2026-11-03T22:38:58.963Z",
            "passed": true,
            "runner": "local-recapture"
          },
          {
            "artifact": "../../../nextjs-app/shared/components/Icon/__a11y-evidence__/content-icon-example.forced-colors.json",
            "sourceCommit": "930c562b591b6d9967e1e8c214899052624d9a2f",
            "capturedAt": "2026-11-03T22:47:40.124Z",
            "passed": true,
            "runner": "local-recapture"
          },
          {
            "artifact": "../../../nextjs-app/shared/components/Icon/__a11y-evidence__/content-icon-example.json",
            "sourceCommit": "930c562b591b6d9967e1e8c214899052624d9a2f",
            "capturedAt": "2026-11-03T22:20:00.921Z",
            "passed": true,
            "runner": "local-recapture"
          },
          {
            "artifact": "../../../nextjs-app/shared/components/Icon/__a11y-evidence__/content-icon-example.light.json",
            "sourceCommit": "930c562b591b6d9967e1e8c214899052624d9a2f",
            "capturedAt": "2026-11-03T22:29:40.472Z",
            "passed": true,
            "runner": "local-recapture"
          },
          {
            "artifact": "../../../nextjs-app/shared/components/Icon/__a11y-evidence__/content-icon-forced-colors.dark.json",
            "sourceCommit": "930c562b591b6d9967e1e8c214899052624d9a2f",
            "capturedAt": "2026-11-03T22:38:59.431Z",
            "passed": true,
            "runner": "local-recapture"
          },
          {
            "artifact": "../../../nextjs-app/shared/components/Icon/__a11y-evidence__/content-icon-forced-colors.forced-colors.json",
            "sourceCommit": "930c562b591b6d9967e1e8c214899052624d9a2f",
            "capturedAt": "2026-11-03T22:47:40.472Z",
            "passed": true,
            "runner": "local-recapture"
          },
          {
            "artifact": "../../../nextjs-app/shared/components/Icon/__a11y-evidence__/content-icon-forced-colors.json",
            "sourceCommit": "930c562b591b6d9967e1e8c214899052624d9a2f",
            "capturedAt": "2026-11-03T22:20:01.428Z",
            "passed": true,
            "runner": "local-recapture"
          },
          {
            "artifact": "../../../nextjs-app/shared/components/Icon/__a11y-evidence__/content-icon-forced-colors.light.json",
            "sourceCommit": "930c562b591b6d9967e1e8c214899052624d9a2f",
            "capturedAt": "2026-11-03T22:29:41.206Z",
            "passed": true,
            "runner": "local-recapture"
          },
          {
            "artifact": "../../../nextjs-app/shared/components/Icon/__a11y-evidence__/content-icon-playground.dark.json",
            "sourceCommit": "930c562b591b6d9967e1e8c214899052624d9a2f",
            "capturedAt": "2026-11-03T22:38:58.905Z",
            "passed": true,
            "runner": "local-recapture"
          },
          {
            "artifact": "../../../nextjs-app/shared/components/Icon/__a11y-evidence__/content-icon-playground.forced-colors.json",
            "sourceCommit": "930c562b591b6d9967e1e8c214899052624d9a2f",
            "capturedAt": "2026-11-03T22:47:40.054Z",
            "passed": true,
            "runner": "local-recapture"
          },
          {
            "artifact": "../../../nextjs-app/shared/components/Icon/__a11y-evidence__/content-icon-playground.json",
            "sourceCommit": "930c562b591b6d9967e1e8c214899052624d9a2f",
            "capturedAt": "2026-11-03T22:20:00.852Z",
            "passed": true,
            "runner": "local-recapture"
          },
          {
            "artifact": "../../../nextjs-app/shared/components/Icon/__a11y-evidence__/content-icon-playground.light.json",
            "sourceCommit": "930c562b591b6d9967e1e8c214899052624d9a2f",
            "capturedAt": "2026-11-03T22:29:40.368Z",
            "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/Icon/__a11y-evidence__/content-icon-forced-colors.forced-colors.json",
            "sourceCommit": "930c562b591b6d9967e1e8c214899052624d9a2f",
            "capturedAt": "2026-11-03T22:47:40.472Z",
            "passed": true,
            "runner": "local-recapture"
          }
        ]
      },
      {
        "id": "aria-requirements",
        "statement": "Documented ARIA roles, states, and properties are present on the rendered output.",
        "verification": "unverified",
        "wcag": [
          "4.1.2"
        ],
        "note": "No exportable evidence record for this check; re-run the check to capture one."
      },
      {
        "id": "human-a11y-review",
        "statement": "A human completed an end-to-end accessibility review of this component.",
        "verification": "manual",
        "note": "2026-05-26 code review 2026-07-10 — Figma component built (Atoms, node 1176-1658, 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/Icon/Icon.module.css",
    "../../../nextjs-app/shared/components/Icon/Icon.tsx"
  ]
}
