{
  "format": "shadcn-semantic-traceability/1",
  "sourceObservations": "figma-observations.json",
  "nativeSpecimens": "source-specimens.json",
  "sourceSha256": "ccbe95f20f501389a322d0f6de2c90ca79126a33355f1b31e2b1dcc7c8e2b3d5",
  "parts": {
    "root": {
      "declaration": "CodeBlock",
      "selector": "[data-slot=\"code-block\"]",
      "ownership": "actual pinned wrapper"
    },
    "header": {
      "declaration": "CodeBlockHeader",
      "selector": "[data-slot=\"code-block-header\"]",
      "ownership": "actual pinned wrapper"
    },
    "title": {
      "declaration": "CodeBlockTitle",
      "selector": "[data-slot=\"code-block-title\"]",
      "ownership": "actual pinned wrapper"
    },
    "actions": {
      "declaration": "CodeBlockActions",
      "selector": "[data-slot=\"code-block-actions\"]",
      "ownership": "actual pinned wrapper"
    },
    "copy": {
      "declaration": "CodeBlockCopyButton",
      "selector": "[data-slot=\"code-block-copy-button\"]",
      "ownership": "actual pinned wrapper"
    },
    "content": {
      "declaration": "CodeBlockContent",
      "selector": "[data-slot=\"code-block-content\"]",
      "ownership": "actual pinned wrapper"
    },
    "code": {
      "declaration": "CodeBlockContent",
      "selector": "[data-slot=\"code-block-code\"]",
      "ownership": "actual pinned wrapper"
    },
    "line": {
      "declaration": "CodeBlockLine",
      "selector": "[data-slot=\"code-block-line\"]",
      "ownership": "actual pinned wrapper"
    },
    "line-content": {
      "declaration": "CodeBlockLine",
      "selector": "[data-slot=\"code-block-line-content\"]",
      "ownership": "actual pinned wrapper"
    },
    "footer": {
      "declaration": "CodeBlockFooter",
      "selector": "[data-slot=\"code-block-footer\"]",
      "ownership": "actual pinned wrapper"
    }
  },
  "measurements": [
    {
      "sourceNodeId": "2718:635",
      "property": "cornerRadius.0",
      "value": 18,
      "semanticRole": "radius"
    },
    {
      "sourceNodeId": "2718:665",
      "property": "layout.padding.0",
      "value": 16,
      "semanticRole": "padding"
    },
    {
      "sourceNodeId": "2716:518",
      "property": "layout.gap",
      "value": 8,
      "semanticRole": "header gap"
    },
    {
      "sourceNodeId": "2717:567",
      "property": "text",
      "value": {
        "fontFamily": "Geist Mono",
        "fontStyle": "Medium",
        "fontSize": 14,
        "lineHeight": 20,
        "autoResize": "WIDTH_AND_HEIGHT"
      },
      "semanticRole": "mono typography"
    },
    {
      "sourceNodeId": "2718:576",
      "property": "fills",
      "value": [
        {
          "type": "SOLID",
          "opacity": 0.5,
          "color": "#E4E4E7"
        }
      ],
      "semanticRole": "unbound highlight surface"
    }
  ],
  "retiredLeadingProvenance": {
    "uxBasis": "Native source page 2712:2 (Code Block), observed anatomy and examples."
  },
  "specimenMappings": [
    {
      "sourceNodeId": "2718:577",
      "sourcePartId": "2718:578",
      "sourceName": "Code block line / State=Default, Dir=LTR",
      "semanticParts": [
        "root",
        "header",
        "title",
        "actions",
        "copy",
        "content",
        "code",
        "line",
        "line-content",
        "footer"
      ],
      "canonicalFixtures": [
        "numbered",
        "plain",
        "wrapped",
        "small",
        "destructive",
        "disabled-copy",
        "floating-actions",
        "floating-hover",
        "floating-focus",
        "pre-focus",
        "dark-host",
        "dark-root"
      ],
      "decision": "Native depiction is evidence; source properties do not become runtime node selectors or an invented public state prop."
    },
    {
      "sourceNodeId": "2718:579",
      "sourcePartId": "2718:578",
      "sourceName": "Code block line / State=Default, Dir=RTL",
      "semanticParts": [
        "root",
        "header",
        "title",
        "actions",
        "copy",
        "content",
        "code",
        "line",
        "line-content",
        "footer"
      ],
      "canonicalFixtures": [
        "numbered",
        "plain",
        "wrapped",
        "small",
        "destructive",
        "disabled-copy",
        "floating-actions",
        "floating-hover",
        "floating-focus",
        "pre-focus",
        "dark-host",
        "dark-root"
      ],
      "decision": "Native depiction is evidence; source properties do not become runtime node selectors or an invented public state prop."
    },
    {
      "sourceNodeId": "2718:576",
      "sourcePartId": "2718:578",
      "sourceName": "Code block line / State=Highlighted, Dir=LTR",
      "semanticParts": [
        "root",
        "header",
        "title",
        "actions",
        "copy",
        "content",
        "code",
        "line",
        "line-content",
        "footer"
      ],
      "canonicalFixtures": [
        "numbered",
        "plain",
        "wrapped",
        "small",
        "destructive",
        "disabled-copy",
        "floating-actions",
        "floating-hover",
        "floating-focus",
        "pre-focus",
        "dark-host",
        "dark-root"
      ],
      "decision": "Native depiction is evidence; source properties do not become runtime node selectors or an invented public state prop."
    },
    {
      "sourceNodeId": "2718:584",
      "sourcePartId": "2718:578",
      "sourceName": "Code block line / State=Highlighted, Dir=RTL",
      "semanticParts": [
        "root",
        "header",
        "title",
        "actions",
        "copy",
        "content",
        "code",
        "line",
        "line-content",
        "footer"
      ],
      "canonicalFixtures": [
        "numbered",
        "plain",
        "wrapped",
        "small",
        "destructive",
        "disabled-copy",
        "floating-actions",
        "floating-hover",
        "floating-focus",
        "pre-focus",
        "dark-host",
        "dark-root"
      ],
      "decision": "Native depiction is evidence; source properties do not become runtime node selectors or an invented public state prop."
    },
    {
      "sourceNodeId": "2716:518",
      "sourcePartId": "2727:3145",
      "sourceName": "Code block header / Dir=LTR",
      "semanticParts": [
        "root",
        "header",
        "title",
        "actions",
        "copy",
        "content",
        "code",
        "line",
        "line-content",
        "footer"
      ],
      "canonicalFixtures": [
        "numbered",
        "plain",
        "wrapped",
        "small",
        "destructive",
        "disabled-copy",
        "floating-actions",
        "floating-hover",
        "floating-focus",
        "pre-focus",
        "dark-host",
        "dark-root"
      ],
      "decision": "Native depiction is evidence; source properties do not become runtime node selectors or an invented public state prop."
    },
    {
      "sourceNodeId": "2727:3146",
      "sourcePartId": "2727:3145",
      "sourceName": "Code block header / Dir=RTL",
      "semanticParts": [
        "root",
        "header",
        "title",
        "actions",
        "copy",
        "content",
        "code",
        "line",
        "line-content",
        "footer"
      ],
      "canonicalFixtures": [
        "numbered",
        "plain",
        "wrapped",
        "small",
        "destructive",
        "disabled-copy",
        "floating-actions",
        "floating-hover",
        "floating-focus",
        "pre-focus",
        "dark-host",
        "dark-root"
      ],
      "decision": "Native depiction is evidence; source properties do not become runtime node selectors or an invented public state prop."
    },
    {
      "sourceNodeId": "2727:2381",
      "sourcePartId": "2727:3208",
      "sourceName": "Code block footer / Dir=LTR",
      "semanticParts": [
        "root",
        "header",
        "title",
        "actions",
        "copy",
        "content",
        "code",
        "line",
        "line-content",
        "footer"
      ],
      "canonicalFixtures": [
        "numbered",
        "plain",
        "wrapped",
        "small",
        "destructive",
        "disabled-copy",
        "floating-actions",
        "floating-hover",
        "floating-focus",
        "pre-focus",
        "dark-host",
        "dark-root"
      ],
      "decision": "Native depiction is evidence; source properties do not become runtime node selectors or an invented public state prop."
    },
    {
      "sourceNodeId": "2727:3209",
      "sourcePartId": "2727:3208",
      "sourceName": "Code block footer / Dir=RTL",
      "semanticParts": [
        "root",
        "header",
        "title",
        "actions",
        "copy",
        "content",
        "code",
        "line",
        "line-content",
        "footer"
      ],
      "canonicalFixtures": [
        "numbered",
        "plain",
        "wrapped",
        "small",
        "destructive",
        "disabled-copy",
        "floating-actions",
        "floating-hover",
        "floating-focus",
        "pre-focus",
        "dark-host",
        "dark-root"
      ],
      "decision": "Native depiction is evidence; source properties do not become runtime node selectors or an invented public state prop."
    }
  ],
  "decisions": [
    "The actual source pre/code/line hierarchy and public wrap/lineNumbers/startLine semantics lead the recipe. Native 18px surface corners,16px section/content insets and 8px header gap remain semantic metrics; source 448px example widths are never fixed. Actual native text runs and line-number text specify Geist Mono Medium 14/20, despite a22.75px artwork row frame; the pinned supplied font follows those text values. Compact 12/16 and 28rem maximum scroll height are explicit reference decisions. Native unbound highlighted zinc at50% is retained for light mode, with an explicit 10% light foreground tint in dark mode for readable text; added-line colors and destructive inset stroke are explicit visual decisions because pinned wrapper classes define the variants without these scalar values. The visible +/− text and legend carry diff meaning independently of color. Code content remains LTR inside RTL hosts. Counter-only line numbers have empty speech alternative where supported, and Copy always uses the caller value rather than rendered numbers or diff DOM. Headerless actions reveal on hover, focus-within and coarse pointers; the real native Button remains independently reachable. Copy success,2000ms reset and swallowed rejection remain actual source behavior; persistent selection instructions provide the concrete fallback. Root never executes code or adds a syntax highlighter.",
    "Semantic token scalar values are meaningful reusable metrics, never coordinate-keyed specimen dimensions. Widths in native specimen grids remain evidence unless explicitly adopted as a domain layout constraint."
  ]
}
