{
  "id": "code",
  "name": "Code",
  "level": "atom",
  "status": "stable",
  "purpose": "A name from code inside a sentence: a token, a prop, an API.",
  "description": "Inline code reference. Renders a `<code>` element with the design-system mono font and a subtle muted-surface chip background. For multi-line code blocks, wrap in `<pre>` (Code itself stays inline).",
  "role": "content",
  "import": "@rrios-forge/ui/atoms/code",
  "exports": [
    "Code",
    "codeVariants",
    "CODE_SIZES",
    "CODE_TONES"
  ],
  "source": "packages/ui/src/atoms/code",
  "axes": [
    {
      "axis": "size",
      "part": null,
      "values": [
        "sm",
        "md"
      ],
      "default": "sm",
      "meaning": "Ergonomic scale, in three families (control, text, container)."
    },
    {
      "axis": "tone",
      "part": null,
      "values": [
        "neutral",
        "muted"
      ],
      "default": "neutral",
      "meaning": "Which semantic colour family the element speaks in."
    }
  ],
  "needs": [
    {
      "need": "Text / heading / helper / code / shortcut",
      "answer": "`Text` / `Heading` / `Description` / `Code` / `Kbd`"
    }
  ],
  "patterns": [],
  "a11yExceptions": [],
  "decisions": [
    {
      "id": "ADR-046",
      "title": "Markdown is painted with atoms, and apps fill its slots"
    }
  ],
  "stories": [
    {
      "name": "Playground",
      "id": "components-atoms-code--playground",
      "interaction": false,
      "snapshots": [
        "dark",
        "light"
      ],
      "skipsSnapshot": false,
      "docs": "/?path=/story/components-atoms-code--playground",
      "frame": "/iframe.html?id=components-atoms-code--playground&viewMode=story"
    },
    {
      "name": "Sizes",
      "id": "components-atoms-code--sizes",
      "interaction": false,
      "snapshots": [
        "dark",
        "light"
      ],
      "skipsSnapshot": false,
      "docs": "/?path=/story/components-atoms-code--sizes",
      "frame": "/iframe.html?id=components-atoms-code--sizes&viewMode=story"
    },
    {
      "name": "Tones",
      "id": "components-atoms-code--tones",
      "interaction": false,
      "snapshots": [
        "dark",
        "light"
      ],
      "skipsSnapshot": false,
      "docs": "/?path=/story/components-atoms-code--tones",
      "frame": "/iframe.html?id=components-atoms-code--tones&viewMode=story"
    },
    {
      "name": "In context",
      "id": "components-atoms-code--in-context",
      "interaction": false,
      "snapshots": [
        "dark",
        "light"
      ],
      "skipsSnapshot": false,
      "docs": "/?path=/story/components-atoms-code--in-context",
      "frame": "/iframe.html?id=components-atoms-code--in-context&viewMode=story"
    }
  ],
  "storyFile": "tooling/storybook/stories/components/atoms/code.stories.tsx"
}
