{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "ghost-typeset",
  "type": "registry:style",
  "title": "Ghost Typeset",
  "description": "The portable shadcn-aligned prose contract for documentation and long-form content.",
  "registryDependencies": [
    "https://ghost-ui.com/r/ghost-tokens.json"
  ],
  "files": [
    {
      "path": "src/components/ui/typeset.css",
      "type": "registry:file",
      "target": "@ui/typeset.css",
      "content": "/* Ghost UI Typeset: one owned, shadcn-aligned reading system for HTML/MDX. */\n\n.typeset {\n  --typeset-font-body: var(--font-sans);\n  --typeset-font-heading: var(--font-sans);\n  --typeset-font-mono: var(--font-mono);\n  --typeset-size: var(--font-size-base);\n  --typeset-leading: var(--leading-relaxed);\n  --typeset-flow: 1.25em;\n  color: var(--foreground);\n  font-family: var(--typeset-font-body);\n  font-size: var(--typeset-size);\n  line-height: var(--typeset-leading);\n}\n\n/* Spacing flows forward only. New streamed blocks never restyle earlier ones. */\n.typeset > * + * { margin-block-start: var(--typeset-flow); }\n.typeset :where(h1, h2, h3, h4, h5, h6) {\n  color: var(--foreground);\n  font-family: var(--typeset-font-heading);\n  font-weight: var(--font-weight-regular);\n  letter-spacing: var(--tracking-tighter);\n  line-height: var(--leading-tight);\n}\n.typeset :where(h1) { font-size: clamp(2rem, 4vw, 3rem); }\n.typeset :where(h2) { font-size: clamp(1.4rem, 3vw, 2rem); }\n.typeset :where(h3) { font-size: var(--font-size-xl); }\n.typeset :where(h4) { font-size: var(--font-size-lg); }\n.typeset :where(h5, h6) { font-size: var(--font-size-base); }\n.typeset :where(p, ul, ol, blockquote, pre:not(.ui-syntax-code), table) { max-width: 72ch; }\n.typeset :where(ul, ol) { padding-inline-start: 1.25rem; }\n.typeset :where(li + li) { margin-block-start: 0.35em; }\n.typeset :where(a:not(.ui-link)) { color: var(--link); text-underline-offset: 3px; }\n.typeset :where(code, kbd, samp):not(:where(.ui-syntax-code *)) { font-family: var(--typeset-font-mono); font-size: calc(1em * var(--font-mono-scale)); }\n.typeset :where(code):not(:where(.ui-syntax-code *)) { font-size: var(--font-size-mono-inline); }\n.typeset :where(pre code, pre kbd, pre samp):not(:where(.ui-syntax-code *)) { font-size: inherit; }\n.typeset :where(:not(pre) > code):not(:where(.ui-syntax-code *)) {\n  padding: 0.12em 0.35em;\n  border: 1px solid var(--border);\n  border-radius: var(--radius-sm);\n  background: var(--muted);\n}\n.typeset :where(blockquote) {\n  margin-inline: 0;\n  padding: 0 1rem;\n  border-inline-start: 1px solid var(--ring);\n  color: var(--muted-foreground);\n}\n.typeset :where(table) { width: 100%; border-collapse: collapse; font-size: var(--font-size-base); }\n.typeset :where(th, td) {\n  padding: 0.7rem 0.75rem;\n  border-bottom: 1px solid var(--border);\n  text-align: start;\n  vertical-align: top;\n}\n.typeset :where(th) { font-weight: var(--font-weight-regular); }\n.typeset :where(pre:not(.ui-syntax-code)) {\n  overflow-x: auto;\n  padding: 1rem;\n  border: 1px solid var(--border);\n  border-radius: var(--radius-lg);\n  background: var(--secondary);\n}\n\n/* Components can opt out, including their complete subtree. */\n.typeset :where(.not-typeset, [data-not-typeset]) {\n  font-family: initial;\n  font-size: initial;\n  line-height: initial;\n}\n.typeset :where(.not-typeset, [data-not-typeset]) :where(h1, h2, h3, h4, h5, h6, p, ul, ol, blockquote, pre, table) {\n  max-width: none;\n}\n\n/* Wide tables stay real tables and scroll without changing the reading measure. */\n.typeset-scroll { max-width: 100%; overflow-x: auto; }\n.typeset-scroll :where(table) { min-width: 100%; }\n\n.typeset-docs :where(ul, ol):not(:where(.not-typeset *, [data-not-typeset] *)) { color: var(--muted-foreground); }\n\n.typeset-docs {\n  --typeset-size: var(--font-size-lg);\n  --typeset-leading: 1.7;\n  --typeset-flow: 1.35em;\n}\n.typeset-docs :where(h1, h2, h3, h4, h5, h6):not(:where(.not-typeset *, [data-not-typeset] *)) { font-weight: var(--font-weight-regular); }\n.typeset-docs :where(h1):not(:where(.not-typeset *, [data-not-typeset] *)) { font-size: max(var(--typeset-size), var(--font-size-2xl)); }\n.typeset-docs :where(h2):not(:where(.not-typeset *, [data-not-typeset] *)) { font-size: max(var(--typeset-size), calc((var(--font-size-xl) + var(--font-size-2xl)) / 2)); }\n.typeset-docs :where(h3):not(:where(.not-typeset *, [data-not-typeset] *)) { font-size: max(var(--typeset-size), var(--font-size-xl)); }\n.typeset-docs :where(h4):not(:where(.not-typeset *, [data-not-typeset] *)) { font-size: max(var(--typeset-size), calc((var(--font-size-lg) + var(--font-size-xl)) / 2)); }\n.typeset-docs :where(h5, h6):not(:where(.not-typeset *, [data-not-typeset] *)) { font-size: var(--typeset-size); }\n\n/* Semantic emphasis keeps its meaning without making ordinary prose bold. */\n.typeset :where(strong, b):not(:where(.not-typeset *, [data-not-typeset] *)) { font-weight: inherit; color: var(--foreground); }\n"
    }
  ]
}
