{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "interlace-foundation",
  "type": "registry:style",
  "title": "Interlace Foundation",
  "description": "@interlace/ui — opt-in page-level styling: Inter and JetBrains Mono on font-sans / font-mono, the preflight (body colours, WCAG 2.2 focus ring, media reset, scrollbars), and the fumadocs colour bridge. Restyles the host app by design.",
  "author": "ofri-peretz <https://github.com/ofri-peretz>",
  "categories": [
    "foundation",
    "theme"
  ],
  "dependencies": [],
  "registryDependencies": [
    "https://ds.interlace.tools/r/interlace-base.json"
  ],
  "files": [
    {
      "path": "registry/interlace-ui/styles/index.css",
      "target": "styles/interlace/index.css",
      "type": "registry:style",
      "content": "/*\n * @interlace/ui — the full CSS contract, as Interlace's own apps use it.\n *\n *   @import \"tailwindcss\";\n *   @import \"@interlace/ui/styles/index.css\";\n *\n * base.css (brand, semantics, structure: additive, what every component\n * needs) plus layer 4, the opt-in page styling. In the registry this is the\n * `interlace-foundation` item. See base.css for the layer model.\n */\n\n@layer interlace.bridge, interlace.brand, interlace.semantics;\n\n@import \"./base.css\";\n\n/* 4. Page. Each file styles the page on purpose; none is needed by a\n * component. */\n@import \"./page/fonts.css\";\n@import \"./page/preflight.css\";\n@import \"./page/fumadocs.css\";\n@import \"./page/shiki.css\";\n"
    },
    {
      "path": "registry/interlace-ui/styles/page/fonts.css",
      "target": "styles/interlace/page/fonts.css",
      "type": "registry:style",
      "content": "/*\n * @interlace/ui — the Interlace typefaces, applied to the app's OWN font\n * utilities. Opt-in: shipped by `interlace-foundation`, never by\n * `interlace-base`.\n *\n * `font-sans` and `font-mono` are the host app's keys. Redeclaring them swaps\n * the typeface of every page that uses them, including pages that never\n * render an Interlace component, so it is a decision the adopter makes by\n * installing this file, not a side effect of adding a button.\n *\n * Fonts: families only. Inter / JetBrains Mono are loaded by the app (next/font\n * or @font-face with font-display: swap, per TYPOGRAPHY_PHILOSOPHY \"no FOIT\").\n * This file names the family stack; it does not ship font binaries.\n */\n\n@theme {\n  /* structure/type.css points `font-body` (and through it `font-heading`)\n     at `font-sans`, so this one line sets the Interlace typeface for\n     components and the app alike. */\n  --font-sans:\n    'Inter', 'Inter Variable', system-ui, -apple-system, BlinkMacSystemFont,\n    'Segoe UI', sans-serif;\n  --font-mono:\n    'JetBrains Mono', 'JetBrains Mono Variable', 'SF Mono', Menlo, Consolas,\n    'Liberation Mono', monospace;\n}\n"
    },
    {
      "path": "registry/interlace-ui/styles/page/preflight.css",
      "target": "styles/interlace/page/preflight.css",
      "type": "registry:style",
      "content": "/*\n * @interlace/ui — PAGE / preflight: the token-aware baseline that goes\n * beyond Tailwind's own preflight.\n *\n * Layer 4 of 4 (opt-in page styling; ships in `interlace-foundation`, never\n * in base). Every rule sits in Tailwind's `base` layer, right after\n * Tailwind's preflight and BELOW `components` and `utilities`. It used to\n * sit in a custom `interlace.preflight` layer, which Tailwind's layer\n * statement ranks ABOVE utilities: `img { height: auto }` beat a call-site\n * `h-10`, and `svg { display: block }` beat `inline`. A baseline must lose\n * to every class the page writes; in `base` it does. The reduced-motion and\n * forced-colors rules still win where they must, through `!important`.\n *\n * Why this file exists (the \"more advanced than Tailwind preflight\" the\n * Interlace DS owes its consumers):\n *   1. Tailwind's preflight resets margins / borders / box-sizing — necessary\n *      but VALUELESS without tokens. We layer on the token-aware defaults the\n *      brand depends on (selection color, focus ring, scrollbar tint,\n *      ::placeholder, Inter font-features, text-wrap balance on headings).\n *   2. It enforces DESIGN_PRINCIPLES at the document baseline — every page\n *      that imports the DS inherits the right type rendering, the right focus\n *      visibility (WCAG 2.2 SC 2.4.13), the right reduced-motion contract.\n *   3. It owns the per-component min-viewport contract: `data-min-viewport`\n *      sets a container so a primitive can warn (dev) when rendered below\n *      its declared minimum — see DESIGN_PRINCIPLES.md #14.\n *\n * Forbidden in this file: brand color values (those live in brand/);\n * component-specific styles (those live in the primitive's cva); JS coupling.\n * Allowed: token-referencing `var(--*)`, prefers-reduced-motion + prefers-color-scheme\n * queries, container-type declarations.\n */\n\n/* ─────────────────────────────────────────────────────────────────\n * 1. Body + heading baseline\n *    Inter for prose/UI; JetBrains Mono inherited where set. font-feature-settings\n *    activates cv11 (single-storey a → matches our written language) + ss01\n *    (alternate g). text-rendering: optimizeLegibility on body only (not\n *    monospace — that's mechanical, not prose).\n * ──────────────────────────────────────────────────────────────── */\n@layer base {\nbody {\n  font-family: var(--font-body);\n  font-feature-settings:\n    'cv11',\n    'ss01',\n    'calt',\n    'liga';\n  text-rendering: optimizeLegibility;\n  -webkit-font-smoothing: antialiased;\n  -moz-osx-font-smoothing: grayscale;\n  background-color: var(--background);\n  color: var(--foreground);\n}\n\n/* Headings get text-wrap: balance for two-line + better visual rhythm.\n * Browsers without support (older Safari/Firefox) gracefully fall back to\n * normal wrapping. */\nh1,\nh2,\nh3,\nh4,\nh5,\nh6 {\n  text-wrap: balance;\n}\n\n/* Prose paragraphs get text-wrap: pretty (avoids orphan-word last lines).\n * Same graceful fallback contract. */\np {\n  text-wrap: pretty;\n}\n\n/* Monospace inheritance — code/kbd/samp/pre use the DS mono token,\n * not the browser default (Courier). */\ncode,\nkbd,\nsamp,\npre {\n  font-family: var(--font-mono);\n  font-feature-settings: 'calt';\n}\n\n/* ─────────────────────────────────────────────────────────────────\n * 2. Selection + focus contract\n *    Selection: brand accent at low alpha (legible on both light + dark\n *    surfaces). Focus-visible: 2px solid --ring, 2px offset (WCAG 2.2\n *    SC 2.4.13 — ≥3:1 contrast, ≥2px thick). NEVER outline: none without a\n *    replacement.\n * ──────────────────────────────────────────────────────────────── */\n::selection {\n  background-color: color-mix(in oklch, var(--ring) 24%, transparent);\n  color: var(--foreground);\n}\n\n/* The DS focus ring contract — every interactive primitive inherits this\n * unless it explicitly opts out for a designed alternative. */\n:focus-visible {\n  outline: 2px solid var(--ring);\n  outline-offset: 2px;\n  border-radius: 2px;\n}\n\n/* No outline on click-only focus (mouse / touch users don't need it; SC 2.4.7\n * is satisfied by :focus-visible). */\n:focus:not(:focus-visible) {\n  outline: none;\n}\n\n/* ─────────────────────────────────────────────────────────────────\n * 3. Form-element inheritance\n *    Tailwind preflight already resets borders + appearance, but input/textarea/\n *    button still inherit Times/Helvetica on some browsers. Force the DS font.\n *    ::placeholder uses --muted-foreground for AA contrast on every surface.\n * ──────────────────────────────────────────────────────────────── */\ninput,\ntextarea,\nselect,\nbutton {\n  font-family: inherit;\n  font-feature-settings: inherit;\n}\n\n::placeholder {\n  color: var(--muted-foreground);\n  opacity: 1; /* Firefox defaults to 0.54 — restore full opacity for AA. */\n}\n\n/* ─────────────────────────────────────────────────────────────────\n * 4. Image + media defaults\n *    Responsive by default (max-width: 100%). vertical-align: middle\n *    prevents the descender gap under inline images.\n *\n *    `height: auto` applies to PHOTOGRAPHIC media only (img/picture/\n *    video) — matching Tailwind's own preflight, which deliberately\n *    excludes svg + canvas. This layer is declared after `utilities`,\n *    so a blanket `svg { height: auto }` here would defeat `h-full` on\n *    every svg that carries a viewBox (the element snaps to the\n *    viewBox's intrinsic ratio instead of stretching): InterlaceWeave's\n *    square overlay spilling 180px past its card is how this was found.\n *    Drawn surfaces keep author-controlled sizing.\n * ──────────────────────────────────────────────────────────────── */\nimg,\npicture,\nvideo,\ncanvas,\nsvg {\n  display: block;\n  max-width: 100%;\n  vertical-align: middle;\n}\n\nimg,\npicture,\nvideo {\n  height: auto;\n}\n\n/* ─────────────────────────────────────────────────────────────────\n * 5. Scrollbar tint\n *    A subtle DS-tinted scrollbar on long surfaces (modern browsers). Avoids\n *    the heavy OS-default look without going invisible. Webkit + standards\n *    syntax both included for coverage.\n * ──────────────────────────────────────────────────────────────── */\n* {\n  scrollbar-width: thin;\n  scrollbar-color: var(--border) transparent;\n}\n\n*::-webkit-scrollbar {\n  width: 10px;\n  height: 10px;\n}\n*::-webkit-scrollbar-track {\n  background: transparent;\n}\n*::-webkit-scrollbar-thumb {\n  background-color: var(--border);\n  border-radius: 9999px;\n  border: 2px solid transparent;\n  background-clip: padding-box;\n}\n*::-webkit-scrollbar-thumb:hover {\n  background-color: var(--muted-foreground);\n}\n\n/* ─────────────────────────────────────────────────────────────────\n * 6. Motion contract\n *    Smooth-scroll on document navigation (anchor links, history nav).\n *    prefers-reduced-motion overrides EVERYTHING — including any animation\n *    a component sets — by clamping durations to 0.01ms (per WCAG SC 2.3.3\n *    + the Tailwind motion-safe philosophy). DESIGN_PRINCIPLES #7.\n * ──────────────────────────────────────────────────────────────── */\nhtml {\n  scroll-behavior: smooth;\n}\n\n@media (prefers-reduced-motion: reduce) {\n  html {\n    scroll-behavior: auto;\n  }\n  *,\n  *::before,\n  *::after {\n    animation-duration: 0.01ms !important;\n    animation-iteration-count: 1 !important;\n    transition-duration: 0.01ms !important;\n    scroll-behavior: auto !important;\n  }\n}\n\n/* ─────────────────────────────────────────────────────────────────\n * 7. Tabular numerals for data\n *    Vertically-scanned number lists / tables / live-changing counters get\n *    tabular-nums + lining figures, so digits don't jump as the value\n *    updates. TYPOGRAPHY_PHILOSOPHY \"Numerals\".\n * ──────────────────────────────────────────────────────────────── */\ntable,\n[role='grid'],\n[data-tabular-nums] {\n  font-variant-numeric: tabular-nums lining-nums;\n}\n\n/* ─────────────────────────────────────────────────────────────────\n * 8. Min-viewport contract — DESIGN_PRINCIPLES #14\n *    Each primitive declares the smallest viable viewport via the\n *    `data-min-viewport=\"<px>\"` attribute on its root. preflight establishes\n *    the container so consumers (or a future preflight v2 with a\n *    `body[data-interlace-dev]` gate) can render a warning when a primitive\n *    is mounted in a container narrower than its declared minimum.\n *\n *    Today the attribute is documented machine-readable metadata (visible in\n *    devtools, queryable in E2E tests). The visual dev-mode warning is wired\n *    in apps that opt-in via `<body data-interlace-dev>`.\n * ──────────────────────────────────────────────────────────────── */\n/*\n * ⚠️ The containment is GATED on the dev opt-in, and that gate is load-bearing.\n *\n * `container-type: inline-size` applies inline-axis SIZE CONTAINMENT, which\n * makes an element's intrinsic inline size exactly ZERO. Applied unconditionally\n * — as it was until 2026-08-10 — every primitive that declares\n * `data-min-viewport` AND is shrink-to-fit (`inline-block`, `inline-flex`, or a\n * content-sized flex item) computed `width: 0px`, its children overflowed the\n * box, and the component rendered as a sliver or as one word per line.\n *\n * Measured on `ReadingTime`: 0px with the rule, 28.84px without it. It also\n * zeroed NumberField (154px), ToggleGroup (120px), PublishedDate (88px), the\n * Delta cell in MetricTable, and FocusRing — and it was live on\n * ds.interlace.tools, where these render as the public previews.\n *\n * The containment exists only so the `@container` queries below can fire. Those\n * queries are themselves gated on `body[data-interlace-dev]`, so outside dev\n * mode the containment bought nothing and cost this. Gating it matches the\n * queries it serves.\n *\n * Known limitation, accepted deliberately: inside the dev gate a shrink-to-fit\n * primitive still collapses, because there is no CSS selector for \"block-level\"\n * and containment is meaningless on an inline box. A dev-only visual artefact in\n * an opt-in debugging mode is a far better trade than a zero-width component in\n * production, which is what we had.\n */\nbody[data-interlace-dev] [data-min-viewport] {\n  container-type: inline-size;\n}\n\nbody[data-interlace-dev] [data-min-viewport='320'] {\n  @container (max-width: 319px) {\n    outline: 2px dashed color-mix(in oklch, var(--destructive) 70%, transparent);\n    outline-offset: 4px;\n    position: relative;\n  }\n}\n\nbody[data-interlace-dev] [data-min-viewport='480'] {\n  @container (max-width: 479px) {\n    outline: 2px dashed color-mix(in oklch, var(--destructive) 70%, transparent);\n    outline-offset: 4px;\n    position: relative;\n  }\n}\n\nbody[data-interlace-dev] [data-min-viewport='768'] {\n  @container (max-width: 767px) {\n    outline: 2px dashed color-mix(in oklch, var(--destructive) 70%, transparent);\n    outline-offset: 4px;\n    position: relative;\n  }\n}\n\n/* ─────────────────────────────────────────────────────────────────\n * 9. forced-colors / high-contrast mode\n *    Windows High Contrast Mode + macOS Increased Contrast users need our\n *    focus ring to remain visible. Defer color values to system tokens in\n *    forced-colors so user overrides win — DESIGN_PRINCIPLES #9.\n * ──────────────────────────────────────────────────────────────── */\n@media (forced-colors: active) {\n  :focus-visible {\n    outline-color: Highlight;\n  }\n}\n\n} /* end @layer base */\n\n"
    },
    {
      "path": "registry/interlace-ui/styles/page/fumadocs.css",
      "target": "styles/interlace/page/fumadocs.css",
      "type": "registry:style",
      "content": "/*\n * @interlace/ui — PAGE / fumadocs: running Interlace components inside a\n * fumadocs docs site.\n *\n * Layer 4 of 4 (opt-in page styling). Import AFTER fumadocs' own CSS:\n *\n *   @import \"fumadocs-ui/css/neutral.css\";\n *   @import \"fumadocs-ui/css/preset.css\";\n *   @import \"@interlace/ui/styles/page/fumadocs.css\";\n *\n *   1. shadcn-token bridge — fumadocs ships `--color-fd-*` but not the bare\n *      shadcn names components are styled against (`bg-card`, `bg-popover`).\n *      These aliases fill them from fumadocs, so a docs site WITHOUT the\n *      Interlace brand still renders components in its own colours. When\n *      semantics.css is also loaded, its later layer wins, as intended.\n *   3. TOC visual fix — single-line indicator over the staircase rail.\n *   4. Remote-content styling — for @interlace/ui/fumadocs/remote-markdown.\n *\n * (2, the Shiki contrast boosts, is page/shiki.css. 5, the entry\n * animations, is structure/motion.css. The numbering is kept so older\n * references still land.)\n */\n\n/* ─────────────────────────────────────────────────────────────────\n * 1. shadcn-token bridge — maps shadcn-bare tokens to fumadocs sources.\n *    Light + dark inherit from `--color-fd-*` which the app overrides.\n *\n *    Wrapped in `@layer interlace.bridge` so the cascade story is\n *    deterministic: `interlace.brand` and `interlace.semantics` (later\n *    layers, declared in base.css) override these bridge defaults\n *    cleanly. Without the layer wrap, this unlayered `:root` block\n *    would TRUMP the layered semantic bindings per CSS Cascade Layers\n *    spec (unlayered > all custom layers).\n * ──────────────────────────────────────────────────────────────── */\n@layer interlace.bridge {\n:root {\n  --background: var(--color-fd-background);\n  --foreground: var(--color-fd-foreground);\n  --card: var(--color-fd-card);\n  --card-foreground: var(--color-fd-card-foreground);\n  --popover: var(--color-fd-popover);\n  --popover-foreground: var(--color-fd-popover-foreground);\n  --muted: var(--color-fd-muted);\n  --muted-foreground: var(--color-fd-muted-foreground);\n  --accent: var(--color-fd-accent);\n  --accent-foreground: var(--color-fd-accent-foreground);\n  --secondary: var(--color-fd-secondary);\n  --secondary-foreground: var(--color-fd-secondary-foreground);\n  --border: var(--color-fd-border);\n  --input: var(--color-fd-border);\n  --ring: var(--color-fd-ring);\n  --destructive: hsl(0, 72%, 38%);\n  --destructive-foreground: hsl(0, 0%, 100%);\n\n  /* Tailwind v4 @theme-side aliases so utilities like `bg-card`,\n     `border-border` resolve. Same value as above. */\n  --color-background: var(--color-fd-background);\n  --color-foreground: var(--color-fd-foreground);\n  --color-card: var(--color-fd-card);\n  --color-card-foreground: var(--color-fd-card-foreground);\n  --color-popover: var(--color-fd-popover);\n  --color-popover-foreground: var(--color-fd-popover-foreground);\n  --color-muted: var(--color-fd-muted);\n  --color-muted-foreground: var(--color-fd-muted-foreground);\n  --color-accent: var(--color-fd-accent);\n  --color-accent-foreground: var(--color-fd-accent-foreground);\n  --color-secondary: var(--color-fd-secondary);\n  --color-secondary-foreground: var(--color-fd-secondary-foreground);\n  --color-border: var(--color-fd-border);\n  --color-input: var(--color-fd-border);\n  --color-ring: var(--color-fd-ring);\n  --color-primary: var(--color-fd-primary);\n  --color-primary-foreground: var(--color-fd-primary-foreground);\n  --color-destructive: hsl(0, 72%, 38%);\n  --color-destructive-foreground: hsl(0, 0%, 100%);\n\n  /* shadcn chart palette — five distinct hues, led by the brand orange and green.\n     Light-mode values pass ≥4.5:1 contrast on `bg-card` (white).\n     Used by @/components/ui/chart `<ChartContainer>` + ChartConfig. */\n  --chart-1: oklch(0.55 0.16 41);\n  --chart-2: oklch(0.55 0.14 162);\n  --chart-3: oklch(0.55 0.18 264);\n  --chart-4: oklch(0.55 0.14 90);\n  --chart-5: oklch(0.55 0.13 200);\n  --color-chart-1: var(--chart-1);\n  --color-chart-2: var(--chart-2);\n  --color-chart-3: var(--chart-3);\n  --color-chart-4: var(--chart-4);\n  --color-chart-5: var(--chart-5);\n}\n\n.dark {\n  /* Dark-mode chart palette — lifted lightness so each series stays\n     ≥4.5:1 on `bg-card` (near-black). */\n  --chart-1: oklch(0.78 0.14 41);\n  --chart-2: oklch(0.78 0.12 162);\n  --chart-3: oklch(0.78 0.16 264);\n  --chart-4: oklch(0.78 0.12 90);\n  --chart-5: oklch(0.78 0.11 200);\n  --color-chart-1: var(--chart-1);\n  --color-chart-2: var(--chart-2);\n  --color-chart-3: var(--chart-3);\n  --color-chart-4: var(--chart-4);\n  --color-chart-5: var(--chart-5);\n}\n} /* end @layer interlace.bridge */\n\n/* ─────────────────────────────────────────────────────────────────\n * 3. Fumadocs TOC visual fix — clean single-line indicator over the\n *    staircase rail. The arbitrary-property utilities below are\n *    classes Tailwind v4 cannot generate from `text-(--fd-…)` shorthand.\n * ──────────────────────────────────────────────────────────────── */\n/* In Tailwind's `utilities` layer, not unlayered: these override\n * fumadocs' own utility classes, which they tie with on layer and beat on\n * specificity (an id or an extra attribute/element). Unlayered, they would\n * also beat every utility the host app writes. */\n@layer utilities {\n.h-\\(--fd-height\\) {\n  height: var(--fd-height);\n}\n.top-\\(--fd-top\\) {\n  top: var(--fd-top);\n}\n.transition-\\[top\\,height\\] {\n  transition-property: top, height !important;\n  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1) !important;\n  transition-duration: 150ms !important;\n}\n#nd-toc .bg-fd-primary {\n  transition-property: top, height !important;\n  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1) !important;\n  transition-duration: 150ms !important;\n}\n\n/* Hide gray rail segments and diagonal connectors — keep only the\n   brand-tinted sliding indicator. */\n#nd-toc .bg-fd-foreground\\/10 {\n  display: none !important;\n}\n#nd-toc svg line.stroke-fd-foreground\\/10,\n#nd-toc .stroke-fd-foreground\\/10 {\n  display: none !important;\n}\n\n/* Popover TOC item indentation by depth. */\n[data-toc-popover-content] a {\n  padding-inline-start: 14px !important;\n}\n[data-toc-popover-content] a[data-depth='3'] {\n  padding-inline-start: 26px !important;\n}\n[data-toc-popover-content] a[data-depth='4'],\n[data-toc-popover-content] a[data-depth='5'],\n[data-toc-popover-content] a[data-depth='6'] {\n  padding-inline-start: 36px !important;\n}\n} /* end @layer utilities */\n\n@layer components {\n  /* Responsive TOC visibility:\n   *   xl+ (≥1280px): side TOC visible, popover TOC hidden\n   *   <xl: popover TOC visible, side TOC hidden\n   */\n  @media (min-width: 1280px) {\n    button[data-toc-popover-trigger],\n    div[data-toc-popover-content] {\n      display: none !important;\n    }\n  }\n  @media (max-width: 1279px) {\n    #nd-toc {\n      display: none !important;\n    }\n  }\n}\n\n/* ─────────────────────────────────────────────────────────────────\n * 4. Remote-content styling — `<RemoteMarkdown>` (README / changelog /\n *    rule-doc) classes from @interlace/ui/fumadocs/remote-markdown.\n * ──────────────────────────────────────────────────────────────── */\n/* Utilities layer for the same reason as section 3: fumadocs' `prose` is a\n * utility, and these must beat it inside remote content (they do, on\n * specificity) without outranking the host's own classes. */\n@layer utilities {\n.remote-readme a > img,\n.remote-changelog a > img,\n.remote-rule-doc a > img {\n  display: inline-block !important;\n  vertical-align: middle;\n  height: auto;\n}\n\n.remote-readme div[align='center'],\n.remote-changelog div[align='center'],\n.remote-rule-doc div[align='center'] {\n  text-align: center;\n  display: flex !important;\n  flex-wrap: wrap;\n  justify-content: center;\n  align-items: center;\n  gap: 0.35rem;\n  margin-bottom: 0.5rem;\n}\n\n.remote-readme div[align='center'] a,\n.remote-changelog div[align='center'] a,\n.remote-rule-doc div[align='center'] a {\n  display: inline-flex !important;\n  align-items: center;\n}\n\n.remote-readme img,\n.remote-changelog img,\n.remote-rule-doc img {\n  max-width: 100%;\n  height: auto;\n}\n} /* end @layer utilities */\n"
    },
    {
      "path": "registry/interlace-ui/styles/page/shiki.css",
      "target": "styles/interlace/page/shiki.css",
      "type": "registry:style",
      "content": "/*\n * @interlace/ui — PAGE / shiki: AAA contrast for Shiki's GitHub themes.\n *\n * Layer 4 of 4 (opt-in page styling). Scoped to `.shiki span[style*=…]`,\n * so it touches nothing but Shiki output. Split out of the fumadocs file:\n * any app that renders Shiki wants it, docs framework or not.\n */\n\n/* ─────────────────────────────────────────────────────────────────\n * 2. Shiki AAA boosts — github-light / github-dark themes.\n *    Boost muted comment + keyword colors past 7:1 contrast.\n *\n *    NOT in `@layer interlace.bridge` — these are component-style\n *    overrides keyed off inline Shiki styles. They need higher cascade\n *    weight than our bridge layer to actually win against the inline\n *    `style=\"--shiki-light: #...\"` values; leaving them unlayered is\n *    intentional.\n * ──────────────────────────────────────────────────────────────── */\n.shiki span[style*=\"--shiki-light:#6E7781\"],\n.shiki span[style*=\"--shiki-light:#6e7781\"] {\n  --shiki-light: #424952 !important;\n}\n.shiki span[style*=\"--shiki-light:#CF222E\"],\n.shiki span[style*=\"--shiki-light:#cf222e\"] {\n  --shiki-light: #82071e !important;\n}\n.shiki span[style*=\"--shiki-light:#0550AE\"],\n.shiki span[style*=\"--shiki-light:#0550ae\"] {\n  --shiki-light: #033d8b !important;\n}\n.shiki span[style*=\"--shiki-light:#953800\"] {\n  --shiki-light: #6c2700 !important;\n}\n.shiki span[style*=\"--shiki-light:#8250DF\"],\n.shiki span[style*=\"--shiki-light:#8250df\"] {\n  --shiki-light: #5a31aa !important;\n}\n.shiki span[style*=\"--shiki-light:#0A3069\"] {\n  --shiki-light: #062350 !important;\n}\n\n/* DynamicCodeBlock (install snippets, fumadocs) ships a different Shiki\n   theme variant — match `--shiki-light: #XXXXXX` (with space) too. */\n.shiki span[style*=\"#6F42C1\"],\n.shiki span[style*=\"#6f42c1\"] {\n  --shiki-light: #5a2da3 !important;\n}\n.shiki span[style*=\"#005CC5\"],\n.shiki span[style*=\"#005cc5\"] {\n  --shiki-light: #003e8a !important;\n}\n.shiki span[style*=\"#032F62\"],\n.shiki span[style*=\"#032f62\"] {\n  --shiki-light: #021f42 !important;\n}\n.shiki span[style*=\"#D73A49\"],\n.shiki span[style*=\"#d73a49\"] {\n  --shiki-light: #971923 !important;\n}\n.shiki span[style*=\"#24292E\"],\n.shiki span[style*=\"#24292e\"] {\n  --shiki-light: #14171b !important;\n}\n\n/* Dark-mode tokens — brighten muted colors over near-black bg. */\n.shiki span[style*=\"#B392F0\"],\n.shiki span[style*=\"#b392f0\"] {\n  --shiki-dark: #d2b5ff !important;\n}\n.shiki span[style*=\"#9ECBFF\"],\n.shiki span[style*=\"#9ecbff\"] {\n  --shiki-dark: #c4e0ff !important;\n}\n.shiki span[style*=\"#F97583\"],\n.shiki span[style*=\"#f97583\"] {\n  --shiki-dark: #ffa3ad !important;\n}\n.shiki span[style*=\"--shiki-dark:#8B949E\"],\n.shiki span[style*=\"--shiki-dark:#8b949e\"] {\n  --shiki-dark: #b8c0c8 !important;\n}\n.shiki span[style*=\"--shiki-dark:#FF7B72\"],\n.shiki span[style*=\"--shiki-dark:#ff7b72\"] {\n  --shiki-dark: #ffa39d !important;\n}\n.shiki span[style*=\"--shiki-dark:#FFA657\"],\n.shiki span[style*=\"--shiki-dark:#ffa657\"] {\n  --shiki-dark: #ffc787 !important;\n}\n.shiki span[style*=\"--shiki-dark:#79C0FF\"],\n.shiki span[style*=\"--shiki-dark:#79c0ff\"] {\n  --shiki-dark: #a5d6ff !important;\n}\n"
    }
  ],
  "meta": {
    "tier": "theme",
    "client": false,
    "minViewport": null,
    "loading": false,
    "version": "3.1.0",
    "since": null
  },
  "docs": "## @interlace/interlace-foundation\n\n5 stylesheets landed in `styles/interlace/`: the `index.css` barrel plus 4 leaves.\n\nReplace the `base.css` import with the full contract:\n\n```css\n@import \"tailwindcss\";\n@import \"./styles/interlace/index.css\";\n```\n\nThis restyles your page on purpose: Inter and JetBrains Mono on `font-sans` / `font-mono`, body colours, a focus ring on every focusable element, `img { display: block }`, thin scrollbars, and smooth scrolling. Load the fonts yourself (next/font or @font-face).\n\nThe barrel declares the cascade layers and imports the leaves in the one order that works (page/fonts.css → page/preflight.css → page/fumadocs.css → page/shiki.css). Importing the leaves yourself means reproducing that order exactly.\n\n### Token namespace — read this before you theme\n\nThis baseline claims **0 `--color-*` keys** plus **2 more** across the `font` namespaces. Tailwind v4 `@theme` keys are global: wherever your app claims the same key, exactly one registration wins — silently, with no diagnostic.\n\n- `--color-accent` — you probably expect the brand highlight colour; you get shadcn’s hover/selected SURFACE — #fef4ed light, #3d1a08 dark. 8:1 lighter than the brand orange beside it. Brand-coloured elements turn near-white. Fails at paint time; no build, type or lint error. Override `--accent (semantics layer) or --interlace-accent (brand layer)`.\n- `--color-secondary` — you probably expect a second brand colour; you get a light grey surface — #f5f3f0 light. Secondary buttons and badges lose their colour entirely. Override `--secondary or --interlace-secondary`.\n- `--color-muted` — you probably expect de-emphasised TEXT; you get a background tint — #faf7f4 light. Near-white text on white. `--color-muted-foreground` is the text colour. Override `--muted / --muted-foreground`.\n- `--color-border` — you probably expect a visible divider; you get #eae7e2 — a deliberate 1.23:1 hairline. It is an intentional AA exemption here, so no contrast gate will flag it. Dividers and card outlines effectively disappear. Override `--border or --interlace-border`.\n- `--radius-sm … --radius-xl` — you probably expect Tailwind’s fixed defaults (4/6/8/12px); you get shadcn’s derivation from `--radius` (radius − 4px / − 2px / radius / + 4px), with `--radius` at 0.75rem — 8/10/12/16px. In a shadcn app this is the same derivation the app already has. In a plain Tailwind app, every `rounded-sm…xl` follows `--radius` instead of a fixed value. Override `set --radius (one variable moves every step)`.\n- `--font-sans` — you probably expect to be additive; you get a full replacement of Tailwind’s default sans stack. App-wide font change. Override `redeclare --font-sans after the import`.\n\nThe colour block is `@theme inline`, so Tailwind substitutes the value into the utility and never emits `--color-*` at runtime. `bg-accent` compiles to `var(--accent)`. Overriding `--color-accent` in your own `:root` therefore has NO effect — override `--accent` (semantics) or `--interlace-accent` (brand) instead.\n\nFull list, per-token values and the migration checklist: https://ds.interlace.tools/theme-authoring#token-namespace\n\nFull contract: https://ds.interlace.tools/css-contract"
}
