{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "interlace-base",
  "type": "registry:style",
  "title": "Interlace Base",
  "description": "@interlace/ui — the additive CSS baseline every component needs: motion tokens, type scale, container widths, the xs breakpoint, radius derived from --radius, layered brand + semantic colour tokens in OKLCH, and a color-scheme that follows the dark class so native controls match. Changes nothing the host app already styles.",
  "author": "ofri-peretz <https://github.com/ofri-peretz>",
  "categories": [
    "foundation",
    "theme"
  ],
  "dependencies": [
    "tw-animate-css"
  ],
  "registryDependencies": [],
  "files": [
    {
      "path": "registry/interlace-ui/styles/base.css",
      "target": "styles/interlace/base.css",
      "type": "registry:style",
      "content": "/*\n * @interlace/ui — the additive baseline every component needs.\n *\n *   @import \"tailwindcss\";\n *   @import \"@interlace/ui/styles/base.css\";\n *\n * This is what `interlace-base` installs, and every registry component\n * depends on it, so it lands in an adopter's app with their FIRST component.\n * It therefore adds and never replaces. `apps/registry/src/__tests__/\n * host-style-safety.test.ts` compiles a stock shadcn globals.css with and\n * without this file and holds that.\n *\n * ─── Four layers, each reading only the one before it ──────────────\n *\n *   1. brand/       raw `--interlace-*` values, one file per theme.\n *   2. semantics    the names components read (shadcn's + Interlace's),\n *                   bound to brand tokens, registered as Tailwind colours.\n *   3. structure/   type, layout, radius, motion. Brand-invariant.\n *   4. page/        opt-in page styling: fonts, preflight, fumadocs, shiki.\n *                   NOT imported here; index.css adds it.\n *\n * `packages/ui/__tests__/css-layer-lock.test.ts` enforces the direction.\n *\n * ─── Cascade layers ────────────────────────────────────────────────\n *\n * Tailwind declares `theme, base, components, utilities` first. Interlace\n * rules that style elements go INSIDE those layers (preflight in `base`,\n * prose and animation classes in `components`), so any utility at the call\n * site beats them. The three Interlace layers below rank above utilities,\n * which is safe only because they declare nothing but custom properties on\n * `:root`, `.dark`, `[data-scheme]` and `[data-theme]`:\n *\n *   interlace.bridge     fumadocs → shadcn aliases (page/fumadocs.css)\n *   interlace.brand      raw brand values. THE override surface: declare\n *                        `@layer interlace.brand { … }` after this import.\n *   interlace.semantics  aliases from semantic names to brand values.\n *\n * A host app's unlayered `:root { --primary: … }` beats all three.\n */\n\n@layer interlace.bridge, interlace.brand, interlace.semantics;\n\n/* 1. Brand. ORDER IS LOAD-BEARING: every theme file follows the default\n * (brand/interlace.css). `[data-theme='X']` and `.dark` tie at (0,1,0), so\n * theme X's light block must come after Interlace's dark block for\n * `[data-theme='X'].dark` to sit on a coherent stack. Adding a theme = one\n * file here + its row in THEMES (src/lib/theme-tokens.ts). */\n@import \"./brand/interlace.css\";\n@import \"./brand/harbor.css\";\n\n/* 2. Semantics. */\n@import \"./semantics.css\";\n\n/* 3. Structure. */\n@import \"./structure/type.css\";\n@import \"./structure/layout.css\";\n@import \"./structure/radius.css\";\n@import \"./structure/motion.css\";\n@import \"./structure/scheme.css\";\n"
    },
    {
      "path": "registry/interlace-ui/styles/brand/interlace.css",
      "target": "styles/interlace/brand/interlace.css",
      "type": "registry:style",
      "content": "/*\n * @interlace/ui — BRAND: the Interlace palette, light + dark.\n *\n * Layer 1 of 4 (brand → semantics → structure → page). This file holds raw\n * values and nothing else: every declaration is an `--interlace-*` literal\n * inside `@layer interlace.brand`. It never names a shadcn token and nothing\n * outside `semantics.css` reads it. `__tests__/css-layer-lock.test.ts`\n * holds both rules.\n *\n * A theme is a sibling of this file (brand/harbor.css) that overrides the\n * same `--interlace-*` keys under `[data-theme='<name>']`. Forking the brand\n * means writing one more of these, not touching the alias graph.\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   (brand/X.css)      |\n * | `[data-theme='X'].dark`         | theme X · dark    (brand/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-*` colour values. semantics.css and its `@theme inline`\n * 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 * 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 * Written in OKLCH. Lightness, chroma and hue are separate numbers, so a\n * hover step is \"a little darker\" in one place and a new theme can keep the\n * hue and move only the lightness. Each value was chosen to paint exactly\n * the sRGB pixel the hex it replaced painted (checked in Chromium), so every\n * ratio quoted in these comments, and every one the contrast locks measure,\n * is unchanged. The hex quoted beside a value in prose is that pixel.\n * apps/registry/public/tokens/interlace.tokens.json carries the same palette\n * in the Design Tokens (DTCG) format for design tools; it is generated from\n * this file.\n */\n\n\n@layer interlace.brand {\n  /* ─────────────────────────────────────────────────────────────────\n   *  LIGHT — default\n   * ──────────────────────────────────────────────────────────────── */\n  :root,\n  [data-scheme='light'] {\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: oklch(0.422 0.1117 45.2);            /* 8.80:1 on white (AAA) */\n    --interlace-primary-hover: oklch(0.375 0.1011 44);      /* 10.63:1 on white */\n    --interlace-primary-active: oklch(0.305 0.0758 44.7);     /* 13.76:1 on white */\n    --interlace-primary-foreground: oklch(1 0 0);\n    --interlace-primary-subtle: oklch(0.973 0.0143 57.6);     /* warm tint for backgrounds */\n    --interlace-primary-subtle-foreground: oklch(0.305 0.0758 44.7);  /* 12.70:1 on subtle (AAA) */\n\n    /* Surface */\n    --interlace-background: oklch(1 0 0);\n    --interlace-foreground: oklch(0.151 0.0055 67.8);         /* near-black, slight warm tint */\n    --interlace-card: oklch(1 0 0);\n    --interlace-card-foreground: oklch(0.151 0.0055 67.8);\n    --interlace-popover: oklch(1 0 0);\n    --interlace-popover-foreground: oklch(0.151 0.0055 67.8);\n    --interlace-muted: oklch(0.978 0.0051 67.8);              /* warm-tinted neutral */\n    --interlace-muted-foreground: oklch(0.396 0.0183 70.5);   /* 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: oklch(0.929 0.0075 80.7);    /* 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: oklch(0.622 0.0202 70.1);              /* 3.62:1 on white (SC 1.4.11 AA) */\n    --interlace-ring: var(--interlace-primary);\n\n    /* Accent */\n    --interlace-accent: oklch(0.973 0.0143 57.6);             /* warm tint */\n    --interlace-accent-foreground: oklch(0.397 0.1047 44.2);  /* 8.98:1 on accent (AAA) */\n\n    /* Secondary */\n    --interlace-secondary: oklch(0.965 0.0045 78.3);\n    --interlace-secondary-foreground: oklch(0.222 0.0123 67.1);\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: oklch(0.444 0.1613 26.9);\n    --interlace-destructive-foreground: oklch(1 0 0);\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: oklch(0.432 0.0865 166.9);\n    --interlace-success-foreground: oklch(1 0 0);\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: oklch(0.414 0.1054 45.9);\n    --interlace-warning-foreground: oklch(1 0 0);\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: oklch(0.424 0.1809 265.6);\n    --interlace-info-foreground: oklch(1 0 0);\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: oklch(0.408 0.1165 38.2);\n    --interlace-caution-foreground: oklch(1 0 0);\n\n    /* Highlight — a warm call-to-action surface that is NOT the brand\n     * primary: the \"read this one\" chip, the featured card, the second\n     * button on a hero. A highlighter-pen amber (amber-300) so it stays\n     * separable from the burnt-orange primary and the orange-900 caution\n     * rung. Text sits dark on it: #1c1917 on #fcd34d ≈ 12.1:1 (AAA). */\n    --interlace-highlight: oklch(0.879 0.1534 91.6);\n    --interlace-highlight-foreground: oklch(0.216 0.0061 56);\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: oklch(0 0 0);\n    --interlace-scrim-foreground: oklch(1 0 0);\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: oklch(0.839 0.0877 46.2);   /* brand orange tint — star head */\n    --interlace-hero-trail: oklch(0.589 0.13186 159.35);  /* brand green — trail gradient */\n    --interlace-hero-meteor: oklch(0.904 0.0515 48.8); /* 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: oklch(0.151 0.0055 67.8);      /* gradient midpoint */\n    --interlace-hero-surface-deep: oklch(0 0 0); /* gradient floor */\n    --interlace-hero-foreground: oklch(0.947 0.0063 75.4);   /* 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: oklch(0.694 0.1964 26.4);\n    --interlace-window-control-minimize: oklch(0.835 0.1612 80.9);\n    --interlace-window-control-zoom: oklch(0.728 0.2173 144.7);\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 colour 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: oklch(0.891 0.0127 75.4);\n    --interlace-viz-axis: oklch(0.62 0.0189 76);\n    --interlace-viz-edge: oklch(0.891 0.0127 75.4);\n\n    /* Radius base — every rounded-* step derives from it (see\n     * structure/type.css): sm 8px, md 10px, lg 12px, xl 16px at 0.75rem. */\n    --interlace-radius: 0.75rem;\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: oklch(0.527 0.136 45.9);\n    --interlace-brand-mark-bar-g: oklch(0.468 0.101 160.9);\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: oklch(0.839 0.0877 46.2);            /* 11.79:1 on dark bg (AAA) */\n    --interlace-primary-hover: oklch(0.874 0.0674 47.5);      /* 13.31:1 */\n    --interlace-primary-active: oklch(0.904 0.0515 48.8);     /* 14.68:1 */\n    --interlace-primary-foreground: oklch(0.145 0 0); /* near-black — 11.79:1 on primary */\n    --interlace-primary-subtle: oklch(0.265 0.0617 45.7);     /* tinted background */\n    --interlace-primary-subtle-foreground: oklch(0.904 0.0515 48.8);  /* 11.54:1 on subtle (AAA) */\n\n    /* Surface */\n    --interlace-background: oklch(0.145 0 0);\n    --interlace-foreground: oklch(0.947 0.0063 75.4);\n    --interlace-card: oklch(0.194 0.0063 56);\n    --interlace-card-foreground: oklch(0.947 0.0063 75.4);\n    --interlace-popover: oklch(0.194 0.0063 56);\n    --interlace-popover-foreground: oklch(0.947 0.0063 75.4);\n    --interlace-muted: oklch(0.194 0.0063 56);\n    --interlace-muted-foreground: oklch(0.82 0.0129 75.3);   /* 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: oklch(0.247 0.0149 76.2);    /* 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: oklch(0.504 0.0173 70.7);              /* 3.35:1 on #0a0a0a (SC 1.4.11 AA) */\n    --interlace-ring: var(--interlace-primary);\n\n    /* Accent */\n    --interlace-accent: oklch(0.265 0.0617 45.7);             /* deep warm tint */\n    --interlace-accent-foreground: oklch(0.874 0.0674 47.5);  /* 10.46:1 on accent (AAA) */\n\n    /* Secondary */\n    --interlace-secondary: oklch(0.229 0.0112 73.4);\n    --interlace-secondary-foreground: oklch(0.947 0.0063 75.4);\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: oklch(0.808 0.1035 19.6);\n    --interlace-destructive-foreground: oklch(0.145 0 0);\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: oklch(0.773 0.1535 163.2);\n    --interlace-success-foreground: oklch(0.266 0.0628 152.9);\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: oklch(0.769 0.1647 70.1);\n    --interlace-warning-foreground: oklch(0.235 0.0362 290.6);\n\n    /* Info (blue-300 — new semantic. text-info on near-black ≈ 8.7:1 (AAA). */\n    --interlace-info: oklch(0.809 0.0956 251.8);\n    --interlace-info-foreground: oklch(0.145 0 0);\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: oklch(0.837 0.1165 66.3);\n    --interlace-caution-foreground: oklch(0.145 0 0);\n\n    /* Highlight (amber-400 — brighter than light mode so the chip still\n     * reads as lit on near-black; #0a0a0a on #fbbf24 ≈ 11.9:1, AAA). */\n    --interlace-highlight: oklch(0.837 0.1644 84.4);\n    --interlace-highlight-foreground: oklch(0.145 0 0);\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: oklch(0 0 0);\n    --interlace-scrim-foreground: oklch(1 0 0);\n\n    --interlace-hero-star: oklch(0.839 0.0877 46.2);   /* brand orange tint — star head */\n    --interlace-hero-trail: oklch(0.589 0.13186 159.35);  /* brand green — trail gradient */\n    --interlace-hero-meteor: oklch(0.904 0.0515 48.8); /* palest orange — meteor streak */\n\n    --interlace-hero-surface: oklch(0.151 0.0055 67.8);      /* gradient midpoint */\n    --interlace-hero-surface-deep: oklch(0 0 0); /* gradient floor */\n    --interlace-hero-foreground: oklch(0.947 0.0063 75.4);   /* 16.4:1 on the surface (AAA) */\n\n    /* Radius base — every rounded-* step derives from it (see\n     * structure/type.css): sm 8px, md 10px, lg 12px, xl 16px at 0.75rem. */\n    --interlace-radius: 0.75rem;\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: oklch(0.694 0.1964 26.4);\n    --interlace-window-control-minimize: oklch(0.835 0.1612 80.9);\n    --interlace-window-control-zoom: oklch(0.728 0.2173 144.7);\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: oklch(0.281 0.0116 67.3);\n    --interlace-viz-axis: oklch(0.535 0.0208 78.1);\n    --interlace-viz-edge: oklch(0.281 0.0116 67.3);\n\n    /* Brand mark — brighter pair for dark chrome (favicon dark variant). */\n    --interlace-brand-mark-bar-o: oklch(0.71 0.1634 40.8);\n    --interlace-brand-mark-bar-g: oklch(0.589 0.13186 159.35);\n  }\n}\n"
    },
    {
      "path": "registry/interlace-ui/styles/brand/harbor.css",
      "target": "styles/interlace/brand/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-*` 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 brand/interlace.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 * brand/interlace.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  [data-theme='harbor'] [data-scheme='light'] {\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: oklch(0.409 0.1065 250.2);            /* 8.39:1 on background (AAA) */\n    --interlace-primary-hover: oklch(0.357 0.0916 250.2);      /* 10.40:1 on background */\n    --interlace-primary-active: oklch(0.287 0.0708 249.8);     /* 13.49:1 on background */\n    --interlace-primary-foreground: oklch(1 0 0); /* 8.86:1 on primary (AAA) */\n    --interlace-primary-subtle: oklch(0.957 0.0127 244.3);     /* cool tint for backgrounds */\n    --interlace-primary-subtle-foreground: oklch(0.287 0.0708 249.8); /* 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: oklch(0.981 0.0034 247.9);\n    --interlace-foreground: oklch(0.183 0.0309 263.4);         /* near-black, cool cast */\n    --interlace-card: oklch(1 0 0);\n    --interlace-card-foreground: oklch(0.183 0.0309 263.4);\n    --interlace-popover: oklch(1 0 0);\n    --interlace-popover-foreground: oklch(0.183 0.0309 263.4);\n    --interlace-muted: oklch(0.959 0.0069 247.9);\n    --interlace-muted-foreground: oklch(0.425 0.0307 250.3);   /* 7.82:1 on bg / 7.34:1 on muted (AAA) */\n    --interlace-border: oklch(0.916 0.0133 251.6);    /* 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: oklch(0.621 0.0261 250.2);              /* 3.43:1 on bg / 3.62:1 on card */\n    --interlace-ring: var(--interlace-primary);\n\n    /* Accent */\n    --interlace-accent: oklch(0.957 0.0127 244.3);             /* cool tint */\n    --interlace-accent-foreground: oklch(0.377 0.0933 247.8);  /* 8.95:1 on accent (AAA) */\n\n    /* Secondary */\n    --interlace-secondary: oklch(0.959 0.0069 247.9);\n    --interlace-secondary-foreground: oklch(0.239 0.0256 251.3); /* 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: oklch(0.455 0.1713 13.7);\n    --interlace-destructive-foreground: oklch(1 0 0); /* 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: oklch(0.432 0.0865 166.9);\n    --interlace-success-foreground: oklch(1 0 0); /* 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: oklch(0.414 0.1054 45.9);\n    --interlace-warning-foreground: oklch(1 0 0); /* 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: oklch(0.45 0.0771 224.3);\n    --interlace-info-foreground: oklch(1 0 0);    /* 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: oklch(0.408 0.1165 38.2);\n    --interlace-caution-foreground: oklch(1 0 0); /* 9.37:1 on caution */\n\n    /* Highlight — amber-300, shared with Interlace: a warm call-to-action\n     * that stands apart from Harbor's blue primary. */\n    --interlace-highlight: oklch(0.879 0.1534 91.6);\n    --interlace-highlight-foreground: oklch(0.216 0.0061 56); /* 12.1:1 on highlight */\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: oklch(0 0 0);\n    --interlace-scrim-foreground: oklch(1 0 0);\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: oklch(0.82 0.0913 255.8);\n    --interlace-hero-trail: oklch(0.797 0.1339 211.5);\n    --interlace-hero-meteor: oklch(0.927 0.0362 252.1);\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: oklch(0.191 0.0359 259.5);\n    --interlace-hero-surface-deep: oklch(0 0 0);\n    --interlace-hero-foreground: oklch(0.946 0.0149 251.2);\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: oklch(0.694 0.1964 26.4);\n    --interlace-window-control-minimize: oklch(0.835 0.1612 80.9);\n    --interlace-window-control-zoom: oklch(0.728 0.2173 144.7);\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: oklch(0.916 0.0133 251.6);\n    --interlace-viz-axis: oklch(0.611 0.0262 250.2);\n    --interlace-viz-edge: oklch(0.916 0.0133 251.6);\n\n    /* Radius — structural, not brand. Harbor keeps Interlace's base: a\n     * theme that also moves the geometry is two changes wearing one name. */\n    --interlace-radius: 0.75rem;\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: oklch(0.569 0.2023 259.7);\n    --interlace-brand-mark-bar-g: oklch(0.52 0.0936 223.1);\n  }\n\n  /* ─────────────────────────────────────────────────────────────────\n   *  HARBOR · DARK\n   *\n   *  Both spellings of the scheme axis, exactly as brand/interlace.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 brand/interlace.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: oklch(0.794 0.086 245.4);            /* 10.03:1 on background (AAA) */\n    --interlace-primary-hover: oklch(0.85 0.0648 245.1);      /* 12.08:1 */\n    --interlace-primary-active: oklch(0.9 0.0445 244.1);     /* 14.14:1 */\n    --interlace-primary-foreground: oklch(0.175 0.0338 254.1); /* 10.03:1 on primary */\n    --interlace-primary-subtle: oklch(0.286 0.063 249.1);\n    --interlace-primary-subtle-foreground: oklch(0.9 0.0445 244.1); /* 10.65:1 on subtle (AAA) */\n\n    /* Surface — deep navy-black rather than Interlace's warm near-black. */\n    --interlace-background: oklch(0.175 0.0338 254.1);\n    --interlace-foreground: oklch(0.946 0.0149 251.2);\n    --interlace-card: oklch(0.223 0.0371 252.7);\n    --interlace-card-foreground: oklch(0.946 0.0149 251.2);\n    --interlace-popover: oklch(0.223 0.0371 252.7);\n    --interlace-popover-foreground: oklch(0.946 0.0149 251.2);\n    --interlace-muted: oklch(0.223 0.0371 252.7);\n    --interlace-muted-foreground: oklch(0.781 0.0343 248.3);   /* 9.52:1 on bg / 8.64:1 on card (AAA) */\n    --interlace-border: oklch(0.284 0.0397 252.1);    /* 1.32:1 on background — decorative separators only */\n    --interlace-input: oklch(0.569 0.0357 251.3);              /* 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: oklch(0.286 0.063 249.1);\n    --interlace-accent-foreground: oklch(0.869 0.0567 247.7);  /* 9.65:1 on accent (AAA) */\n\n    /* Secondary */\n    --interlace-secondary: oklch(0.24 0.0336 254.5);\n    --interlace-secondary-foreground: oklch(0.946 0.0149 251.2); /* 14.04:1 on secondary (AAA) */\n\n    /* Destructive — rose-300, the dark twin of the light rose-800. */\n    --interlace-destructive: oklch(0.81 0.1061 11.6);        /* 10.03:1 on background (AAA) */\n    --interlace-destructive-foreground: oklch(0.175 0.0338 254.1);\n\n    /* Success — emerald-400. */\n    --interlace-success: oklch(0.773 0.1535 163.2);            /* 9.86:1 on background (AAA) */\n    --interlace-success-foreground: oklch(0.266 0.0628 152.9);\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: oklch(0.769 0.1647 70.1);\n    --interlace-warning-foreground: oklch(0.187 0.0383 89.1);\n\n    /* Info — cyan-300, holding the hue separation from the blue primary\n     * that the light block explains. */\n    --interlace-info: oklch(0.865 0.1153 207.1);               /* 13.08:1 on background (AAA) */\n    --interlace-info-foreground: oklch(0.175 0.0338 254.1);\n\n    /* Caution — orange-300, the dark rung between warning and destructive. */\n    --interlace-caution: oklch(0.837 0.1165 66.3);            /* 11.24:1 on background (AAA) */\n    --interlace-caution-foreground: oklch(0.175 0.0338 254.1);\n\n    /* Highlight — amber-400, the dark twin. */\n    --interlace-highlight: oklch(0.837 0.1644 84.4);\n    --interlace-highlight-foreground: oklch(0.175 0.0338 254.1); /* 11.4:1 on highlight */\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: oklch(0 0 0);\n    --interlace-scrim-foreground: oklch(1 0 0);\n\n    --interlace-hero-star: oklch(0.82 0.0913 255.8);\n    --interlace-hero-trail: oklch(0.797 0.1339 211.5);\n    --interlace-hero-meteor: oklch(0.927 0.0362 252.1);\n\n    --interlace-hero-surface: oklch(0.191 0.0359 259.5);\n    --interlace-hero-surface-deep: oklch(0 0 0);\n    --interlace-hero-foreground: oklch(0.946 0.0149 251.2);    /* 15.76:1 on the surface (AAA) */\n\n    --interlace-radius: 0.75rem;\n\n    --interlace-window-control-close: oklch(0.694 0.1964 26.4);\n    --interlace-window-control-minimize: oklch(0.835 0.1612 80.9);\n    --interlace-window-control-zoom: oklch(0.728 0.2173 144.7);\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: oklch(0.322 0.0443 257.8);\n    --interlace-viz-axis: oklch(0.602 0.0418 257);\n    --interlace-viz-edge: oklch(0.322 0.0443 257.8);\n\n    /* Brand mark — brighter pair for dark chrome. */\n    --interlace-brand-mark-bar-o: oklch(0.794 0.086 245.4);\n    --interlace-brand-mark-bar-g: oklch(0.865 0.1153 207.1);\n  }\n}\n"
    },
    {
      "path": "registry/interlace-ui/styles/semantics.css",
      "target": "styles/interlace/semantics.css",
      "type": "registry:style",
      "content": "/*\n * @interlace/ui — SEMANTICS: the names components read.\n *\n * Layer 2 of 4 (brand → semantics → structure → page). Binds every semantic\n * name, shadcn's (`--primary`, `--background`, …) and Interlace's own\n * (`--success`, `--caution`, `--scrim`, `--viz-*`, …), to a brand token,\n * then registers each as a Tailwind colour so `bg-primary` and `text-success`\n * exist. Components read these names and only these; a raw `--interlace-*`\n * in a component is a layering leak.\n *\n * Bindings live in `@layer interlace.semantics`, so a host app's unlayered\n * `:root { --primary: … }` (every shadcn app has one) wins. The `@theme\n * inline` registration stays top-level: Tailwind processes it globally.\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   *  colour 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-scheme='light'],\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    --radius: var(--interlace-radius);\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 colour. */\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    --highlight: var(--interlace-highlight);\n    --highlight-foreground: var(--interlace-highlight-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 colours (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  --color-highlight: var(--highlight);\n  --color-highlight-foreground: var(--highlight-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/structure/type.css",
      "target": "styles/interlace/structure/type.css",
      "type": "registry:style",
      "content": "/*\n * @interlace/ui — STRUCTURE / type: the type scale and reading classes.\n *\n * Layer 3 of 4 (brand → semantics → structure → page). Brand-invariant:\n * no colour, no `--interlace-*`. Every key here is NEW to Tailwind (text-h1,\n * text-body, leading-long, tracking-display, font-body), so it adds\n * utilities without replacing any. The typefaces themselves are opt-in, in\n * page/fonts.css.\n *\n * Sources: TYPOGRAPHY_PHILOSOPHY.md (type scale, body/code contracts, fluid\n * type, reading-vs-UI modes).\n */\n\n@theme {\n  /* ── Font families ─────────────────────────────────────────────── */\n  /* Two new keys, both additive. Components read `font-body` for text and\n     `font-heading` for headings; neither picks a typeface. `font-body`\n     follows the app's own `font-sans`, and `font-heading` follows\n     `font-body`, so an app that never touches them gets its own typeface\n     everywhere. Re-point either one to change components only:\n       @theme { --font-heading: var(--font-serif); }\n     The Interlace typefaces (Inter, JetBrains Mono) are opt-in, in\n     page/fonts.css, because they replace the app's `font-sans`. */\n  --font-body: var(--font-sans);\n  --font-heading: var(--font-body);\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}\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/structure/layout.css",
      "target": "styles/interlace/structure/layout.css",
      "type": "registry:style",
      "content": "/*\n * @interlace/ui — STRUCTURE / layout: container widths and the xs rung.\n *\n * Layer 3 of 4 (brand → semantics → structure → page). Spacing is\n * Tailwind's own numeric scale and is not redeclared here.\n *\n * Source: LAYOUT_PHILOSOPHY.md (#2 container widths, #3 spacing) and\n * BREAKPOINT_PHILOSOPHY.md.\n */\n\n@theme {\n  /* ── Spacing: Tailwind's numeric scale (p-4, gap-6), which already\n     follows the `--spacing` variable. Interlace 2.0 dropped the named\n     --spacing-xs…2xl keys: they shadowed max-w-sm/md/lg in every consumer\n     app. LAYOUT #3's six steps are 2 / 4 / 6 / 10 / 16 / 24. */\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) ─────────────────────────────\n     Tailwind's own ladder (sm 640 / md 768 / lg 1024 / xl 1280 / 2xl 1536)\n     is left untouched. Interlace ADDS one tier below it:\n\n       xs = 30rem = 480 CSS px → handheld floor (MIN_VIEWPORT=480)\n\n     `rem`-based so user zoom and browser font-size scaling move it too. */\n  --breakpoint-xs: 30rem;\n}\n"
    },
    {
      "path": "registry/interlace-ui/styles/structure/radius.css",
      "target": "styles/interlace/structure/radius.css",
      "type": "registry:style",
      "content": "/*\n * @interlace/ui — STRUCTURE / radius: the `rounded-*` scale from `--radius`.\n *\n * Layer 3 of 4 (brand → semantics → structure → page). One knob: the\n * brand sets `--interlace-radius`, semantics.css binds `--radius` to it,\n * and these four keys derive from `--radius`.\n */\n\n/* ── Radius: derived from the `--radius` CSS variable ───────────────────\n   The same derivation shadcn writes into every app, so in a shadcn app\n   these keys agree with the app's own and `--radius` is the one knob.\n   Written character for character as shadcn writes them, so a shadcn app\n   compiles `rounded-*` exactly as it did before Interlace arrived. An app\n   without `--radius` gets it from semantics.css.\n   Interlace sets --interlace-radius to 0.75rem (brand/interlace.css):\n   sm 8px · md 10px · lg 12px · xl 16px. */\n@theme inline {\n  --radius-sm: calc(var(--radius) - 4px);\n  --radius-md: calc(var(--radius) - 2px);\n  --radius-lg: var(--radius);\n  --radius-xl: calc(var(--radius) + 4px);\n}\n"
    },
    {
      "path": "registry/interlace-ui/styles/structure/motion.css",
      "target": "styles/interlace/structure/motion.css",
      "type": "registry:style",
      "content": "/*\n * @interlace/ui — STRUCTURE / motion: animation tokens, keyframes, classes,\n * and the reduced-motion allowlist.\n *\n * Layer 3 of 4 (brand → semantics → structure → page). No colour. Every\n * `--animate-*` key is one Tailwind and tw-animate-css do not ship, so it\n * adds utilities without replacing any.\n */\n\n@theme inline {\n  /* Primitives: accordion — `animate-accordion-down/up` come from\n     tw-animate-css, which the base item depends on. Declaring them here\n     too replaced tw-animate's version in every shadcn app (losing its\n     duration/ease modifiers) for an identical keyframe. */\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}\n\n/* ─────────────────────────────────────────────────────────────────\n * Entry animations — fade-in-up / slide-in-left / scale-in.\n *    Reduced-motion: the allowlist below names all three.\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@layer components {\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} /* end @layer components */\n\n@layer components {\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 `page/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 base.css and\n *      skip page/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-fade-in-up,\n  .animate-slide-in-left,\n  .animate-scale-in,\n  .animate-pulse,\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 components */\n"
    },
    {
      "path": "registry/interlace-ui/styles/structure/scheme.css",
      "target": "styles/interlace/structure/scheme.css",
      "type": "registry:style",
      "content": "/*\n * @interlace/ui — STRUCTURE / scheme: tell the browser which scheme is on.\n *\n * Layer 3 of 4 (brand → semantics → structure → page). The palette switches\n * on `.dark` / `[data-scheme='dark']`, but the browser's own parts do not\n * read either: scrollbars, form controls, the date picker, autofill and the\n * caret stay light on a dark page unless `color-scheme` says otherwise.\n * Declaring it on the same selectors that switch the palette keeps the two\n * in step, in a subtree too: a `.dark` preview inside a light page gets dark\n * scrollbars, and a `[data-scheme='light']` panel inside a dark page gets\n * light ones. It sits in `@layer base`, so an app's own `color-scheme` wins.\n */\n\n@layer base {\n  :root,\n  [data-scheme='light'] {\n    color-scheme: light;\n  }\n\n  .dark,\n  [data-scheme='dark'] {\n    color-scheme: dark;\n  }\n}\n"
    }
  ],
  "meta": {
    "tier": "theme",
    "client": false,
    "minViewport": null,
    "loading": false,
    "version": "2.1.0",
    "since": null
  },
  "docs": "## @interlace/interlace-base\n\n9 stylesheets landed in `styles/interlace/`: the `base.css` barrel plus 8 leaves.\n\nAdd ONE line to your global stylesheet, after Tailwind:\n\n```css\n@import \"tailwindcss\";\n@import \"./styles/interlace/base.css\";\n```\n\nThis adds tokens and never replaces your own: your `font-sans`, `rounded-*`, breakpoints, spacing and `:root` colours compile exactly as before. Components use your shadcn colours until you add `@interlace/theme`.\n\nThe barrel declares the cascade layers and imports the leaves in the one order that works (brand/interlace.css → brand/harbor.css → semantics.css → structure/type.css → structure/layout.css → structure/radius.css → structure/motion.css → structure/scheme.css). Importing the leaves yourself means reproducing that order exactly.\n\n### Token namespace — read this before you theme\n\nThis baseline claims **58 `--color-*` keys** plus **43 more** across the `animate`, `breakpoint`, `container`, `font`, `leading`, `radius`, `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- `--radius-sm … --radius-xl` — you probably expect Tailwind’s fixed defaults (4/6/8/12px); you get shadcn’s derivation from `--radius` (radius − 4px / − 2px / radius / + 4px), with `--radius` at 0.75rem — 8/10/12/16px. In a shadcn app this is the same derivation the app already has. In a plain Tailwind app, every `rounded-sm…xl` follows `--radius` instead of a fixed value. Override `set --radius (one variable moves every step)`.\n- `--font-sans` — you probably expect to be additive; you get a full replacement of Tailwind’s default sans stack. App-wide font change. Override `redeclare --font-sans after the import`.\n\nThe colour block is `@theme inline`, so Tailwind substitutes the value into the utility and never emits `--color-*` at runtime. `bg-accent` compiles to `var(--accent)`. Overriding `--color-accent` in your own `:root` therefore has NO effect — override `--accent` (semantics) or `--interlace-accent` (brand) instead.\n\nFull list, per-token values and the migration checklist: https://ds.interlace.tools/theme-authoring#token-namespace\n\nFull contract: https://ds.interlace.tools/css-contract"
}
