{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "theme",
  "type": "registry:style",
  "title": "Interlace Theme",
  "description": "@interlace/ui — full DS CSS baseline: tokens, foundation (type/spacing/radius), preflight (focus ring + min-viewport contract), shadcn↔fumadocs bridge, and brand palette.",
  "author": "ofri-peretz <https://github.com/ofri-peretz>",
  "categories": [
    "foundation",
    "theme"
  ],
  "dependencies": [
    "tw-animate-css"
  ],
  "registryDependencies": [],
  "files": [
    {
      "path": "registry/interlace-ui/styles/index.css",
      "target": "styles/interlace/index.css",
      "type": "registry:style",
      "content": "/*\n * @interlace/ui — canonical CSS contract.\n *\n * THE single import a consumer app needs:\n *\n *   @import \"tailwindcss\";\n *   @import \"@interlace/ui/styles/index.css\";\n *\n * That's the full DS baseline — type scale + spacing + radius + container\n * widths + focus ring + min-viewport contract + fumadocs bridge + brand\n * palette + every semantic token (--background / --foreground /\n * --muted-foreground / --ring / ...) — wired into Tailwind v4 utilities.\n *\n * ─── Why a barrel + cascade layers ─────────────────────────────────\n *\n * Before this file existed, consumers had to know — and repeat in order —\n * the five-file import chain (tokens → foundation → preflight → theme →\n * interlace-theme). A typo or skipped file silently degraded half the\n * contract (e.g. omitting preflight.css cost the WCAG 2.2 SC 2.4.13 focus\n * ring). This barrel makes the contract a single line, and CSS Cascade\n * Layers make the order self-documenting:\n *\n *   `@layer interlace.primitives, interlace.foundation, interlace.preflight,\n *           interlace.bridge, interlace.brand, interlace.semantics;`\n *\n * Reading left to right = ascending priority (later layers win in the\n * cascade). The whole stack stays under the `interlace.*` namespace so a\n * consumer who wants to fork the brand declares `@layer interlace.brand`\n * AFTER importing this file and their declarations deterministically\n * override ours — regardless of declaration order or specificity. Without\n * layers, brand override is source-order roulette.\n *\n * ─── What each layer owns ──────────────────────────────────────────\n *\n *   interlace.primitives — raw values: keyframes, motion timings, animation\n *                          utility classes. No semantic meaning, just\n *                          mechanical primitives. (tokens.css)\n *\n *   interlace.foundation — type scale, spacing scale, radius, container\n *                          widths, font families. Brand-invariant\n *                          STRUCTURE registered as Tailwind theme tokens.\n *                          (foundation.css — @theme stays top-level for\n *                          Tailwind to process)\n *\n *   interlace.preflight  — token-aware baseline beyond Tailwind's own\n *                          preflight: body bg/fg/font, ::selection, focus\n *                          ring (WCAG 2.2 SC 2.4.13), scrollbar tint,\n *                          ::placeholder contrast, [data-min-viewport]\n *                          container contract. (preflight.css)\n *\n *   interlace.bridge     — fumadocs ↔ shadcn token bridge:\n *                          `:root { --background: var(--color-fd-background); }`.\n *                          Apps using fumadocs inherit the color story.\n *                          (theme.css)\n *\n *   interlace.brand      — concrete brand values: --interlace-primary,\n *                          --interlace-background hex literals (light + dark).\n *                          THE supported consumer override surface — fork\n *                          this layer to re-brand. (interlace-theme.css)\n *\n *   interlace.semantics  — alias bindings: --background, --foreground,\n *                          --muted-foreground, --ring, etc., mapped to the\n *                          --interlace-* brand values. Plus Tailwind v4\n *                          `@theme inline { --color-* }` registration so\n *                          utility classes resolve. (interlace-theme.css)\n *\n * ─── What's deliberately NOT a layer ──────────────────────────────\n *\n *   `@theme { ... }` blocks (in foundation.css + interlace-theme.css) stay\n *   at the top level outside any `@layer`. They're Tailwind v4 directives\n *   that register design tokens globally and emit utility classes; wrapping\n *   them in a custom layer breaks Tailwind's processing. The layer story\n *   applies to the consuming rules (`:root { --background: ... }`), not the\n *   token-registration directives.\n *\n * ─── Forbidden in this file ───────────────────────────────────────\n *\n *   - Inline declarations. Everything goes via @import of a layer file.\n *   - Tailwind directives. (Belong in foundation.css / interlace-theme.css.)\n *   - Consumer-app-specific overrides. (Belong in the consumer's\n *     global.css after this @import.)\n */\n\n@layer interlace.primitives, interlace.foundation, interlace.preflight,\n       interlace.bridge, interlace.brand, interlace.semantics;\n\n@import \"./tokens.css\";\n@import \"./foundation.css\";\n@import \"./preflight.css\";\n@import \"./theme.css\";\n@import \"./interlace-theme.css\";\n\n/* ─── Themes (the `[data-theme]` axis) ─────────────────────────────\n *\n * Every file below declares into `@layer interlace.brand` and overrides\n * ONLY `--interlace-*` values, scoped to `[data-theme='<name>']` (light)\n * and `[data-theme='<name>'].dark` (dark). Interlace itself is the\n * unprefixed default and lives above, in interlace-theme.css.\n *\n * ORDER IS LOAD-BEARING: `[data-theme='X']` and `.dark` have identical\n * specificity (0,1,0), so on `<html data-theme=\"X\" class=\"dark\">` the\n * light block of theme X must come AFTER interlace's dark block for\n * `[data-theme='X'].dark` (0,2,0) to sit on top of a coherent stack.\n * Theme imports therefore always follow interlace-theme.css.\n *\n * Adding a theme = one file + one line here + its row in\n * `THEMES` (src/lib/theme-tokens.ts). The contract lock reads both. */\n@import \"./themes/harbor.css\";\n"
    },
    {
      "path": "registry/interlace-ui/styles/tokens.css",
      "target": "styles/interlace/tokens.css",
      "type": "registry:style",
      "content": "/*\n * @interlace/ui — animations and motion tokens used by primitives + decorative components.\n * Import once in the consuming app's global stylesheet:\n *   @import \"@interlace/ui/styles/tokens.css\";\n *\n * Design-system colors are intentionally not defined here — fumadocs sites\n * inherit them from `fumadocs-ui/css/<theme>.css` and overlay brand overrides\n * in their own global.css.\n */\n\n@theme inline {\n  /* MagicUI: shimmer-button */\n  --animate-shimmer-slide: shimmer-slide var(--speed) ease-in-out infinite\n    alternate;\n  --animate-spin-around: spin-around calc(var(--speed) * 2) infinite linear;\n\n  /* MagicUI: animated-gradient-text */\n  --animate-gradient: gradient 8s linear infinite;\n\n  /* MagicUI: marquee */\n  --animate-marquee: marquee var(--duration) infinite linear;\n  --animate-marquee-vertical: marquee-vertical var(--duration) linear infinite;\n\n  /* Aceternity: background-gradient-animation */\n  --animate-first: moveVertical 30s ease infinite;\n  --animate-second: moveInCircle 20s reverse infinite;\n  --animate-third: moveInCircle 40s linear infinite;\n  --animate-fourth: moveHorizontal 40s ease infinite;\n  --animate-fifth: moveInCircle 20s ease infinite;\n\n  /* Primitives: accordion */\n  --animate-accordion-down: accordion-down 0.2s ease-out;\n  --animate-accordion-up: accordion-up 0.2s ease-out;\n\n  /* Interlace: the draw verb (BRAND_PHILOSOPHY §2) — a strand drawn,\n   * never faded. Paths normalize with pathLength=100 so one keyframe\n   * serves every geometry; 600ms is the doctrine's motion ceiling.\n   * Pure CSS on purpose: it runs with zero client JS and the preflight\n   * reduced-motion clamp reaches it (instantly-drawn end state). */\n  --animate-strand-draw: strand-draw 600ms ease-out forwards;\n\n  /* The draw verb's second mechanism, for a chart whose dash pattern IS\n   * series identity (TimeSeries): stroke-dashoffset would overwrite the\n   * dashes, so the true paths are progressively REVEALED by a clip rect\n   * that scales open left→right — the shuttle pass. The transform moves\n   * a CLIP EDGE, never content (the motion lock verifies the utility\n   * only ever lands on a clipPath child). From-only keyframe on\n   * purpose: the rect RESTS fully open, so with no animation at all\n   * (reduced motion, jsdom, an engine that cannot animate clip\n   * contents) nothing is ever hidden. Same 600ms draw ceiling.\n   *\n   * Declared ABOVE the keyframes bodies: the motion lock's segmenter\n   * runs each @keyframes to the next header, and a declaration sitting\n   * between two bodies would be over-captured into the first one. */\n  --animate-weave-reveal: weave-reveal 600ms ease-out;\n\n  @keyframes strand-draw {\n    from {\n      stroke-dashoffset: 100;\n    }\n    to {\n      stroke-dashoffset: 0;\n    }\n  }\n\n  @keyframes weave-reveal {\n    from {\n      transform: scaleX(0);\n    }\n  }\n\n  @keyframes shimmer-slide {\n    to {\n      transform: translate(calc(100cqw - 100%), 0);\n    }\n  }\n  @keyframes spin-around {\n    0% {\n      transform: translateZ(0) rotate(0);\n    }\n    15%,\n    35% {\n      transform: translateZ(0) rotate(90deg);\n    }\n    65%,\n    85% {\n      transform: translateZ(0) rotate(270deg);\n    }\n    100% {\n      transform: translateZ(0) rotate(360deg);\n    }\n  }\n  @keyframes gradient {\n    to {\n      background-position: var(--bg-size, 300%) 0;\n    }\n  }\n  @keyframes marquee {\n    from {\n      transform: translateX(0);\n    }\n    to {\n      transform: translateX(calc(-100% - var(--gap)));\n    }\n  }\n  @keyframes marquee-vertical {\n    from {\n      transform: translateY(0);\n    }\n    to {\n      transform: translateY(calc(-100% - var(--gap)));\n    }\n  }\n  @keyframes moveHorizontal {\n    0% {\n      transform: translateX(-50%) translateY(-10%);\n    }\n    50% {\n      transform: translateX(50%) translateY(10%);\n    }\n    100% {\n      transform: translateX(-50%) translateY(-10%);\n    }\n  }\n  @keyframes moveInCircle {\n    0% {\n      transform: rotate(0deg);\n    }\n    50% {\n      transform: rotate(180deg);\n    }\n    100% {\n      transform: rotate(360deg);\n    }\n  }\n  @keyframes moveVertical {\n    0% {\n      transform: translateY(-50%);\n    }\n    50% {\n      transform: translateY(50%);\n    }\n    100% {\n      transform: translateY(-50%);\n    }\n  }\n  @keyframes accordion-down {\n    from {\n      height: 0;\n    }\n    to {\n      height: var(--radix-accordion-content-height);\n    }\n  }\n  @keyframes accordion-up {\n    from {\n      height: var(--radix-accordion-content-height);\n    }\n    to {\n      height: 0;\n    }\n  }\n}\n\n/* Border Beam — pure CSS animation, used by @interlace/ui/magicui/border-beam.\n * Wrapped in `@layer interlace.primitives` so the cascade is deterministic.\n * `@keyframes` declarations can live outside a layer (they have a global\n * scope per spec), but the consuming utility class .animate-border-beam goes\n * in the layer for override-friendliness. */\n@keyframes border-beam {\n  0% {\n    offset-distance: var(--border-beam-initial, 0%);\n  }\n  100% {\n    offset-distance: calc(100% + var(--border-beam-initial, 0%));\n  }\n}\n\n@layer interlace.primitives {\n.animate-border-beam {\n  animation: border-beam var(--border-beam-duration, 6s) linear infinite;\n  animation-direction: var(--border-beam-direction, normal);\n}\n\n/*\n * Accessibility — respect prefers-reduced-motion.\n * Industry-canon practice (MUI, Vercel, Linear, Stripe, GitHub all do this).\n * Disables every CSS-driven animation registered above when the user has\n * motion-sensitivity preferences. JS-driven motion (motion/react, canvas)\n * is gated per-component via the useReducedMotion hook.\n *\n * ⚠️ THIS LIST IS THE SECOND LAYER, NOT THE FIRST.\n *\n * The primary reduced-motion guarantee is the wildcard in `preflight.css`\n * (`*, *::before, *::after { animation-duration: 0.01ms !important; … }`),\n * and it is the only thing that reaches the animations no selector here can\n * name: Tailwind's own `animate-pulse` / `animate-bounce`, and the\n * `data-[open]:animate-in` / `data-[closed]:animate-out` variants that every\n * Dialog, Sheet, Popover, Tooltip, DropdownMenu and ContextMenu emits (those\n * compile to `.data-\\[open\\]\\:animate-in`, which `.animate-in` does not\n * match). Delete the preflight wildcard and most of the DS starts animating\n * under `reduce` with nothing here to catch it — `motion-contract-lock`\n * fails if anyone tries.\n *\n * What this list buys on top of the wildcard is worth having, which is why\n * both exist:\n *   1. `animation: none` instead of a 0.01ms clamp — the animation never\n *      runs at all, rather than running one imperceptible cycle.\n *   2. cover for the à-la-carte import path. Every stylesheet here is a\n *      separate `exports` entry, so a consumer can import tokens.css +\n *      theme.css and skip preflight.css; then this list is the ONLY defence.\n *\n * Rule for adding to it: every bare `animate-*` utility that `packages/ui/src`\n * puts on an element belongs here. `.animate-pulse` did not, for the whole of\n * Skeleton's life, and the à-la-carte path pulsed for reduce users.\n */\n@media (prefers-reduced-motion: reduce) {\n  .animate-shimmer-slide,\n  .animate-spin-around,\n  .animate-gradient,\n  .animate-marquee,\n  .animate-marquee-vertical,\n  .animate-first,\n  .animate-second,\n  .animate-third,\n  .animate-fourth,\n  .animate-fifth,\n  .animate-border-beam,\n  .animate-accordion-down,\n  .animate-accordion-up,\n  .animate-fade-in-up,\n  .animate-slide-in-left,\n  .animate-scale-in,\n  .animate-pulse,\n  .animate-meteor,\n  .animate-meteor-effect,\n  /* weave-reveal belongs in THIS list, unlike strand-draw below: its\n   * keyframe is from-only, so `animation: none` rests at the fully\n   * revealed end state — nothing to clamp, nothing hidden. */\n  .animate-weave-reveal {\n    animation: none !important;\n    transition: none !important;\n  }\n\n  /* The draw gesture (MOTION_PHILOSOPHY's draw-gesture exception)\n   * completes instantly instead of vanishing: `animation: none` would\n   * hold stroke-dashoffset at 100 — the strand invisible forever —\n   * removing information, not motion. 0.01ms + the shorthand's\n   * `forwards` fill lands the honest drawn end state. */\n  .animate-strand-draw {\n    animation-duration: 0.01ms !important;\n  }\n}\n} /* end @layer interlace.primitives */\n"
    },
    {
      "path": "registry/interlace-ui/styles/foundation.css",
      "target": "styles/interlace/foundation.css",
      "type": "registry:style",
      "content": "/*\n * @interlace/ui — foundation tokens: type scale, spacing scale, radius,\n * container widths, font families. The brand-INVARIANT structural layer.\n *\n * Import in the consuming app AFTER tokens.css, BEFORE/independent of the\n * brand layer (interlace-theme.css):\n *\n *   @import \"@interlace/ui/styles/tokens.css\";       motion\n *   @import \"@interlace/ui/styles/foundation.css\";   type + spacing + radius   ← THIS FILE\n *   @import \"@interlace/ui/styles/theme.css\";         fumadocs color bridge\n *   @import \"@interlace/ui/styles/interlace-theme.css\"; brand color values\n *\n * Why a separate file (not theme.css / interlace-theme.css):\n *   - theme.css is the fumadocs COLOR bridge; interlace-theme.css is the brand\n *     COLOR layer (and is not imported by every consumer — docs omits it).\n *   - Type/spacing/radius/container are brand-invariant STRUCTURE that EVERY\n *     consumer needs so primitives (Typography/Stack/Grid/Box/Container) map to\n *     real tokens (R19) instead of Tailwind defaults. Keeping them here, in a\n *     universally-imported file, fixes the prior gap where the radius bridge +\n *     font tokens lived only in the registry app (apps/registry/globals.css) and\n *     non-registry consumers silently fell back to Tailwind defaults.\n *\n * Sources: TYPOGRAPHY_PHILOSOPHY.md (type scale, body/code contracts, fluid\n * type, reading-vs-UI modes) + LAYOUT_PHILOSOPHY.md (#2 container widths, #3\n * spacing token table). Values are ours; the 3-layer SYSTEM mirrors the concept,\n * not any one project's numbers.\n *\n * Self-contained: every value is a literal here, so the file works even when a\n * consumer omits the brand layer. Brand-coupled tokens (e.g. --subtle, derived\n * from the brand primary) stay in interlace-theme.css.\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  /* ── Font families ─────────────────────────────────────────────── */\n  /* font-body / font-mono utilities. --font-sans aliases body so stock\n     shadcn `font-sans` usages pick up Inter without a rename. */\n  --font-body:\n    'Inter', 'Inter Variable', system-ui, -apple-system, BlinkMacSystemFont,\n    'Segoe UI', sans-serif;\n  --font-sans: var(--font-body);\n  --font-mono:\n    'JetBrains Mono', 'JetBrains Mono Variable', 'SF Mono', Menlo, Consolas,\n    'Liberation Mono', monospace;\n\n  /* ── Type scale (font-size + paired line-height) ───────────────────\n     SIX heading levels max (TYPOGRAPHY \"heading scale\"). Display end fluids\n     on a single curve; body stays FIXED (no clamp on body — confuses readers).\n     Generates text-h1…text-h6, text-body, text-long, text-ui, text-code, etc. */\n  --text-h1: clamp(2.5rem, 4vw + 1rem, 3.5rem); /* 40 → 56px */\n  --text-h1--line-height: 1.1;\n  --text-h2: 1.875rem; /* 30px */\n  --text-h2--line-height: 1.2;\n  --text-h3: 1.5rem; /* 24px */\n  --text-h3--line-height: 1.25;\n  --text-h4: 1.25rem; /* 20px */\n  --text-h4--line-height: 1.3;\n  --text-h5: 1.0625rem; /* 17px */\n  --text-h5--line-height: 1.4;\n  --text-h6: 1rem; /* 16px */\n  --text-h6--line-height: 1.4;\n  --text-body: 1rem; /* 16px base body */\n  --text-body--line-height: 1.6;\n  --text-long: 1.0625rem; /* 17px long-form reading */\n  --text-long--line-height: 1.7;\n  --text-ui: 0.875rem; /* 14px UI text */\n  --text-ui--line-height: 1.5;\n  --text-ui-sm: 0.8125rem; /* 13px dense UI */\n  --text-ui-sm--line-height: 1.5;\n  --text-code: 0.875rem; /* 14px code blocks */\n  --text-code--line-height: 1.6;\n  --text-caption: 0.8125rem; /* 13px captions / eyebrows */\n  --text-caption--line-height: 1.5;\n\n  /* ── Line-height scale (standalone leading-* utilities) ─────────── */\n  --leading-body: 1.6;\n  --leading-long: 1.7;\n  --leading-ui: 1.5;\n  --leading-heading: 1.2;\n\n  /* ── Letter-spacing (tracking-* utilities) ─────────────────────────\n     0 body; tighten only headings ≥32px. */\n  --tracking-display: -0.02em;\n  --tracking-heading: -0.01em;\n\n  /* Weight ladder (TYPOGRAPHY \"weight ladder\"): 400 body / 500 UI emphasis /\n     600 strong + headings / 700 page headings — NO 900 ever. Uses Tailwind's\n     built-in font-normal/font-medium/font-semibold/font-bold; NOT redefined as\n     --font-weight-* tokens (those would collide with the --font-* family keys\n     on the shared `font-<name>` utility namespace). */\n\n  /* ── Spacing scale (LAYOUT #3 — the six-step token table) ──────────\n     Named keys → p-xs / gap-md / m-lg / py-xl utilities, DS-owned (R19).\n     Additive: the numeric Tailwind scale (p-4, gap-6) is untouched. */\n  --spacing-xs: 0.5rem; /*  8px — inline chip / badge padding */\n  --spacing-sm: 1rem; /* 16px — card padding, mobile page padding */\n  --spacing-md: 1.5rem; /* 24px — card-grid gaps */\n  --spacing-lg: 2.5rem; /* 40px — mobile section vertical padding */\n  --spacing-xl: 4rem; /* 64px — desktop section vertical padding */\n  --spacing-2xl: 6rem; /* 96px — hero / final-CTA breathing room */\n\n  /* ── Radius (8/12/16 three-step scale) ─────────────────────────────\n     PROMOTED from apps/registry/globals.css to the shared package so\n     rounded-sm/md/lg are DS-owned in every consumer (docs/storybook too),\n     not the Tailwind defaults (2/6/8px). */\n  --radius-sm: 0.5rem; /*  8px */\n  --radius-md: 0.75rem; /* 12px */\n  --radius-lg: 1rem; /* 16px */\n\n  /* ── Container widths (LAYOUT #2 — four sizes only) ─────────────────\n     Generates max-w-prose / max-w-content / max-w-wide. `full` = no max-width\n     (omit the utility). ad-hoc max-w-3xl/4xl/5xl/6xl are forbidden by R21. */\n  --container-prose: 65ch; /* long-form text */\n  --container-content: 64rem; /* 1024px — default landing section */\n  --container-wide: 80rem; /* 1280px — card-grid-heavy section */\n\n  /* Floating-surface width. NOT a `Container size` — these three above are\n     the page-layout ladder. This one sizes detached chrome (toast stack,\n     side-anchored panels) that must stay narrower than any section. Lives\n     here rather than as `max-w-[420px]` at the call site so the toast\n     stack and anything else that docks to a viewport edge agree on one\n     number (R19/R21). */\n  --container-float: 26.25rem; /* 420px — edge-docked toast / panel stack */\n\n  /* ── Breakpoints (BREAKPOINT_PHILOSOPHY — 4-tier system) ─────────────\n     Codified to override Tailwind v4's defaults (640/768/1024/1280/1536)\n     with a tighter 4-tier ladder aligned to our MIN_VIEWPORT floor.\n     `rem`-based so user-zoom + browser font-size scaling respect the\n     breakpoints (accessibility win — px-only breakpoints ignore zoom).\n\n       sm = 30rem  = 480 CSS px @ 16px root font → handheld floor\n       md = 48rem  = 768 CSS px @ 16px root font → tablet / large phone\n       lg = 64rem  = 1024 CSS px → laptop\n       xl = 80rem  = 1280 CSS px → desktop\n\n     Generates `sm:` / `md:` / `lg:` / `xl:` Tailwind variants. The\n     `2xl` tier is INTENTIONALLY omitted — `Container size=\"wide\"`\n     (1280px) is the largest section width the DS supports, so a\n     `2xl:` variant has no DS-side meaning.\n\n     Aligned with the MIN_VIEWPORT contract: a primitive declaring\n     `MIN_VIEWPORT=480` is exactly the `sm:` floor; `768` is `md:`. */\n  --breakpoint-sm: 30rem;   /* 480px — handheld */\n  --breakpoint-md: 48rem;   /* 768px — tablet */\n  --breakpoint-lg: 64rem;   /* 1024px — laptop */\n  --breakpoint-xl: 80rem;   /* 1280px — desktop */\n}\n\n/* ── Reading-mode vs UI-mode component classes ──────────────────────\n   TYPOGRAPHY \"Reading mode vs UI mode\": the call site declares intent.\n   The Typography primitive applies the right class by default; consumers\n   reach for these directly on prose containers. Body is FIXED size (never\n   fluid); measure is bounded ≤75ch (non-negotiable). */\n@layer components {\n  .prose-body {\n    font-family: var(--font-body);\n    font-size: var(--text-body);\n    line-height: var(--leading-body);\n    max-width: 65ch;\n  }\n  .prose-long {\n    font-family: var(--font-body);\n    font-size: var(--text-long);\n    line-height: var(--leading-long);\n    max-width: 75ch;\n    text-rendering: optimizeLegibility;\n  }\n  .ui-text {\n    font-family: var(--font-body);\n    font-size: var(--text-ui);\n    line-height: var(--leading-ui);\n  }\n  .ui-text-sm {\n    font-family: var(--font-body);\n    font-size: var(--text-ui-sm);\n    line-height: var(--leading-ui);\n  }\n}\n"
    },
    {
      "path": "registry/interlace-ui/styles/preflight.css",
      "target": "styles/interlace/preflight.css",
      "type": "registry:style",
      "content": "/*\n * @interlace/ui — preflight: the token-aware baseline that goes beyond\n * Tailwind's own preflight. Imported by `index.css` as part of the\n * canonical CSS contract; all rules live inside `@layer interlace.preflight`\n * so brand / consumer overrides land cleanly in higher-priority layers\n * without specificity wars.\n *\n *   @import \"tailwindcss\";                              Tailwind's own preflight\n *   @import \"@interlace/ui/styles/index.css\";           ← preferred (single import)\n *\n * Or, if a consumer must compose the layers manually:\n *   @import \"@interlace/ui/styles/tokens.css\";          motion\n *   @import \"@interlace/ui/styles/foundation.css\";      type + spacing + radius\n *   @import \"@interlace/ui/styles/preflight.css\";       ← THIS FILE (token-aware baseline)\n *   @import \"@interlace/ui/styles/theme.css\";            fumadocs color bridge\n *   @import \"@interlace/ui/styles/interlace-theme.css\";  brand color values\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 interlace-theme.css);\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 interlace.preflight {\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 interlace.preflight */\n\n"
    },
    {
      "path": "registry/interlace-ui/styles/theme.css",
      "target": "styles/interlace/theme.css",
      "type": "registry:style",
      "content": "/*\n * @interlace/ui — fumadocs-flavored theme overrides used by every docs site\n * built on top of @interlace/ui + fumadocs-ui.\n *\n * Import once in the consuming app's global stylesheet, AFTER\n * `fumadocs-ui/css/<theme>.css` and `fumadocs-ui/css/preset.css`:\n *\n *   @import \"fumadocs-ui/css/neutral.css\";\n *   @import \"fumadocs-ui/css/preset.css\";\n *   @import \"@interlace/ui/styles/theme.css\";\n *\n * What's in here, why each block exists:\n *\n *   1. shadcn-token bridge — @interlace/ui primitives (Card, DropdownMenu,\n *      Popover, …) use bare shadcn tokens (`bg-card`, `bg-popover`, `text-foreground`).\n *      Fumadocs ships the `--color-fd-*` family but NOT the unprefixed shadcn\n *      tokens. Without these aliases every shadcn-style class resolves to an\n *      undefined variable and renders unstyled (e.g. transparent dropdowns).\n *\n *   2. Shiki AAA boosts — the github-light / github-dark Shiki themes pass AA\n *      but a handful of muted tokens (comments, certain keywords) only reach\n *      ~5:1 on white/near-black. We darken/brighten those specific\n *      CSS-variable values so every token clears AAA (7:1).\n *\n *   3. Fumadocs TOC visual fix — single-line indicator over the\n *      staircase rail. App-agnostic; any fumadocs consumer wants this.\n *\n *   4. Remote-content styling — works with @interlace/ui/fumadocs/remote-markdown.\n *      Badge images inline, centered figure divs, image overflow.\n *\n *   5. Lightweight CSS animations — fade-in-up / slide-in-left / scale-in.\n *      Reduced-motion contract is already wired in tokens.css.\n *\n * Brand colors (burnt-orange primary, AAA on white) are app-specific and stay in\n * the app's global.css. Don't move them here.\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 index.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 * 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\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.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\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.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\n/* ─────────────────────────────────────────────────────────────────\n * 5. Lightweight CSS animations — fade-in-up / slide-in-left / scale-in.\n *    Reduced-motion is handled in tokens.css (already imported).\n *\n *    All three are ENTRY animations: fill mode `both`, starting from\n *    `opacity: 0`. Nothing the reader came for is legible until they\n *    finish, so MOTION_PHILOSOPHY caps them at 200ms and forbids an entry\n *    delay outright — a delay is dead time where the content is already\n *    painted at `opacity: 0` and the reader is looking at nothing.\n *\n *    They shipped at 0.5s / 0.5s+0.3s / 0.4s+0.2s, i.e. up to 800ms of\n *    invisible hero. `motion-contract-lock` now recomputes these numbers\n *    from this file, so the next 0.5s has to argue with a red test rather\n *    than with a reviewer's memory of the budget.\n * ──────────────────────────────────────────────────────────────── */\n@keyframes fade-in-up {\n  from {\n    opacity: 0;\n    transform: translateY(20px);\n  }\n  to {\n    opacity: 1;\n    transform: translateY(0);\n  }\n}\n@keyframes slide-in-left {\n  from {\n    opacity: 0;\n    transform: translateX(-20px);\n  }\n  to {\n    opacity: 1;\n    transform: translateX(0);\n  }\n}\n@keyframes scale-in {\n  from {\n    opacity: 0;\n    transform: scale(0.9);\n  }\n  to {\n    opacity: 1;\n    transform: scale(1);\n  }\n}\n\n.animate-fade-in-up {\n  animation: fade-in-up 0.2s ease-out both;\n}\n.animate-slide-in-left {\n  animation: slide-in-left 0.2s ease-out both;\n}\n.animate-scale-in {\n  animation: scale-in 0.2s ease-out both;\n}\n"
    },
    {
      "path": "registry/interlace-ui/styles/interlace-theme.css",
      "target": "styles/interlace/interlace-theme.css",
      "type": "registry:style",
      "content": "/*\n * @interlace/ui — canonical Interlace brand theme (light + dark).\n *\n * Imported by `index.css` (the canonical barrel). Direct consumer import is\n * still supported for backward-compat, but new consumers should prefer:\n *\n *   @import \"@interlace/ui/styles/index.css\";   // ← one line, full contract\n *\n * Why this file exists separately from theme.css:\n *\n *   - `theme.css` is the **bridge** layer — maps shadcn-bare tokens (`--card`,\n *     `--popover`) to whatever the surrounding framework exposes\n *     (`--color-fd-*` from fumadocs, in this project).\n *   - `interlace-theme.css` is the **brand** layer — concrete hex values that\n *     identify this product. App consumers who fork the brand override the\n *     `@layer interlace.brand` block (see `THEME_AUTHORING.md` once it lands);\n *     the bridge layer (`theme.css`) stays.\n *\n * ─── Two orthogonal axes: scheme × theme ──────────────────────────\n *\n * A colour SCHEME and a THEME are different questions and must not share a\n * selector. Until Phase 8 they did: the dark block was keyed on\n * `.dark, [data-theme='dark']`, which spends the `data-theme` attribute —\n * the only obvious place to put \"which brand\" — on \"which scheme\".\n *\n *   scheme  →  light | dark              (`.dark` / `[data-scheme='dark']`)\n *   theme   →  interlace | harbor | …    (`[data-theme='<name>']`)\n *\n * | Selector                        | Means                                |\n * |---------------------------------|--------------------------------------|\n * | `:root`                         | interlace · light  (the default)     |\n * | `.dark`, `[data-scheme='dark']` | interlace · dark                     |\n * | `[data-theme='X']`              | theme X · light   (themes/X.css)     |\n * | `[data-theme='X'].dark`         | theme X · dark    (themes/X.css)     |\n *\n * `.dark` stays load-bearing on purpose: it is the shadcn / next-themes\n * convention, every consumer and the Storybook `withThemeByClassName`\n * decorator write it, and breaking it to gain a cleaner name would be\n * vanity. The new axis is purely ADDITIVE — nothing that worked before\n * stopped working, with one deliberate exception: `[data-theme='dark']` no\n * longer means \"dark scheme\". It now reads as \"the theme named dark\", which\n * is not a registered theme, so it resolves to interlace · light. Consumers\n * on that spelling move to `[data-scheme='dark']` (or `.dark`).\n *\n * Every theme file declares into `@layer interlace.brand` and overrides ONLY\n * `--interlace-*` hex values. The semantics layer below and the\n * `@theme inline` block never change — that is the whole point of the\n * cascade, and it is why a theme is a data file rather than a pile of CSS.\n * `THEME_TOKENS` (src/lib/theme-tokens.ts) enumerates every token a theme\n * must define, and `__tests__/theme-contract-lock.test.ts` fails on a theme\n * that omits one — because a missing token does not throw, it silently\n * inherits the PREVIOUS theme's value and ships a two-brand page nobody\n * notices.\n *\n * ─── Layer model ──────────────────────────────────────────────────\n *\n * This file declares content into TWO cascade layers:\n *\n *   @layer interlace.brand     — concrete hex values (--interlace-* literals).\n *                                Light + dark mode color palettes. THE\n *                                supported consumer override surface.\n *\n *   @layer interlace.semantics — semantic alias bindings (--background,\n *                                --foreground, --muted-foreground, ...) that\n *                                resolve to the brand layer's --interlace-*\n *                                via `var()`. Tailwind v4 `@theme inline`\n *                                stays at the top level (NOT wrapped in a\n *                                custom layer) because Tailwind processes\n *                                that directive globally to emit utilities.\n *\n * Contrast contract (WCAG 2.2 AA):\n *   - Body text on background: ≥ 4.5:1 (target: 7:1 AAA where possible)\n *   - Large text + UI controls on adjacent surface: ≥ 3:1\n *   - Focus ring on adjacent colors: ≥ 3:1 (WCAG 2.2 SC 2.4.13)\n *   - Verified at https://webaim.org/resources/contrastchecker/ — every\n *     primary/foreground pair below clears the floor for its mode.\n *\n * Source palette: the Interlace mark — burnt orange (see render-cover.sh).\n *   Light primary: #7d350c → 8.80:1 on white (AAA)\n *   Dark primary:  #fbb99a → 11.79:1 on near-black (AAA)\n *\n * Replaced the Tailwind-violet palette this system shipped with. Every pair\n * below was re-measured after the swap; none regressed.\n */\n\n@layer interlace.brand {\n  /* ─────────────────────────────────────────────────────────────────\n   *  LIGHT — default\n   * ──────────────────────────────────────────────────────────────── */\n  :root {\n    /* Brand\n     *\n     * Burnt orange, from the mark. #7d350c measures 8.80:1 on white, 8.12:1\n     * on `--accent` (#fef4ed), and 7.46:1 on its OWN 10% tint — that last one\n     * is the binding constraint. `bg-primary/10` + `text-primary` is a stock\n     * shadcn badge pattern, and it composites to #f3ebe7 on white; a lighter\n     * orange (#8a3a10) landed at 6.63:1 there and axe failed the enhanced\n     * check. This value tracks violet-800's old profile (8.98 / 7.56) so the\n     * AAA floor holds on every catalogue surface AND on brand-tinted ones. */\n    --interlace-primary: #7d350c;            /* 8.80:1 on white (AAA) */\n    --interlace-primary-hover: #6b2b09;      /* 10.63:1 on white */\n    --interlace-primary-active: #4d2009;     /* 13.76:1 on white */\n    --interlace-primary-foreground: #ffffff;\n    --interlace-primary-subtle: #fef4ed;     /* warm tint for backgrounds */\n    --interlace-primary-subtle-foreground: #4d2009;  /* 12.70:1 on subtle (AAA) */\n\n    /* Surface */\n    --interlace-background: #ffffff;\n    --interlace-foreground: #0d0b09;         /* near-black, slight warm tint */\n    --interlace-card: #ffffff;\n    --interlace-card-foreground: #0d0b09;\n    --interlace-popover: #ffffff;\n    --interlace-popover-foreground: #0d0b09;\n    --interlace-muted: #faf7f4;              /* warm-tinted neutral */\n    --interlace-muted-foreground: #4d453c;   /* 8.06:1 on white (AAA body); darkened from #6b6580 to clear AA even under axe sub-pixel rounding on hairline text */\n    --interlace-border: #eae7e2;    /* 1.23:1 on white — decorative separators only, exempt from 1.4.11 */\n    /* `--input` is the BOUNDARY of a form control (input / textarea / select\n     * trigger / checkbox / radio / switch track), so WCAG 2.2 SC 1.4.11\n     * (Non-text Contrast, AA) demands ≥3:1 against the adjacent surface —\n     * the border is the only thing identifying the control.\n     *\n     * It used to alias `--border` (#eae7e2 → 1.23:1 on white): every\n     * unfocused field in the DS was effectively invisible to a low-vision\n     * user. Forked to a warm mid-grey that clears the floor while keeping\n     * the brand's warm cast. Decorative `--border` deliberately stays soft. */\n    --interlace-input: #8f857a;              /* 3.62:1 on white (SC 1.4.11 AA) */\n    --interlace-ring: var(--interlace-primary);\n\n    /* Accent */\n    --interlace-accent: #fef4ed;             /* warm tint */\n    --interlace-accent-foreground: #73300d;  /* 8.98:1 on accent (AAA) */\n\n    /* Secondary */\n    --interlace-secondary: #f5f3f0;\n    --interlace-secondary-foreground: #1f1a15;\n\n    /* Destructive (Tailwind red-800 — bumped from red-700 #b91c1c (6.4:1) so\n     * text-destructive on white clears WCAG 2.2 AAA (≥7:1) for normal body\n     * text. red-800 #991b1b ≈ 8.0:1. */\n    --interlace-destructive: #991b1b;\n    --interlace-destructive-foreground: #ffffff;\n\n    /* Success (Tailwind emerald-800 — bumped from emerald-600 #059669 (3.7:1).\n     * text-success on white now ≈ 7.3:1, clearing AAA. The original brand\n     * green stays available for bg-success surfaces (paired with white\n     * foreground) where the contrast is between surface and foreground, not\n     * surface and parent. */\n    --interlace-success: #065f46;\n    --interlace-success-foreground: #ffffff;\n\n    /* Warning (Tailwind amber-900 — bumped from amber-600 #d97706 (3.5:1).\n     * Yellow on white can't physically clear 7:1 at its brand-bright value,\n     * so the text token drops to amber-900 #78350f ≈ 8.5:1. For \"yellow\n     * background\" treatments, pair `bg-amber-500` (decorative bg) with\n     * `text-warning` (this token) — contrast is then warning on amber, not\n     * warning on white. */\n    --interlace-warning: #78350f;\n    --interlace-warning-foreground: #ffffff;\n\n    /* Info (Tailwind blue-800 — new semantic token. text-info on white ≈\n     * 8.5:1, AAA. Pair with bg-info-foreground for filled surfaces. */\n    --interlace-info: #1e40af;\n    --interlace-info-foreground: #ffffff;\n\n    /* Caution — the rung BETWEEN warning and destructive. Scorecard ladders\n     * need five distinguishable tones (excellent / good / fair / poor /\n     * fail); without this token `poor` had no home and GradeBadge reached\n     * outside the palette for a raw `bg-orange-900`. Tailwind orange-900\n     * #7c2d12 ≈ 9.0:1 on white and stays hue-distinct from `--warning`\n     * (amber-900 #78350f) at a glance while sharing the warm family. */\n    --interlace-caution: #7c2d12;\n    --interlace-caution-foreground: #ffffff;\n\n    /* Scrim — the dark wash laid over an arbitrary image so text on top\n     * stays legible (featured article covers, media overlays). Like the\n     * hero surface these do NOT invert: the scrim's whole job is to be\n     * darker than whatever photo sits under it, in either colour scheme.\n     * Always used with a Tailwind alpha modifier (`bg-scrim/70`) — the\n     * solid values are the ramp's endpoints, not what ships on screen.\n     * #ffffff on #000000/70 over a mid-tone cover measures ≥ 7:1. */\n    --interlace-scrim: #000000;\n    --interlace-scrim-foreground: #ffffff;\n\n    /* Cosmic hero effects — the three colours the starfield preset paints\n     * onto <canvas> / SVG gradients (shooting-star head, its trail, meteor\n     * streak). They live in the brand layer because the hero is the most\n     * brand-visible surface we ship, and because canvas ignores the\n     * cascade: HeroCosmic resolves these at runtime rather than letting a\n     * vendored default paint the pre-brand violet palette (R19).\n     *\n     * The hero always renders on a deep near-black gradient in BOTH modes\n     * (it is its own surface, not a themed one), so these do not invert. */\n    --interlace-hero-star: #fbb99a;   /* brand orange tint — star head */\n    --interlace-hero-trail: #0d9460;  /* brand green — trail gradient */\n    --interlace-hero-meteor: #fdd6c2; /* palest orange — meteor streak */\n\n    /* Cosmic hero surface. The hero is its OWN surface, not a themed one:\n     * a starfield only reads as a starfield on near-black, so these do not\n     * invert with the colour scheme. That is exactly why they need their\n     * own tokens — reaching for `--background` / `--foreground` here would\n     * paint black text on a black hero in light mode (the bug this pair\n     * replaces). #f0ede9 on #0d0b09 measures 16.4:1 (AAA). */\n    --interlace-hero-surface: #0d0b09;      /* gradient midpoint */\n    --interlace-hero-surface-deep: #000000; /* gradient floor */\n    --interlace-hero-foreground: #f0ede9;   /* 16.4:1 on the surface (AAA) */\n\n    /* Window controls — the three macOS traffic-light dots used by the\n     * CodeWindow chrome. Purely decorative (the dot row is `aria-hidden`),\n     * but they live here so a consumer forking the brand can restyle the\n     * chrome without patching component source. Values are the macOS\n     * system colours the affordance is quoting. */\n    --interlace-window-control-close: #ff5f57;\n    --interlace-window-control-minimize: #febc2e;\n    --interlace-window-control-zoom: #28c840;\n\n    /* Chart palette — five distinct hues for series colors, brand-owned\n     * so consumers can fork via `@layer interlace.brand`. Values match the\n     * existing oklch ladder in theme.css (≥4.5:1 on bg-card light); the\n     * promotion here makes the chart series an explicit brand surface\n     * with `@layer interlace.brand` override semantics like every other\n     * brand-coupled token. */\n    /* Strands — the woven brand gesture (BRAND_PHILOSOPHY.md).\n     *\n     * strand-a is the mark's burnt orange (hue 41, same profile as\n     * chart-1). strand-b is its temperature complement, a cool steel\n     * blue (hue 230) — NOT chart-2's emerald (hue 162), which is the\n     * success status hue; status colors are never decorative. The pair\n     * is the only palette permitted in woven gestures (InterlaceWeave,\n     * HeroStrand, TimelineMap marks + link threads), and woven gestures\n     * are the only place strand-b may appear. Strokes: ≥3:1 both modes. */\n    --interlace-strand-a: oklch(0.55 0.16 41);\n    --interlace-strand-b: oklch(0.55 0.12 230);\n\n    --interlace-chart-1: oklch(0.55 0.16 41);   /* brand orange */\n    --interlace-chart-2: oklch(0.55 0.14 162);  /* brand green */\n    --interlace-chart-3: oklch(0.55 0.18 264);  /* blue */\n    --interlace-chart-4: oklch(0.55 0.14 90);   /* olive */\n    --interlace-chart-5: oklch(0.55 0.13 200);  /* cyan */\n\n    /* Visualisation chrome — the parts of a chart that are NOT the series.\n     *\n     * `--chart-N` answers \"which line is which\". These answer \"what is the\n     * line drawn on\": gridlines, axis, graph edges. Three hex values; every\n     * other `--viz-*` token in the semantics layer is a var() alias of an\n     * already-AA-verified token, so a brand fork has three numbers to pick,\n     * not fifteen. Warm-neutral to sit with the brand, not the cool greys.\n     *\n     * Contrast, measured against `--interlace-background` #ffffff (which is\n     * also `--interlace-card` in light mode):\n     *   grid  #e0dad2 → 1.39:1  DECORATIVE. Gridlines must never be the sole\n     *                           carrier of a value — that is what the axis\n     *                           labels and the sr-only table are for. Kept\n     *                           deliberately below 3:1 so a dense grid does\n     *                           not fight the series it exists to support.\n     *   axis  #8d857a → 3.64:1  Clears WCAG 2.2 SC 1.4.11 (3:1, non-text UI\n     *                           boundary). The axis IS structural — it is what\n     *                           tells you where zero is.\n     *   edge  #e0dad2 → 1.39:1  Ambient graph texture, same weight as grid.\n     *                           An edge that MEANS something (selected, on the\n     *                           highlighted path) switches to `--viz-edge-active`\n     *                           (= `--primary`). Same split as the slider rail\n     *                           vs knob: the low-contrast element is\n     *                           supplementary, the high-contrast one carries\n     *                           the success criterion. */\n    --interlace-viz-grid: #e0dad2;\n    --interlace-viz-axis: #8d857a;\n    --interlace-viz-edge: #e0dad2;\n\n    /* Radii (8/12/16 — three-step scale) */\n    --interlace-radius-sm: 0.5rem;   /*  8px */\n    --interlace-radius-md: 0.75rem;  /* 12px */\n    --interlace-radius-lg: 1rem;     /* 16px */\n\n    /* Brand mark — bar fills for the two-bar Interlace mark (nav lockups;\n     * see packages/ui/src/patterns/brand-logo.tsx). Decorative fills, not\n     * text, so they track the favicon pair rather than the AAA text ramp.\n     * Values match the eslint.interlace.tools nav mark. */\n    --interlace-brand-mark-bar-o: #a84c17;\n    --interlace-brand-mark-bar-g: #0a6b47;\n  }\n\n  /* ─────────────────────────────────────────────────────────────────\n   *  INTERLACE · DARK — the scheme axis.\n   *\n   *  `.dark` is the shadcn / next-themes class every consumer already\n   *  writes; `[data-scheme='dark']` is the attribute spelling for hosts\n   *  that would rather not touch className. They are the SAME axis, and\n   *  neither of them says anything about which brand is active — that is\n   *  `[data-theme]`, handled in styles/themes/*.css.\n   * ──────────────────────────────────────────────────────────────── */\n  .dark,\n  [data-scheme='dark'] {\n    /* Brand — inverted weight: a light tint of the same burnt orange, so\n     * both directions clear AAA. text-primary on near-black is 11.79:1, and\n     * bg-primary with text-primary-foreground (#0a0a0a) is the same 11.79:1.\n     * The cover orange #f4794a is only 7.24:1 here, too dark to carry the\n     * bidirectional pair, hence the lighter tint. */\n    --interlace-primary: #fbb99a;            /* 11.79:1 on dark bg (AAA) */\n    --interlace-primary-hover: #fcc9b0;      /* 13.31:1 */\n    --interlace-primary-active: #fdd6c2;     /* 14.68:1 */\n    --interlace-primary-foreground: #0a0a0a; /* near-black — 11.79:1 on primary */\n    --interlace-primary-subtle: #3d1a08;     /* tinted background */\n    --interlace-primary-subtle-foreground: #fdd6c2;  /* 11.54:1 on subtle (AAA) */\n\n    /* Surface */\n    --interlace-background: #0a0a0a;\n    --interlace-foreground: #f0ede9;\n    --interlace-card: #171412;\n    --interlace-card-foreground: #f0ede9;\n    --interlace-popover: #171412;\n    --interlace-popover-foreground: #f0ede9;\n    --interlace-muted: #171412;\n    --interlace-muted-foreground: #c9c3bb;   /* 9.6:1 on #0a0a0a (AAA); brightened from #a09cb3 (4.94:1) to clear AA even when stories render against `bg-fd-card/50` tinted surfaces */\n    --interlace-border: #252019;    /* 1.22:1 on near-black — decorative separators only */\n    /* Dark counterpart of the SC 1.4.11 fork above. #252019 measured\n     * 1.22:1 on `--background` — same invisible-control failure as light. */\n    --interlace-input: #6b635a;              /* 3.35:1 on #0a0a0a (SC 1.4.11 AA) */\n    --interlace-ring: var(--interlace-primary);\n\n    /* Accent */\n    --interlace-accent: #3d1a08;             /* deep warm tint */\n    --interlace-accent-foreground: #fcc9b0;  /* 10.46:1 on accent (AAA) */\n\n    /* Secondary */\n    --interlace-secondary: #201c17;\n    --interlace-secondary-foreground: #f0ede9;\n\n    /* Destructive (red-300 — bumped from red-500 #ef4444 (~5.2:1) so\n     * text-destructive on near-black clears AAA. red-300 #fca5a5 ≈ 9:1. */\n    --interlace-destructive: #fca5a5;\n    --interlace-destructive-foreground: #0a0a0a;\n\n    /* Success (emerald-400 — bumped from emerald-500 #10b981 (~6.3:1) for\n     * AAA on dark. emerald-400 #34d399 ≈ 8.5:1. */\n    --interlace-success: #34d399;\n    --interlace-success-foreground: #052e16;\n\n    /* Warning (amber-500 — already 7.7:1 on near-black, AAA. No bump needed\n     * because yellows are physically easier on dark backgrounds than on light). */\n    --interlace-warning: #f59e0b;\n    --interlace-warning-foreground: #1e1b2e;\n\n    /* Info (blue-300 — new semantic. text-info on near-black ≈ 8.7:1 (AAA). */\n    --interlace-info: #93c5fd;\n    --interlace-info-foreground: #0a0a0a;\n\n    /* Caution (orange-300 — the dark-mode twin of the light orange-900 rung.\n     * #fdba74 ≈ 10.9:1 on near-black; against its own `--caution-foreground`\n     * (#0a0a0a) the filled chip reads the same 10.9:1, so the pair holds in\n     * both directions like every other status token here. */\n    --interlace-caution: #fdba74;\n    --interlace-caution-foreground: #0a0a0a;\n\n    /* ── Scheme-invariant tokens, restated ──────────────────────────\n     * The nine tokens below plus the three radii hold the SAME value in\n     * both schemes — a scrim is dark because it sits on a photo, and the\n     * cosmic hero paints its own near-black surface in either scheme (see\n     * the light block for the full reasoning on each).\n     *\n     * They are restated here anyway, following the precedent the window\n     * controls set below: every theme × scheme block is a COMPLETE\n     * override surface. That is what makes `THEME_TOKENS` checkable — a\n     * per-scheme block that only carries the tokens which happen to\n     * invert gives a forking consumer no way to tell \"deliberately the\n     * same\" apart from \"forgotten\", and the lock no way to tell either. */\n    --interlace-scrim: #000000;\n    --interlace-scrim-foreground: #ffffff;\n\n    --interlace-hero-star: #fbb99a;   /* brand orange tint — star head */\n    --interlace-hero-trail: #0d9460;  /* brand green — trail gradient */\n    --interlace-hero-meteor: #fdd6c2; /* palest orange — meteor streak */\n\n    --interlace-hero-surface: #0d0b09;      /* gradient midpoint */\n    --interlace-hero-surface-deep: #000000; /* gradient floor */\n    --interlace-hero-foreground: #f0ede9;   /* 16.4:1 on the surface (AAA) */\n\n    /* Radii (8/12/16 — three-step scale) */\n    --interlace-radius-sm: 0.5rem;   /*  8px */\n    --interlace-radius-md: 0.75rem;  /* 12px */\n    --interlace-radius-lg: 1rem;     /* 16px */\n\n    /* Window controls — macOS ships the same traffic-light hues in dark\n     * mode, so these do not invert. Declared here anyway so the dark block\n     * is a complete override surface for a forking consumer. */\n    --interlace-window-control-close: #ff5f57;\n    --interlace-window-control-minimize: #febc2e;\n    --interlace-window-control-zoom: #28c840;\n\n    /* Chart palette — lifted lightness so each series stays ≥4.5:1 on\n     * `bg-card` (near-black). Same five hues as light, repositioned for\n     * dark surfaces. */\n    /* Strands — lighter tints of the same pair (chart dark profile) */\n    --interlace-strand-a: oklch(0.78 0.14 41);\n    --interlace-strand-b: oklch(0.78 0.1 230);\n\n    --interlace-chart-1: oklch(0.78 0.14 41);   /* brand orange */\n    --interlace-chart-2: oklch(0.78 0.12 162);  /* brand green */\n    --interlace-chart-3: oklch(0.78 0.16 264);  /* blue */\n    --interlace-chart-4: oklch(0.78 0.12 90);   /* olive */\n    --interlace-chart-5: oklch(0.78 0.11 200);  /* cyan */\n\n    /* Visualisation chrome — dark. Measured against BOTH dark surfaces,\n     * because a chart normally renders inside a Card, not on the page:\n     *   grid  #2d2823 → 1.36:1 on bg / 1.26:1 on card   DECORATIVE\n     *   axis  #746c60 → 3.82:1 on bg / 3.54:1 on card   clears SC 1.4.11 on both\n     *   edge  #2d2823 → 1.36:1 on bg / 1.26:1 on card   ambient\n     * Perceptual weight matched to light mode (1.39 / 3.64 / 1.39) so a grid\n     * does not read as heavier in one theme than the other. */\n    --interlace-viz-grid: #2d2823;\n    --interlace-viz-axis: #746c60;\n    --interlace-viz-edge: #2d2823;\n\n    /* Brand mark — brighter pair for dark chrome (favicon dark variant). */\n    --interlace-brand-mark-bar-o: #f4794a;\n    --interlace-brand-mark-bar-g: #0d9460;\n  }\n}\n\n@layer interlace.semantics {\n  /* ─────────────────────────────────────────────────────────────────\n   *  Bind brand tokens to the shadcn-bare semantic names. Apps that want\n   *  to override individual semantic values can re-declare them either\n   *  here (`@layer interlace.semantics { :root { --background: ... } }`)\n   *  AFTER importing this file, or they can fork the entire brand layer\n   *  upstream (`@layer interlace.brand { ... }`) to swap the underlying\n   *  hex values without touching the alias graph.\n   *\n   *  WHY FOUR SELECTORS AND NOT JUST `:root`. A custom property whose\n   *  value is a `var()` is substituted at computed-value time on the\n   *  element that DECLARES it, then inherited as a resolved value. So\n   *  `:root { --primary: var(--interlace-primary) }` freezes whatever\n   *  `--interlace-primary` is on the root. If a subtree re-brands itself\n   *  (`<div class=\"dark\">` — which is exactly what a Storybook decorator\n   *  or a side-by-side theme preview does), the brand token changes on\n   *  that div while `--primary` stays frozen at the root's value, and\n   *  nothing repaints. Re-binding on every element that can carry a brand\n   *  override is what makes subtree theming work.\n   *\n   *  `[data-theme]` is attribute-presence, not a value match: it covers\n   *  every theme file that ever ships, so adding themes/<name>.css needs\n   *  no edit here. THIS LIST IS THE COMPLETE SET OF BRAND-OVERRIDE\n   *  SELECTORS — a new one must be added here too, or its subtree will\n   *  render the parent's semantics over the child's brand.\n   * ──────────────────────────────────────────────────────────────── */\n  :root,\n  .dark,\n  [data-scheme='dark'],\n  [data-theme] {\n    --primary: var(--interlace-primary);\n    --primary-foreground: var(--interlace-primary-foreground);\n    --background: var(--interlace-background);\n    --foreground: var(--interlace-foreground);\n    --card: var(--interlace-card);\n    --card-foreground: var(--interlace-card-foreground);\n    --popover: var(--interlace-popover);\n    --popover-foreground: var(--interlace-popover-foreground);\n    --muted: var(--interlace-muted);\n    --muted-foreground: var(--interlace-muted-foreground);\n    --accent: var(--interlace-accent);\n    --accent-foreground: var(--interlace-accent-foreground);\n    --secondary: var(--interlace-secondary);\n    --secondary-foreground: var(--interlace-secondary-foreground);\n    --border: var(--interlace-border);\n    --input: var(--interlace-input);\n    --ring: var(--interlace-ring);\n    --destructive: var(--interlace-destructive);\n    --destructive-foreground: var(--interlace-destructive-foreground);\n\n    /* Status semantics — NEW. Surfaces success / warning / info as\n     * shadcn-bare token names so consumers reach for `bg-success`,\n     * `text-warning`, `bg-info` instead of `bg-emerald-700` /\n     * `bg-amber-500` / `bg-blue-600`. Brand fork-friendly: override\n     * `--interlace-success` / `-warning` / `-info` in\n     * `@layer interlace.brand` to swap the underlying hex. */\n    --success: var(--interlace-success);\n    --success-foreground: var(--interlace-success-foreground);\n    --warning: var(--interlace-warning);\n    --warning-foreground: var(--interlace-warning-foreground);\n    --info: var(--interlace-info);\n    --info-foreground: var(--interlace-info-foreground);\n    --caution: var(--interlace-caution);\n    --caution-foreground: var(--interlace-caution-foreground);\n\n    --scrim: var(--interlace-scrim);\n    --scrim-foreground: var(--interlace-scrim-foreground);\n    --hero-star: var(--interlace-hero-star);\n    --hero-trail: var(--interlace-hero-trail);\n    --hero-meteor: var(--interlace-hero-meteor);\n    --hero-surface: var(--interlace-hero-surface);\n    --hero-surface-deep: var(--interlace-hero-surface-deep);\n    --hero-foreground: var(--interlace-hero-foreground);\n\n    /* Window-control dots — unprefixed names so the CodeWindow chrome can be\n     * lifted into a consumer that defines only these three properties. */\n    --window-control-close: var(--interlace-window-control-close);\n    --window-control-minimize: var(--interlace-window-control-minimize);\n    --window-control-zoom: var(--interlace-window-control-zoom);\n\n    /* Chart palette — semantic aliases of the brand layer. Overrides\n     * the bridge layer (theme.css) values, so a consumer who wants\n     * different chart hues forks `@layer interlace.brand` to set\n     * `--interlace-chart-N` and the `--chart-N` token flows through. */\n    /* Strand pair — the woven brand gesture (BRAND_PHILOSOPHY.md) */\n    --strand-a: var(--interlace-strand-a);\n    --strand-b: var(--interlace-strand-b);\n\n    --chart-1: var(--interlace-chart-1);\n    --chart-2: var(--interlace-chart-2);\n    --chart-3: var(--interlace-chart-3);\n    --chart-4: var(--interlace-chart-4);\n    --chart-5: var(--interlace-chart-5);\n\n    /* Visualisation semantics — the chart's non-series vocabulary.\n     *\n     * Declared HERE and not in `theme.css`, on purpose: `--chart-N` is a\n     * shadcn-bare name the bridge layer must supply for stock shadcn chart\n     * code, but `--viz-*` is Interlace-original. `index.css` imports both, so\n     * every consumer on the canonical one-line import gets it.\n     *\n     * Three resolve to brand hex (grid / axis / edge — contrast tables above).\n     * Every other one is an ALIAS of a token whose contrast is already verified\n     * in both themes. Deliberate: a diverging red/green scale that drifts away\n     * from `--success` / `--destructive` is how a product ends up with two\n     * greens that mean \"good\". One fork surface, one green. */\n    --viz-grid: var(--interlace-viz-grid);\n    --viz-axis: var(--interlace-viz-axis);\n    --viz-edge: var(--interlace-viz-edge);\n\n    /* Meaning-bearing marks — each an existing, verified token. */\n    --viz-edge-active: var(--primary);\n    --viz-node: var(--muted-foreground);\n    --viz-node-active: var(--primary);\n    --viz-crosshair: var(--muted-foreground);\n\n    /* Direction. NOTE FOR COMPONENT AUTHORS: colour must never be the only\n     * signal — red/green is invisible to ~8% of men. Every component using\n     * these also prints a sign, an arrow, or a shape. See\n     * docs/philosophies/VISUALIZATION_PHILOSOPHY.md. */\n    --viz-positive: var(--success);\n    --viz-negative: var(--destructive);\n    --viz-neutral: var(--muted-foreground);\n\n    /* Threshold / target bands drawn behind the series. Alpha-composited off\n     * `--foreground` so it tracks the theme instead of needing a pair. */\n    --viz-band: color-mix(in srgb, var(--foreground) 6%, transparent);\n\n    /* Annotations — an action drawn ON the curve. Three kinds, three verified\n     * hues, distinguished by marker SHAPE as well as hue (shape is what\n     * survives greyscale). */\n    --viz-annotation-publish: var(--primary);\n    --viz-annotation-release: var(--info);\n    --viz-annotation-action: var(--warning);\n\n    /* Override fumadocs-prefixed tokens for AA contrast.\n     *\n     * Fumadocs `neutral.css` ships `--color-fd-muted-foreground: #737373`,\n     * which yields 4.34–4.46:1 contrast against the `bg-fd-card/40-50`\n     * surfaces our Section / SectionHeader stories render — just below\n     * the WCAG 2.2 AA 4.5:1 floor and gates Storybook a11y CI red.\n     *\n     * Rebinding to the brand muted-foreground (a darker warm grey in\n     * light, lighter in dark) clears the threshold and keeps brand\n     * consistency between shadcn-styled and fumadocs-styled surfaces.\n     */\n    --color-fd-muted-foreground: var(--interlace-muted-foreground);\n\n    /* Brand mark bar fills — the UNPREFIXED names are the cross-repo\n     * contract: brand-logo.tsx and the eslint docs site both read\n     * `var(--brand-mark-bar-*)`, so a consumer outside this monorepo can\n     * define just these two properties and render the same lockup. */\n    --brand-mark-bar-o: var(--interlace-brand-mark-bar-o);\n    --brand-mark-bar-g: var(--interlace-brand-mark-bar-g);\n  }\n}\n\n/* Register the shadcn-bare tokens as Tailwind v4 theme keys so utilities\n * like `bg-card`, `text-foreground`, `border-border`, `bg-primary` are\n * generated. `inline` preserves the `var()` reference, so the runtime\n * `.dark { --background: ... }` overrides above flow through to every\n * utility. Without this block, Tailwind v4 emits no `bg-card` rule\n * regardless of what `--card` resolves to on :root.\n *\n * STAYS AT TOP LEVEL (NOT inside `@layer`): Tailwind v4's `@theme`\n * directive is a special generator — it registers tokens AND emits\n * utility rules in Tailwind's own `theme` / `utilities` layers. Wrapping\n * it in a custom `@layer interlace.*` block breaks that processing. The\n * cascade-layer story applies to the alias bindings above, not to the\n * token-registration directive. */\n@theme inline {\n  --color-background: var(--background);\n  --color-foreground: var(--foreground);\n  --color-card: var(--card);\n  --color-card-foreground: var(--card-foreground);\n  --color-popover: var(--popover);\n  --color-popover-foreground: var(--popover-foreground);\n  --color-primary: var(--primary);\n  --color-primary-foreground: var(--primary-foreground);\n  --color-secondary: var(--secondary);\n  --color-secondary-foreground: var(--secondary-foreground);\n  --color-muted: var(--muted);\n  --color-muted-foreground: var(--muted-foreground);\n  --color-accent: var(--accent);\n  --color-accent-foreground: var(--accent-foreground);\n  --color-border: var(--border);\n  --color-input: var(--input);\n  --color-ring: var(--ring);\n  --color-destructive: var(--destructive);\n  --color-destructive-foreground: var(--destructive-foreground);\n\n  /* Status semantics — generates bg-success, text-warning, bg-info,\n   * border-info etc. */\n  --color-success: var(--success);\n  --color-success-foreground: var(--success-foreground);\n  --color-warning: var(--warning);\n  --color-warning-foreground: var(--warning-foreground);\n  --color-info: var(--info);\n  --color-info-foreground: var(--info-foreground);\n  --color-caution: var(--caution);\n  --color-caution-foreground: var(--caution-foreground);\n\n  /* Scrim — generates bg-scrim/70, text-scrim-foreground,\n   * border-scrim-foreground/30 so image-overlay surfaces stop reaching for\n   * `bg-black/70` + `text-white` palette escapes. */\n  --color-scrim: var(--scrim);\n  --color-scrim-foreground: var(--scrim-foreground);\n\n  /* Cosmic-hero surface — generates bg-hero-surface / text-hero-foreground\n   * so HeroCosmic paints its always-dark surface from tokens instead of\n   * `via-slate-950 to-black` palette escapes. */\n  --color-hero-surface: var(--hero-surface);\n  --color-hero-surface-deep: var(--hero-surface-deep);\n  --color-hero-foreground: var(--hero-foreground);\n\n  /* Window-control dots — generates bg-window-control-close etc. so the\n   * CodeWindow chrome stays inside the Tailwind utility surface (R18/R19)\n   * instead of reaching for `bg-[#ff5f57]`. */\n  --color-window-control-close: var(--window-control-close);\n  --color-window-control-minimize: var(--window-control-minimize);\n  --color-window-control-zoom: var(--window-control-zoom);\n\n  /* Chart palette utilities — generates bg-chart-1, text-chart-2,\n   * border-chart-3 etc. Already declared in theme.css (bridge layer);\n   * re-declared here at semantics-layer priority so brand overrides\n   * propagate. */\n  /* Strand utilities — generates stroke-strand-a, text-strand-a etc.\n   * for the woven brand gestures (BRAND_PHILOSOPHY.md). */\n  --color-strand-a: var(--strand-a);\n  --color-strand-b: var(--strand-b);\n\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  /* Visualisation utilities — generates stroke-viz-axis, fill-viz-band,\n   * text-viz-positive, bg-viz-grid etc. Charts are SVG, so `stroke-*` and\n   * `fill-*` are the utilities actually used; Tailwind emits them from the\n   * same `--color-*` registration as `bg-*` / `text-*`. */\n  --color-viz-grid: var(--viz-grid);\n  --color-viz-axis: var(--viz-axis);\n  --color-viz-edge: var(--viz-edge);\n  --color-viz-edge-active: var(--viz-edge-active);\n  --color-viz-node: var(--viz-node);\n  --color-viz-node-active: var(--viz-node-active);\n  --color-viz-crosshair: var(--viz-crosshair);\n  --color-viz-positive: var(--viz-positive);\n  --color-viz-negative: var(--viz-negative);\n  --color-viz-neutral: var(--viz-neutral);\n  --color-viz-band: var(--viz-band);\n  --color-viz-annotation-publish: var(--viz-annotation-publish);\n  --color-viz-annotation-release: var(--viz-annotation-release);\n  --color-viz-annotation-action: var(--viz-annotation-action);\n}\n"
    },
    {
      "path": "registry/interlace-ui/styles/themes/harbor.css",
      "target": "styles/interlace/themes/harbor.css",
      "type": "registry:style",
      "content": "/*\n * @interlace/ui — \"Harbor\" theme (light + dark).\n *\n * The SECOND theme, and the reason Phase 8 is a multi-theme system rather\n * than a one-theme system claiming to be one. A contract nothing exercises\n * is a contract nobody has tested: until a palette that is not Interlace\n * resolved through the same cascade, \"themes are supported\" was an\n * assertion about code that had never run.\n *\n * ─── What this file is allowed to touch ───────────────────────────\n *\n * `--interlace-*` hex/oklch literals, inside `@layer interlace.brand`, and\n * nothing else. No semantic alias (`--background`, `--primary`, `--viz-*`),\n * no `@theme` block, no component CSS. If a theme ever needs to reach past\n * the brand layer, the token graph is wrong — fix the graph, not the theme.\n *\n * ─── Selectors ────────────────────────────────────────────────────\n *\n *   [data-theme='harbor']                          harbor · light\n *   [data-theme='harbor'].dark                     harbor · dark\n *   [data-theme='harbor'][data-scheme='dark']      harbor · dark (attr form)\n *   [data-theme='harbor'] .dark                    harbor · dark (subtree)\n *   [data-theme='harbor'] [data-scheme='dark']     harbor · dark (subtree, attr)\n *\n * The two DESCENDANT forms are not decoration — without them a `.dark`\n * wrapper anywhere inside a Harbor page repaints that subtree in INTERLACE\n * dark, because the bare `.dark` block in interlace-theme.css re-declares\n * every brand literal on whatever element carries it. See the dark block\n * below for the full story.\n *\n * Specificity note, because it is the whole mechanism: `[data-theme='harbor']`\n * and `.dark` are BOTH (0,1,0). On `<html data-theme=\"harbor\" class=\"dark\">`\n * the tie is broken by source order — this file is imported after\n * interlace-theme.css — and then `[data-theme='harbor'].dark` (0,2,0) beats\n * everything. That only produces a coherent page because this file defines\n * EVERY token in both blocks: a token missing from the dark block would\n * silently fall through to the harbor LIGHT value sitting one specificity\n * step below it (not to Interlace dark, which is what a reader expects), and\n * a single light-mode surface in an otherwise dark page is exactly the class\n * of defect nobody files a bug for. `theme-contract-lock` is what stops it.\n *\n * ─── The palette ──────────────────────────────────────────────────\n *\n * Deep harbour blue on cool slate. Chosen to be *unmistakably* not\n * Interlace: the brand palette is warm (burnt orange #7d350c, brand green,\n * warm-tinted neutrals #faf7f4 / #4d453c), so Harbor inverts the temperature\n * on every axis — blue primary, blue-grey neutrals, a cool off-white page.\n * A second theme that reads as \"the same theme, slightly different\" proves\n * nothing about the cascade.\n *\n * Hue separation inside the theme: primary is blue (250°-ish), `--info` is\n * CYAN rather than the usual blue, because an info chip that renders in the\n * primary hue is an info chip nobody can see is an info chip.\n *\n * ─── Contrast (WCAG 2.2 AA, measured — not eyeballed) ─────────────\n *\n * Every pair below is recomputed by `__tests__/theme-contract-lock.test.ts`\n * on every run; these numbers are a reader's convenience, and the test is\n * the authority. Body text ≥ 4.5:1, non-text UI boundaries ≥ 3:1.\n *\n *                                          light      dark\n *   foreground   on background            17.74:1   16.19:1   (AAA)\n *   card-fg      on card                  18.72:1   14.69:1   (AAA)\n *   muted-fg     on background             7.82:1    9.52:1   (AAA)\n *   muted-fg     on muted                  7.34:1    8.64:1   (AAA)\n *   accent-fg    on accent                 8.95:1    9.65:1   (AAA)\n *   primary-fg   on primary                8.86:1   10.03:1   (AAA)\n *   primary      on background             8.39:1   10.03:1   (AAA)\n *   primary      on primary/10 tint        7.15:1    8.42:1   (AAA)\n *   destructive  on background             7.60:1   10.03:1   (AAA)\n *   success      on background             7.28:1    9.86:1   (AAA)\n *   warning      on background             8.60:1    8.83:1   (AAA)\n *   info         on background             6.89:1   13.08:1   (AAA)\n *   caution      on background             8.88:1   11.24:1   (AAA)\n *   hero-fg      on hero-surface          15.76:1   15.76:1   (AAA)\n *   ─ non-text (SC 1.4.11 / SC 2.4.13, floor 3:1) ─\n *   ring         on background             8.39:1   10.03:1\n *   ring         on card                   8.86:1    9.10:1\n *   input        on background             3.43:1    4.25:1\n *   input        on card                   3.62:1    3.85:1\n *   viz-axis     on background             3.57:1    4.84:1\n *   viz-axis     on card                   3.77:1    4.39:1\n *\n * `--border`, `--viz-grid` and `--viz-edge` are deliberately BELOW 3:1 in\n * both schemes (1.2–1.5:1) for the same reason they are in Interlace: they\n * are decorative separators and ambient chart texture, exempt from SC\n * 1.4.11, and a grid that fights the series it exists to support is worse\n * than a faint one.\n */\n\n@layer interlace.brand {\n  /* ─────────────────────────────────────────────────────────────────\n   *  HARBOR · LIGHT\n   * ──────────────────────────────────────────────────────────────── */\n  [data-theme='harbor'] {\n    /* Brand — harbour blue. #0f4c81 is 8.39:1 on the page and 8.86:1 on a\n     * card; the binding constraint is the same one Interlace documents,\n     * `bg-primary/10 text-primary` (the stock shadcn tinted-chip pattern),\n     * which composites to #e0e8ef and still measures 7.15:1 — clear of the\n     * AAA floor the Storybook axe gate enforces. */\n    --interlace-primary: #0f4c81;            /* 8.39:1 on background (AAA) */\n    --interlace-primary-hover: #0c3e6a;      /* 10.40:1 on background */\n    --interlace-primary-active: #082c4c;     /* 13.49:1 on background */\n    --interlace-primary-foreground: #ffffff; /* 8.86:1 on primary (AAA) */\n    --interlace-primary-subtle: #eaf2f9;     /* cool tint for backgrounds */\n    --interlace-primary-subtle-foreground: #082c4c; /* 12.59:1 on subtle (AAA) */\n\n    /* Surface — a cool off-white page with pure-white cards, so the card\n     * edge reads without leaning on `--border`. (Interlace runs white-on-\n     * white and separates with the border; both are valid, and having the\n     * two themes differ here is a genuine test of the semantics layer.) */\n    --interlace-background: #f7f9fb;\n    --interlace-foreground: #0b1220;         /* near-black, cool cast */\n    --interlace-card: #ffffff;\n    --interlace-card-foreground: #0b1220;\n    --interlace-popover: #ffffff;\n    --interlace-popover-foreground: #0b1220;\n    --interlace-muted: #eef2f6;\n    --interlace-muted-foreground: #42505f;   /* 7.82:1 on bg / 7.34:1 on muted (AAA) */\n    --interlace-border: #dde4ec;    /* 1.21:1 on background — decorative separators only, exempt from SC 1.4.11 */\n    /* Control BOUNDARY, so SC 1.4.11 applies: ≥3:1 against the adjacent\n     * surface, and the adjacent surface is `--card` (#ffffff) as often as\n     * it is the page — a form usually lives in a card. Measured on both. */\n    --interlace-input: #7b8896;              /* 3.43:1 on bg / 3.62:1 on card */\n    --interlace-ring: var(--interlace-primary);\n\n    /* Accent */\n    --interlace-accent: #eaf2f9;             /* cool tint */\n    --interlace-accent-foreground: #0b4470;  /* 8.95:1 on accent (AAA) */\n\n    /* Secondary */\n    --interlace-secondary: #eef2f6;\n    --interlace-secondary-foreground: #16202b; /* 14.63:1 on secondary (AAA) */\n\n    /* Destructive — rose-800 rather than Interlace's red-800. On a cool\n     * palette a pure red reads as a stray warm accent; rose keeps the\n     * magenta lean that sits with blue. 7.60:1 on background. */\n    --interlace-destructive: #9f1239;\n    --interlace-destructive-foreground: #ffffff; /* 8.02:1 on destructive */\n\n    /* Success — emerald-800, shared with Interlace. Green is the one status\n     * hue with no cool/warm variant worth having: it must stay far from\n     * both the blue primary and the amber warning, and emerald already is. */\n    --interlace-success: #065f46;\n    --interlace-success-foreground: #ffffff; /* 7.68:1 on success */\n\n    /* Warning — amber-900. Same reasoning as Interlace: yellow cannot\n     * physically clear 7:1 on a light page at its brand-bright value, so\n     * the TEXT token is the deep amber and bright yellow stays a surface. */\n    --interlace-warning: #78350f;\n    --interlace-warning-foreground: #ffffff; /* 9.07:1 on warning */\n\n    /* Info — CYAN (cyan-800), not blue. See the header note: in a\n     * blue-primary theme, a blue info token is indistinguishable from\n     * primary, which is the whole job of the token. */\n    --interlace-info: #155e75;\n    --interlace-info-foreground: #ffffff;    /* 7.27:1 on info */\n\n    /* Caution — the rung between warning and destructive. orange-900,\n     * shared with Interlace: the ladder needs five separable tones and\n     * this is the only warm rung Harbor keeps. */\n    --interlace-caution: #7c2d12;\n    --interlace-caution-foreground: #ffffff; /* 9.37:1 on caution */\n\n    /* Scrim — sits on a consumer-supplied photo, so it does not invert and\n     * it does not take the theme's temperature either. Always used with an\n     * alpha modifier (`bg-scrim/70`). */\n    --interlace-scrim: #000000;\n    --interlace-scrim-foreground: #ffffff;\n\n    /* Cosmic hero effects — the starfield's three painted colours. Harbor\n     * runs a blue star / cyan trail against the same always-dark hero. */\n    --interlace-hero-star: #9dc7ff;\n    --interlace-hero-trail: #22d3ee;\n    --interlace-hero-meteor: #d6e9ff;\n\n    /* Cosmic hero surface — its OWN surface, not a themed one: a starfield\n     * only reads as a starfield on near-black, so this does not invert with\n     * the scheme. #e6eef7 on #0a1424 measures 15.76:1 (AAA). */\n    --interlace-hero-surface: #0a1424;\n    --interlace-hero-surface-deep: #000000;\n    --interlace-hero-foreground: #e6eef7;\n\n    /* Window controls — the macOS traffic lights the CodeWindow chrome is\n     * quoting. These are system colours, not brand colours: a theme that\n     * recolours them stops quoting macOS and starts inventing an OS. */\n    --interlace-window-control-close: #ff5f57;\n    --interlace-window-control-minimize: #febc2e;\n    --interlace-window-control-zoom: #28c840;\n\n    /* Chart palette — five separable hues at the same lightness the\n     * Interlace ladder uses (L 0.55 light), rotated into the cool half of\n     * the wheel with one warm outlier so a five-series chart still reads\n     * in greyscale by ordering. */\n    /* Strands — harbor inverts the interlace temperatures: strand-a is\n     * the harbour blue itself, strand-b the warm counter (hue 41 — not\n     * amber ~70, which is the warning status hue). */\n    --interlace-strand-a: oklch(0.55 0.15 250);\n    --interlace-strand-b: oklch(0.55 0.14 41);\n\n    --interlace-chart-1: oklch(0.55 0.15 250);  /* harbour blue */\n    --interlace-chart-2: oklch(0.55 0.12 200);  /* cyan */\n    --interlace-chart-3: oklch(0.55 0.14 155);  /* sea green */\n    --interlace-chart-4: oklch(0.55 0.16 300);  /* violet */\n    --interlace-chart-5: oklch(0.55 0.15 350);  /* rose */\n\n    /* Visualisation chrome — what the series are drawn ON.\n     *   grid  #dde4ec → 1.21:1 on bg / 1.28:1 on card   DECORATIVE\n     *                          (never the sole carrier of a value)\n     *   axis  #788593 → 3.57:1 on bg / 3.77:1 on card — STRUCTURAL, SC 1.4.11\n     *   edge  #dde4ec → 1.21:1 on bg / 1.28:1 on card   ambient texture\n     * Perceptual weights matched to Interlace (1.39 / 3.64 / 1.39) so a\n     * chart does not read as heavier in one theme than the other. */\n    --interlace-viz-grid: #dde4ec;\n    --interlace-viz-axis: #788593;\n    --interlace-viz-edge: #dde4ec;\n\n    /* Radii — structural, not brand. Harbor keeps the 8/12/16 scale: a\n     * theme that also moves the geometry is two changes wearing one name,\n     * and radius lives in foundation.css for every consumer anyway. */\n    --interlace-radius-sm: 0.5rem;   /*  8px */\n    --interlace-radius-md: 0.75rem;  /* 12px */\n    --interlace-radius-lg: 1rem;     /* 16px */\n\n    /* Brand mark — the two bars of the mark. Decorative fills, so they\n     * track the theme's identity pair rather than the AAA text ramp. */\n    --interlace-brand-mark-bar-o: #1f6feb;\n    --interlace-brand-mark-bar-g: #0e7490;\n  }\n\n  /* ─────────────────────────────────────────────────────────────────\n   *  HARBOR · DARK\n   *\n   *  Both spellings of the scheme axis, exactly as interlace-theme.css\n   *  declares them — `.dark` (shadcn / next-themes canon, what the\n   *  Storybook decorator and every consumer writes) and the attribute\n   *  form for hosts that would rather not touch className.\n   *\n   *  ─── Why the DESCENDANT forms are here too ──────────────────────\n   *\n   *  `.dark` in interlace-theme.css is unscoped, so what it really means\n   *  is \"INTERLACE dark\" — it re-declares every `--interlace-*` literal on\n   *  whatever element carries it. A `.dark` on a SUBTREE of a Harbor page\n   *  therefore silently resets that subtree to the Interlace palette:\n   *  `[data-theme='harbor'].dark` needs both on the SAME element, and a\n   *  wrapper div has only the class.\n   *\n   *  Found in a browser (Phase 8.4): ds.interlace.tools in Harbor, with an\n   *  embedded Storybook preview whose story wraps itself in\n   *  `<div class=\"dark\">` — navy page, burnt-orange button. It reads as\n   *  \"the theme did not apply\", and it is not a story artefact: any\n   *  consumer that darkens a panel rather than the document hits it.\n   *\n   *  So a theme claims its whole subtree. `[data-theme='harbor'] .dark`\n   *  is (0,2,0) — it out-specifies the bare `.dark` (0,1,0) it is\n   *  correcting, and ties with `[data-theme='harbor'].dark`, which is\n   *  fine: they declare identical values and cannot both match the same\n   *  element anyway. Every future theme owes the same two lines; the\n   *  selector table in `__tests__/theme-contract-lock.test.ts` is where\n   *  that is checked.\n   * ──────────────────────────────────────────────────────────────── */\n  [data-theme='harbor'].dark,\n  [data-theme='harbor'][data-scheme='dark'],\n  [data-theme='harbor'] .dark,\n  [data-theme='harbor'] [data-scheme='dark'] {\n    /* Brand — inverted weight: a light tint of the same harbour blue, so\n     * both directions clear AAA. text-primary on the page is 10.03:1, and\n     * a filled `bg-primary` chip with `text-primary-foreground` is the same\n     * 10.03:1 — the pair holds in both directions. */\n    --interlace-primary: #8dc2f0;            /* 10.03:1 on background (AAA) */\n    --interlace-primary-hover: #abd3f6;      /* 12.08:1 */\n    --interlace-primary-active: #c6e2fa;     /* 14.14:1 */\n    --interlace-primary-foreground: #06111f; /* 10.03:1 on primary */\n    --interlace-primary-subtle: #0d2c48;\n    --interlace-primary-subtle-foreground: #c6e2fa; /* 10.65:1 on subtle (AAA) */\n\n    /* Surface — deep navy-black rather than Interlace's warm near-black. */\n    --interlace-background: #06111f;\n    --interlace-foreground: #e6eef7;\n    --interlace-card: #0e1c2c;\n    --interlace-card-foreground: #e6eef7;\n    --interlace-popover: #0e1c2c;\n    --interlace-popover-foreground: #e6eef7;\n    --interlace-muted: #0e1c2c;\n    --interlace-muted-foreground: #a7bacd;   /* 9.52:1 on bg / 8.64:1 on card (AAA) */\n    --interlace-border: #1b2b3d;    /* 1.32:1 on background — decorative separators only */\n    --interlace-input: #68798c;              /* 4.25:1 on bg / 3.85:1 on card (SC 1.4.11) */\n    --interlace-ring: var(--interlace-primary);\n\n    /* Accent */\n    --interlace-accent: #0d2c48;\n    --interlace-accent-foreground: #b7d8f8;  /* 9.65:1 on accent (AAA) */\n\n    /* Secondary */\n    --interlace-secondary: #14202f;\n    --interlace-secondary-foreground: #e6eef7; /* 14.04:1 on secondary (AAA) */\n\n    /* Destructive — rose-300, the dark twin of the light rose-800. */\n    --interlace-destructive: #fda4af;        /* 10.03:1 on background (AAA) */\n    --interlace-destructive-foreground: #06111f;\n\n    /* Success — emerald-400. */\n    --interlace-success: #34d399;            /* 9.86:1 on background (AAA) */\n    --interlace-success-foreground: #052e16;\n\n    /* Warning — amber-500. Yellows are physically easier on dark surfaces,\n     * so no bump is needed: 8.83:1 on the page. */\n    --interlace-warning: #f59e0b;\n    --interlace-warning-foreground: #1a1200;\n\n    /* Info — cyan-300, holding the hue separation from the blue primary\n     * that the light block explains. */\n    --interlace-info: #67e8f9;               /* 13.08:1 on background (AAA) */\n    --interlace-info-foreground: #06111f;\n\n    /* Caution — orange-300, the dark rung between warning and destructive. */\n    --interlace-caution: #fdba74;            /* 11.24:1 on background (AAA) */\n    --interlace-caution-foreground: #06111f;\n\n    /* ── Scheme-invariant tokens, restated ──────────────────────────\n     * Same values as the light block by design (a scrim is dark because it\n     * sits on a photo; the cosmic hero paints its own near-black surface in\n     * either scheme; radii are structure, not colour). Restated rather than\n     * inherited so that every theme × scheme block is a COMPLETE override\n     * surface — which is what makes THEME_TOKENS checkable, and what tells\n     * the next reader \"deliberately the same\" instead of \"forgotten\". */\n    --interlace-scrim: #000000;\n    --interlace-scrim-foreground: #ffffff;\n\n    --interlace-hero-star: #9dc7ff;\n    --interlace-hero-trail: #22d3ee;\n    --interlace-hero-meteor: #d6e9ff;\n\n    --interlace-hero-surface: #0a1424;\n    --interlace-hero-surface-deep: #000000;\n    --interlace-hero-foreground: #e6eef7;    /* 15.76:1 on the surface (AAA) */\n\n    --interlace-radius-sm: 0.5rem;   /*  8px */\n    --interlace-radius-md: 0.75rem;  /* 12px */\n    --interlace-radius-lg: 1rem;     /* 16px */\n\n    --interlace-window-control-close: #ff5f57;\n    --interlace-window-control-minimize: #febc2e;\n    --interlace-window-control-zoom: #28c840;\n\n    /* Chart palette — same five hues, lifted to L 0.78 so each series stays\n     * clear of the dark card, matching the Interlace dark ladder. */\n    /* Strands — lighter tints of the same inverted pair */\n    --interlace-strand-a: oklch(0.78 0.13 250);\n    --interlace-strand-b: oklch(0.78 0.12 41);\n\n    --interlace-chart-1: oklch(0.78 0.13 250);  /* harbour blue */\n    --interlace-chart-2: oklch(0.78 0.11 200);  /* cyan */\n    --interlace-chart-3: oklch(0.78 0.12 155);  /* sea green */\n    --interlace-chart-4: oklch(0.78 0.14 300);  /* violet */\n    --interlace-chart-5: oklch(0.78 0.13 350);  /* rose */\n\n    /* Visualisation chrome — dark, measured against BOTH dark surfaces\n     * because a chart normally renders inside a Card, not on the page:\n     *   grid  #25344a → 1.51:1 on bg / 1.37:1 on card   DECORATIVE\n     *   axis  #71829a → 4.84:1 on bg / 4.39:1 on card   clears SC 1.4.11\n     *   edge  #25344a → 1.51:1 on bg / 1.37:1 on card   ambient */\n    --interlace-viz-grid: #25344a;\n    --interlace-viz-axis: #71829a;\n    --interlace-viz-edge: #25344a;\n\n    /* Brand mark — brighter pair for dark chrome. */\n    --interlace-brand-mark-bar-o: #8dc2f0;\n    --interlace-brand-mark-bar-g: #67e8f9;\n  }\n}\n"
    }
  ],
  "meta": {
    "tier": "theme",
    "client": false,
    "minViewport": null,
    "loading": false,
    "version": "1.9.0",
    "since": "1.0.0"
  },
  "docs": "## @interlace/theme\n\n7 stylesheets landed in `styles/interlace/`: the `index.css` barrel plus 6 leaves.\n\nAdd ONE line to your global stylesheet:\n\n```css\n@import \"tailwindcss\";\n@import \"./styles/interlace/index.css\";\n```\n\nThe barrel declares the cascade layers and imports the leaves in the one order that works (tokens.css → foundation.css → preflight.css → theme.css → interlace-theme.css → themes/harbor.css). Importing the leaves yourself means reproducing that order exactly; the last step in particular is load-bearing and not guessable.\n\n### Token namespace — read this before you theme\n\nThis baseline claims **56 `--color-*` keys** plus **64 more** across the `animate`, `breakpoint`, `container`, `font`, `leading`, `radius`, `spacing`, `text`, `tracking` 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- `--breakpoint-sm … --breakpoint-xl` — you probably expect to be additive; you get a REPLACEMENT of Tailwind’s default ladder. `sm` moves 640px → 480px, and `2xl` stops existing. Every `2xl:` utility in the consumer’s existing code silently stops compiling. Override `redeclare the full ladder — including `--breakpoint-2xl` — in your own @theme`.\n- `--spacing-xs … --spacing-2xl` — you probably expect to affect padding and margin only; you get the `spacing` namespace also feeds `max-w-*` / `w-*` / `h-*` in Tailwind v4. `max-w-sm|md|lg|xl|2xl` resolve to 16/24/40/64/96px instead of 24/28/32/36/42rem — a 20× narrower container, with no error. Override `rename your own scale, or redeclare --spacing-* after the import`.\n- `--radius-sm / --radius-md / --radius-lg` — you probably expect to be additive; you get overrides Tailwind’s defaults — 2/6/8px becomes 8/12/16px. Every `rounded-sm|md|lg` in the consumer’s app gets rounder. Override `redeclare --radius-* after the import`.\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"
}
