@wow-two-beta/fe 0.0.30 → 0.0.32

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (72) hide show
  1. package/README.md +12 -0
  2. package/dist/chunks/{AccountMenu.vue_vue_type_script_setup_true_lang-CWsiHHiy.js → AccountMenu.vue_vue_type_script_setup_true_lang-LEQUWCXJ.js} +97 -28
  3. package/dist/chunks/AccountMenu.vue_vue_type_script_setup_true_lang-LEQUWCXJ.js.map +1 -0
  4. package/dist/chunks/{Avatar.vue_vue_type_script_setup_true_lang-BIoaOjCh.js → Avatar.vue_vue_type_script_setup_true_lang-BHnzqtQH.js} +2 -2
  5. package/dist/chunks/{Avatar.vue_vue_type_script_setup_true_lang-BIoaOjCh.js.map → Avatar.vue_vue_type_script_setup_true_lang-BHnzqtQH.js.map} +1 -1
  6. package/dist/chunks/{BackToTopButton.vue_vue_type_script_setup_true_lang-6tfkqsrZ.js → BackToTopButton.vue_vue_type_script_setup_true_lang-dmN5MH2T.js} +2 -2
  7. package/dist/chunks/{BackToTopButton.vue_vue_type_script_setup_true_lang-6tfkqsrZ.js.map → BackToTopButton.vue_vue_type_script_setup_true_lang-dmN5MH2T.js.map} +1 -1
  8. package/dist/chunks/{Button.vue_vue_type_script_setup_true_lang-Cw0QS_Mm.js → Button.vue_vue_type_script_setup_true_lang-CAbPBMuc.js} +2 -2
  9. package/dist/chunks/{Button.vue_vue_type_script_setup_true_lang-Cw0QS_Mm.js.map → Button.vue_vue_type_script_setup_true_lang-CAbPBMuc.js.map} +1 -1
  10. package/dist/chunks/{DrawerContent.vue_vue_type_script_setup_true_lang-BA-au7LC.js → DrawerContent.vue_vue_type_script_setup_true_lang-ClhduLMN.js} +2 -2
  11. package/dist/chunks/{DrawerContent.vue_vue_type_script_setup_true_lang-BA-au7LC.js.map → DrawerContent.vue_vue_type_script_setup_true_lang-ClhduLMN.js.map} +1 -1
  12. package/dist/chunks/{ErrorBoundary.vue_vue_type_script_setup_true_lang-DzqE0ZF8.js → ErrorBoundary.vue_vue_type_script_setup_true_lang-Dv9wOZmk.js} +4 -4
  13. package/dist/chunks/{ErrorBoundary.vue_vue_type_script_setup_true_lang-DzqE0ZF8.js.map → ErrorBoundary.vue_vue_type_script_setup_true_lang-Dv9wOZmk.js.map} +1 -1
  14. package/dist/chunks/{FieldHelperText.vue_vue_type_script_setup_true_lang-DuMcXUch.js → FieldHelperText.vue_vue_type_script_setup_true_lang-B-G5rNMG.js} +2 -2
  15. package/dist/chunks/{FieldHelperText.vue_vue_type_script_setup_true_lang-DuMcXUch.js.map → FieldHelperText.vue_vue_type_script_setup_true_lang-B-G5rNMG.js.map} +1 -1
  16. package/dist/chunks/{KanbanCard.vue_vue_type_script_setup_true_lang-CyXb4ZZw.js → KanbanCard.vue_vue_type_script_setup_true_lang-DKgIhFwh.js} +6 -6
  17. package/dist/chunks/KanbanCard.vue_vue_type_script_setup_true_lang-DKgIhFwh.js.map +1 -0
  18. package/dist/chunks/{LightboxModal.vue_vue_type_script_setup_true_lang-BxdSYLYf.js → LightboxModal.vue_vue_type_script_setup_true_lang-CP7Or4sf.js} +6 -6
  19. package/dist/chunks/{LightboxModal.vue_vue_type_script_setup_true_lang-BxdSYLYf.js.map → LightboxModal.vue_vue_type_script_setup_true_lang-CP7Or4sf.js.map} +1 -1
  20. package/dist/chunks/{MasonryLayout.vue_vue_type_script_setup_true_lang-DD_jRzkM.js → MasonryLayout.vue_vue_type_script_setup_true_lang-BmWwoZrv.js} +46 -102
  21. package/dist/chunks/MasonryLayout.vue_vue_type_script_setup_true_lang-BmWwoZrv.js.map +1 -0
  22. package/dist/chunks/{MentionInput.vue_vue_type_script_setup_true_lang-D8OEoQ37.js → MentionInput.vue_vue_type_script_setup_true_lang-D8Ja7QjX.js} +6 -6
  23. package/dist/chunks/{MentionInput.vue_vue_type_script_setup_true_lang-D8OEoQ37.js.map → MentionInput.vue_vue_type_script_setup_true_lang-D8Ja7QjX.js.map} +1 -1
  24. package/dist/chunks/Navbar.variants-7DXJlilx.js +88 -0
  25. package/dist/chunks/Navbar.variants-7DXJlilx.js.map +1 -0
  26. package/dist/chunks/{OverlayCloseButton.vue_vue_type_script_setup_true_lang-Df9raD_m.js → OverlayCloseButton.vue_vue_type_script_setup_true_lang-D0f_usZ9.js} +2 -2
  27. package/dist/chunks/{OverlayCloseButton.vue_vue_type_script_setup_true_lang-Df9raD_m.js.map → OverlayCloseButton.vue_vue_type_script_setup_true_lang-D0f_usZ9.js.map} +1 -1
  28. package/dist/chunks/{PopoverContent.vue_vue_type_script_setup_true_lang-C6YKEo3H.js → PopoverContent.vue_vue_type_script_setup_true_lang-iUlvOlO9.js} +2 -2
  29. package/dist/chunks/{PopoverContent.vue_vue_type_script_setup_true_lang-C6YKEo3H.js.map → PopoverContent.vue_vue_type_script_setup_true_lang-iUlvOlO9.js.map} +1 -1
  30. package/dist/chunks/{ReportAction.vue_vue_type_script_setup_true_lang-DCnPCczd.js → ReportAction.vue_vue_type_script_setup_true_lang-CcAxgi-G.js} +2 -2
  31. package/dist/chunks/{ReportAction.vue_vue_type_script_setup_true_lang-DCnPCczd.js.map → ReportAction.vue_vue_type_script_setup_true_lang-CcAxgi-G.js.map} +1 -1
  32. package/dist/chunks/{SurfaceStyles-BYvRlsWe.js → SurfaceStyles-DUVz963_.js} +25 -6
  33. package/dist/chunks/SurfaceStyles-DUVz963_.js.map +1 -0
  34. package/dist/chunks/{ToastHost.vue_vue_type_script_setup_true_lang-J1ZPZXn3.js → ToastHost.vue_vue_type_script_setup_true_lang-BKfF6cjS.js} +3 -3
  35. package/dist/chunks/{ToastHost.vue_vue_type_script_setup_true_lang-J1ZPZXn3.js.map → ToastHost.vue_vue_type_script_setup_true_lang-BKfF6cjS.js.map} +1 -1
  36. package/dist/chunks/{Tones-Bcz8dIo3.js → Tones-BU9yaXKf.js} +5 -3
  37. package/dist/chunks/{Tones-Bcz8dIo3.js.map → Tones-BU9yaXKf.js.map} +1 -1
  38. package/dist/chunks/{index-CGIXFfl9.js → index-Bk5JPh5t.js} +3 -3
  39. package/dist/chunks/{index-CGIXFfl9.js.map → index-Bk5JPh5t.js.map} +1 -1
  40. package/dist/chunks/{index-DA17sNzP.js → index-ou-qGNDu.js} +55 -3
  41. package/dist/chunks/index-ou-qGNDu.js.map +1 -0
  42. package/dist/foundation/styles/SurfaceStyles.d.ts +25 -8
  43. package/dist/foundation/styles/index.js +3 -3
  44. package/dist/foundation/themes/Theme.d.ts +38 -0
  45. package/dist/foundation/themes/index.d.ts +1 -1
  46. package/dist/foundation/themes/index.js +1 -1
  47. package/dist/index.css +112 -0
  48. package/dist/index.js +54 -53
  49. package/dist/index.js.map +1 -1
  50. package/dist/presentation/actions/index.js +2 -2
  51. package/dist/presentation/display/card/Card.vue.d.ts +4 -1
  52. package/dist/presentation/display/index.js +3 -3
  53. package/dist/presentation/feedback/index.js +3 -3
  54. package/dist/presentation/feedback/toastHost/index.js +1 -1
  55. package/dist/presentation/forms/index.js +2 -2
  56. package/dist/presentation/layout/appShell/AppShellSidebar.vue.d.ts +13 -10
  57. package/dist/presentation/layout/index.js +34 -33
  58. package/dist/presentation/layout/index.js.map +1 -1
  59. package/dist/presentation/layout/navbar/Navbar.variants.d.ts +17 -2
  60. package/dist/presentation/layout/surfaceLayout/SurfaceLayout.vue.d.ts +4 -1
  61. package/dist/presentation/nav/bottomNavMenu/BottomNavMenu.vue.d.ts +8 -0
  62. package/dist/presentation/nav/index.js +1 -1
  63. package/dist/presentation/nav/menu/MenuContext.d.ts +1 -1
  64. package/dist/presentation/nav/menu/MenuItem.vue.d.ts +19 -1
  65. package/dist/presentation/overlays/index.js +4 -4
  66. package/dist/themes.css +20 -0
  67. package/package.json +1 -1
  68. package/dist/chunks/AccountMenu.vue_vue_type_script_setup_true_lang-CWsiHHiy.js.map +0 -1
  69. package/dist/chunks/KanbanCard.vue_vue_type_script_setup_true_lang-CyXb4ZZw.js.map +0 -1
  70. package/dist/chunks/MasonryLayout.vue_vue_type_script_setup_true_lang-DD_jRzkM.js.map +0 -1
  71. package/dist/chunks/SurfaceStyles-BYvRlsWe.js.map +0 -1
  72. package/dist/chunks/index-DA17sNzP.js.map +0 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index-ou-qGNDu.js","sources":["../../src/foundation/themes/Tokens.ts","../../src/foundation/themes/Theme.ts","../../src/foundation/themes/Validate.ts","../../src/foundation/themes/ForegroundContrast.ts","../../src/foundation/themes/Generate.ts","../../src/foundation/themes/Css.ts","../../src/foundation/themes/constants/Authored.ts","../../src/foundation/themes/constants/Pool.ts","../../src/foundation/themes/Registry.ts"],"sourcesContent":["/* ---------------------------------------------------------------------------\n * The semantic token contract.\n *\n * Mirrors EXACTLY the semantic `--color-*` tokens declared in `src/index.css`\n * (the `@theme` block + its `.dark { }` overrides). A theme supplies a value\n * for every key in both light and dark modes; the CSS emitter writes them back\n * as `--color-{key}` under `.theme-{id}` / `.dark.theme-{id}`.\n *\n * Keep this in lock-step with `index.css`: add a semantic token there → add the\n * matching key here (and the generator will need to produce it).\n * ------------------------------------------------------------------------- */\n\n/** The six tone families that each carry base / -foreground / -soft / -soft-foreground. */\nexport const ToneFamilies = ['primary', 'accent', 'destructive', 'info', 'success', 'warning'] as const;\n\nexport type ToneFamilyName = (typeof ToneFamilies)[number];\n\n/** Surface + chrome tokens (everything that isn't one of the tone families). */\nexport const SurfaceTokens = [\n 'background',\n 'foreground',\n 'card',\n 'card-foreground',\n 'popover',\n 'popover-foreground',\n 'field',\n 'muted',\n 'muted-foreground',\n 'subtle-foreground',\n 'inverse',\n 'inverse-foreground',\n 'border',\n 'border-strong',\n 'input',\n 'ring',\n] as const;\n\n/** The four slot suffixes every tone family expands into. */\ntype ToneSlotSuffix = '' | '-foreground' | '-soft' | '-soft-foreground';\n\n/** A single tone family expanded to its four token keys, e.g. `primary | primary-foreground | …`. */\ntype ToneFamilyTokens<F extends string> = F extends string ? `${F}${ToneSlotSuffix}` : never;\n\n/**\n * Every semantic token key (the part after `--color-`).\n *\n * = surface/chrome tokens ∪ (each tone family × {base,-foreground,-soft,-soft-foreground}).\n * 16 surface + 6×4 tone = 40 keys total.\n */\nexport type SemanticToken = (typeof SurfaceTokens)[number] | ToneFamilyTokens<ToneFamilyName>;\n\n/** A complete set of color values — one CSS color string per semantic token. */\nexport type TokenSet = Record<SemanticToken, string>;\n\n/** Optional radius scale a theme may carry (maps to `--radius-{md,lg,xl}`). */\nexport interface RadiusScale {\n md: string;\n lg: string;\n xl: string;\n}\n\n/** The four slots of one tone family. */\nexport interface ToneSlots {\n base: string;\n foreground: string;\n soft: string;\n softForeground: string;\n}\n\n/**\n * The full, ordered list of every semantic token key — derived from the same\n * constants the type is built from, so it can never drift from `SemanticToken`.\n * Used by the validator/emitter to iterate exhaustively.\n */\nexport const SemanticTokens: ReadonlyArray<SemanticToken> = [\n ...SurfaceTokens,\n ...ToneFamilies.flatMap((f) => [f, `${f}-foreground`, `${f}-soft`, `${f}-soft-foreground`] as SemanticToken[]),\n];\n\n/** Write a tone family's four slots into a partial token set under the family's keys. */\nexport function applyToneSlots(target: Partial<TokenSet>, family: ToneFamilyName, slots: ToneSlots): void {\n target[family] = slots.base;\n target[`${family}-foreground`] = slots.foreground;\n target[`${family}-soft`] = slots.soft;\n target[`${family}-soft-foreground`] = slots.softForeground;\n}\n","/* ---------------------------------------------------------------------------\n * Theme + Seed shapes.\n *\n * A `Theme` is a fully-resolved, validated pair of light/dark token sets plus\n * metadata. A `ThemeSeed` is the small, human-authorable recipe the OKLCH\n * generator expands into a `Theme` (see `generateTheme`).\n * ------------------------------------------------------------------------- */\n\nimport type { TokenSet } from './Tokens';\n\n/** Defines the border-radius scale knob a theme carries (maps to the lib's `--radius-*`). */\nexport const ThemeRadius = {\n /** Refers to a small global radius. */\n Sm: 'sm',\n /** Refers to a medium global radius. */\n Md: 'md',\n /** Refers to a large global radius. */\n Lg: 'lg',\n} as const;\n\nexport type ThemeRadius = (typeof ThemeRadius)[keyof typeof ThemeRadius];\n\n/**\n * Defines a theme's lifecycle status.\n *\n * - `validated` — hand-authored from real, visually-verified app tokens; the\n * colors are locked (never auto-nudged), proven in a shipping product.\n * - `candidate` — generated/curated and AA-proven by the engine, but not yet\n * validated against a real app surface.\n */\nexport const ThemeStatus = {\n /** Refers to a theme proven against a real app surface. */\n Validated: 'validated',\n /** Refers to an AA-proven theme not yet app-validated. */\n Candidate: 'candidate',\n} as const;\n\n/** A theme's lifecycle status value (`\"validated\"` | `\"candidate\"`). */\nexport type ThemeStatus = (typeof ThemeStatus)[keyof typeof ThemeStatus];\n\n/** Contrast / \"is this theme proven\" metadata, produced by the validator. */\nexport interface ThemeMeta {\n /** True iff every foreground↔surface pair clears its WCAG AA threshold in BOTH modes. */\n contrastAA: boolean;\n\n /**\n * Human-readable pair failures (empty when `contrastAA` is true).\n * Each entry: `\"<mode>: <fg> on <bg> = <ratio> (need <threshold>)\"`.\n */\n failures?: ReadonlyArray<string>;\n}\n\n/**\n * The coloured light behind a glass theme's translucent surfaces, per mode, as CSS background layers.\n * Emitted as `--theme-ambient`; an app paints it with the `surface-ambient` class.\n */\nexport interface ThemeAmbient {\n /** Light-mode backdrop layers. */\n light: string;\n\n /** Dark-mode backdrop layers. */\n dark: string;\n}\n\n/**\n * One mode's glass strength: CSS values for the `--glass-*` custom properties the glass surfaces read (see\n * `styles.css`). Every member is optional; an unset one keeps the SDK's own glass.\n */\nexport interface ThemeGlassTokens {\n /** The chrome fill — top bar, bottom bar, cards (`--glass-fill`), e.g. `rgb(255 255 255 / 0.84)`. */\n readonly fill?: string;\n\n /** The sidebar fill (`--glass-side-fill`). */\n readonly sideFill?: string;\n\n /** The menu, popover and phone-sheet fill (`--glass-menu-fill`). */\n readonly menuFill?: string;\n\n /** The backdrop blur radius, a length (`--glass-blur`). */\n readonly blur?: string;\n\n /** The backdrop saturation, a percentage (`--glass-saturate`). */\n readonly saturate?: string;\n\n /** The hairline colour between glass and content (`--glass-edge`). */\n readonly edge?: string;\n\n /** The inset top highlight colour (`--glass-highlight`); the emitter adds it to every shadow as a 1px line. */\n readonly highlight?: string;\n\n /** The chrome's outer shadow, cast down from a top bar (`--glass-shadow`). */\n readonly shadow?: string;\n\n /**\n * The bottom bar's outer shadow, cast up over the page (`--glass-bottom-shadow`) — a negative y offset, the\n * mirror of `shadow`.\n */\n readonly bottomShadow?: string;\n\n /** The menus' outer shadow (`--glass-menu-shadow`). */\n readonly menuShadow?: string;\n}\n\n/** A theme's glass strength per mode, emitted as the `--glass-*` custom properties. */\nexport interface ThemeGlass {\n /** Light-mode strength. */\n readonly light: ThemeGlassTokens;\n\n /** Dark-mode strength. */\n readonly dark: ThemeGlassTokens;\n}\n\n/** A named, validated theme — the unit the registry stores and the emitter renders. */\nexport interface Theme {\n /** Stable kebab-case id; drives the `.theme-{id}` class. */\n id: string;\n\n /** Display name. */\n name: string;\n\n /** One-line description. */\n description: string;\n\n /** Free-form tags for filtering/search (e.g. `[\"dark\",\"cool\",\"brand\"]`). */\n tags: ReadonlyArray<string>;\n\n /** Light-mode token values. */\n light: TokenSet;\n\n /** Dark-mode token values. */\n dark: TokenSet;\n\n /** Border-radius scale knob (maps to the lib's `--radius-*`). Optional. */\n radius?: ThemeRadius;\n\n /** Page backdrop for glass themes (maps to `--theme-ambient`). Optional. */\n ambient?: ThemeAmbient;\n\n /** Glass strength for the translucent surfaces (maps to the `--glass-*` properties). Optional. */\n glass?: ThemeGlass;\n\n /** Lifecycle status — `validated` (real-app proven, locked) or `candidate` (engine-proven). */\n status: ThemeStatus;\n\n /** Validation result — `meta.contrastAA === true` ⇒ the theme is \"proven\". */\n meta: ThemeMeta;\n}\n\n/** Defines the neutral surface temperature — biases the grey ramp warm/cool/neutral. */\nexport const NeutralTemp = {\n /** Refers to a cool-biased grey ramp. */\n Cool: 'cool',\n /** Refers to a pure-neutral grey ramp. */\n Neutral: 'neutral',\n /** Refers to a warm-biased grey ramp. */\n Warm: 'warm',\n} as const;\n\nexport type NeutralTemp = (typeof NeutralTemp)[keyof typeof NeutralTemp];\n\n/** Defines how the accent hue is derived from the primary hue. */\nexport const AccentMode = {\n /** Refers to a complementary (opposite) accent hue. */\n Complementary: 'complementary',\n /** Refers to an analogous (adjacent) accent hue. */\n Analogous: 'analogous',\n /** Refers to a triadic accent hue. */\n Triadic: 'triadic',\n /** Refers to a mono (same-hue) accent. */\n Mono: 'mono',\n} as const;\n\nexport type AccentMode = (typeof AccentMode)[keyof typeof AccentMode];\n\n/** Defines the surface character — `soft` = gentle low-contrast surfaces, `crisp` = punchier separation. */\nexport const SurfaceStyle = {\n /** Refers to gentle, low-contrast surfaces. */\n Soft: 'soft',\n /** Refers to punchier surface separation. */\n Crisp: 'crisp',\n} as const;\n\nexport type SurfaceStyle = (typeof SurfaceStyle)[keyof typeof SurfaceStyle];\n\n/**\n * The recipe a theme is generated from. Pure inputs → deterministic `Theme`\n * (no randomness; identical seeds always yield identical themes).\n */\nexport interface ThemeSeed {\n /** Stable kebab-case id for the produced theme. */\n id: string;\n\n /** Display name. */\n name: string;\n\n /** One-line description (optional — a sensible default is derived from the seed). */\n description?: string;\n\n /** Tags to attach (generator also auto-tags temp/mode/scheme). */\n tags?: ReadonlyArray<string>;\n\n /** Primary brand hue in degrees, 0–360. */\n primaryHue: number;\n\n /** Neutral ramp temperature. Default `neutral`. */\n neutralTemp?: NeutralTemp;\n\n /** Accent derivation. Default `complementary`. */\n accentMode?: AccentMode;\n\n /** Surface character. Default `crisp`. */\n surface?: SurfaceStyle;\n\n /** Radius knob to carry through. Optional. */\n radius?: ThemeRadius;\n}\n","/* ---------------------------------------------------------------------------\n * Theme validator — WCAG AA contrast checks across every text/surface pair.\n *\n * \"Proven\" = every paired (-foreground vs its surface/base) clears AA in BOTH\n * light and dark modes. Text pairs need ≥ 4.5:1; input boundaries and focus\n * indicators need ≥ 3:1 against each declared neutral host surface.\n * ------------------------------------------------------------------------- */\n\nimport type { Theme, ThemeMeta } from './Theme';\nimport { ToneFamilies, type SemanticToken, type TokenSet } from './Tokens';\nimport { contrastRatioCss, contrastRatioCompositeCss } from './Oklch';\nimport { ColorMode } from '../primitives/colorModeProvider';\n\n/** WCAG AA thresholds. Text = normal-size body text; UI = non-text affordances. */\nexport const AaText = 4.5;\nexport const AaUi = 3.0;\n\n/** One foreground↔background pair to verify, with its required ratio. */\nexport interface ContrastPair {\n /** Foreground token (text/icon/affordance color). */\n fg: SemanticToken;\n\n /** Background token the fg sits on. */\n bg: SemanticToken;\n\n /** Required minimum ratio (AaText or AaUi). */\n min: number;\n /** A translucent fill is evaluated over the declared opaque host surface. */\n opacity?: number;\n over?: SemanticToken;\n}\n\n/**\n * The canonical set of pairs every theme must satisfy.\n * Surface text pairs, tone solid/soft foreground pairs and required neutral indicators.\n */\nexport function contrastPairs(): ReadonlyArray<ContrastPair> {\n const pairs: Array<ContrastPair> = [\n { fg: 'foreground', bg: 'background', min: AaText },\n { fg: 'card-foreground', bg: 'card', min: AaText },\n { fg: 'popover-foreground', bg: 'popover', min: AaText },\n { fg: 'inverse-foreground', bg: 'inverse', min: AaText },\n ];\n\n // Small placeholders and secondary text are text under WCAG 1.4.3, including read-only inputs.\n // These neutral surfaces host InputStyles (on `field`), CodeEditor, command inputs and ordinary body text.\n for (const bg of ['background', 'card', 'popover', 'muted', 'field'] as const) {\n // Required control boundaries and focus indicators (not decorative border tokens).\n for (const fg of ['input', 'border-strong', 'ring'] as const) pairs.push({ fg, bg, min: AaUi });\n for (const fg of ['foreground', 'muted-foreground', 'subtle-foreground'] as const) {\n if (!pairs.some((pair) => pair.fg === fg && pair.bg === bg && pair.opacity === undefined))\n pairs.push({ fg, bg, min: AaText });\n }\n pairs.push({ fg: 'popover-foreground', bg: 'popover', opacity: 0.7, over: bg, min: AaText });\n pairs.push({ fg: 'foreground', bg: 'muted', opacity: 0.3, over: bg, min: AaText });\n }\n\n for (const f of ToneFamilies) {\n // Solid: foreground text on the saturated base.\n pairs.push({ fg: `${f}-foreground`, bg: f, min: AaText });\n // Soft: foreground text on the tinted soft surface.\n pairs.push({ fg: `${f}-soft-foreground`, bg: `${f}-soft`, min: AaText });\n // Outline and ghost variants place the same toned text on their hosting neutral surface.\n for (const bg of ['background', 'card', 'popover', 'muted'] as const) {\n pairs.push({ fg: `${f}-soft-foreground`, bg, min: AaText });\n pairs.push({ fg: `${f}-soft-foreground`, bg: f, opacity: 0.3, over: bg, min: AaText });\n pairs.push({ fg: 'foreground', bg: `${f}-soft`, opacity: 0.6, over: bg, min: AaText });\n }\n }\n\n return pairs;\n}\n\n/** Evaluates a declared opaque or translucent token pair without rounding its ratio. */\nexport function contrastPairRatio(set: TokenSet, pair: ContrastPair, foreground = set[pair.fg]): number {\n return pair.opacity !== undefined && pair.over !== undefined\n ? contrastRatioCompositeCss(foreground, set[pair.bg], set[pair.over], pair.opacity)\n : contrastRatioCss(foreground, set[pair.bg]);\n}\n\n/** Check one token set (one mode) against the pair list. Returns failure strings. */\nfunction checkMode(set: TokenSet, mode: ColorMode): ReadonlyArray<string> {\n const failures: Array<string> = [];\n for (const pair of contrastPairs()) {\n const { fg, bg, min, opacity, over } = pair;\n const ratio = contrastPairRatio(set, pair);\n if (!Number.isFinite(ratio) || ratio < min) {\n const surface = opacity === undefined ? bg : `${bg}/${opacity} over ${over}`;\n failures.push(`${mode}: ${fg} on ${surface} = ${ratio.toFixed(2)} (need ${min.toFixed(1)})`);\n }\n }\n return failures;\n}\n\n/**\n * Validate a theme's light AND dark token sets.\n * `contrastAA` is true only when both modes pass every pair.\n */\nexport function validateTheme(theme: Pick<Theme, 'light' | 'dark'>): ThemeMeta {\n const failures = [...checkMode(theme.light, ColorMode.Light), ...checkMode(theme.dark, ColorMode.Dark)];\n return failures.length === 0 ? { contrastAA: true } : { contrastAA: false, failures };\n}\n","import { oklchToCss, parseColor } from './Oklch';\nimport type { SemanticToken, TokenSet } from './Tokens';\nimport { contrastPairs, contrastPairRatio } from './Validate';\n\n/** Adjusts text and required indicator lightness only; surfaces, brand fills and hue inputs remain intact. */\nexport function ensureForegroundContrast(tokens: TokenSet): TokenSet {\n const adjusted = { ...tokens };\n const requirements = new Map<SemanticToken, Array<ReturnType<typeof contrastPairs>[number]>>();\n for (const pair of contrastPairs()) {\n const group = requirements.get(pair.fg) ?? [];\n group.push(pair);\n requirements.set(pair.fg, group);\n }\n for (const [foreground, pairs] of requirements) {\n const original = tokens[foreground];\n const passes = (color: string, margin = 0): boolean =>\n pairs.every((pair) => contrastPairRatio(tokens, pair, color) >= pair.min + margin);\n if (passes(original)) continue;\n const parsed = parseColor(original);\n if (parsed === null) throw new Error(`Invalid theme foreground: ${foreground}`);\n const candidates: Array<{ color: string; distance: number }> = [];\n for (const pole of [0, 1]) {\n const at = (lightness: number): string => oklchToCss({ ...parsed, l: lightness });\n if (!passes(at(pole), 0.02)) continue;\n let failing = parsed.l;\n let passing = pole;\n for (let step = 0; step < 24; step++) {\n const middle = (failing + passing) / 2;\n if (passes(at(middle), 0.02)) passing = middle;\n else failing = middle;\n }\n candidates.push({ color: at(passing), distance: Math.abs(passing - parsed.l) });\n }\n candidates.sort((a, b) => a.distance - b.distance);\n const selected = candidates[0];\n if (selected === undefined) throw new Error(`No foreground can satisfy the declared surfaces: ${foreground}`);\n adjusted[foreground] = selected.color;\n }\n return adjusted;\n}\n","/* ---------------------------------------------------------------------------\n * OKLCH theme generator.\n *\n * `generateTheme(seed)` → a fully-resolved, validated `Theme` with both light\n * and dark `TokenSet`s. Pure & deterministic — output depends only on the seed\n * (no `Math.random`). Strategy:\n *\n * 1. Neutral ramp — low-chroma lightness steps, hue/chroma biased by\n * `neutralTemp`; `surface` widens/narrows the steps. Drives background /\n * card / popover / field / muted / border / input / *-foreground.\n * 2. Primary — from `primaryHue` at a readable chroma; soft = high-L\n * low-C tint; foregrounds auto-nudged to clear AA.\n * 3. Accent — primary hue rotated per `accentMode`.\n * 4. Status — success / warning / destructive / info anchored to\n * canonical hues but chroma-harmonized to the primary.\n *\n * Every *-foreground is contrast-paired and nudged (lighter/darker in L) until\n * it clears its WCAG AA threshold, so generated themes are \"proven\" by default.\n * ------------------------------------------------------------------------- */\n\nimport type { AccentMode, NeutralTemp, SurfaceStyle, Theme, ThemeSeed } from './Theme';\nimport { ThemeStatus } from './Theme';\nimport { applyToneSlots, type ToneFamilyName, type ToneSlots, type TokenSet } from './Tokens';\nimport { contrastRatio, normalizeHue, oklchToCss, relativeLuminance, type Oklch } from './Oklch';\nimport { AaText, AaUi, validateTheme } from './Validate';\nimport { ensureForegroundContrast } from './ForegroundContrast';\n\n// ---------------------------------------------------------------------------\n// Neutral ramp configuration\n// ---------------------------------------------------------------------------\n\n/** Hue + chroma the neutral grey ramp is tinted toward, per temperature. */\nconst NeutralTint: Record<NeutralTemp, { hue: number; chroma: number }> = {\n cool: { hue: 250, chroma: 0.012 }, // bluish slate\n neutral: { hue: 270, chroma: 0.003 }, // near-achromatic\n warm: { hue: 70, chroma: 0.012 }, // warm stone\n};\n\n/** Canonical status hues (OKLCH degrees), tuned for sRGB. */\nconst StatusHue = {\n success: 150,\n warning: 80,\n destructive: 27,\n info: 230,\n} as const;\n\n// ---------------------------------------------------------------------------\n// Small helpers\n// ---------------------------------------------------------------------------\n\nconst clampL = (l: number): number => Math.min(0.985, Math.max(0.06, l));\n\n/** Pick the foreground (near-white vs near-black, tinted to `hue`) with higher contrast on `bg`. */\nfunction bestTextOn(bg: Oklch, hue: number): Oklch {\n const white: Oklch = { l: 0.985, c: 0.004, h: hue };\n const black: Oklch = { l: 0.18, c: 0.01, h: hue };\n return contrastRatio(white, bg) >= contrastRatio(black, bg) ? white : black;\n}\n\n/**\n * Nudge a foreground's lightness toward the better-contrast end until it clears\n * `min` against `bg` (or we run out of headroom). Deterministic stepping.\n */\nfunction nudgeForeground(fg: Oklch, bg: Oklch, min: number): Oklch {\n let cur = { ...fg };\n if (contrastRatio(cur, bg) >= min) return cur;\n\n // Decide direction: move toward whichever pole increases contrast.\n const goLighter = relativeLuminance(bg) < 0.4;\n const step = goLighter ? 0.03 : -0.03;\n\n for (let i = 0; i < 32; i++) {\n cur = { ...cur, l: clampL(cur.l + step) };\n if (contrastRatio(cur, bg) >= min) return cur;\n if (cur.l <= 0.06 || cur.l >= 0.985) break;\n }\n // Last resort: pure pole (white or black) for maximum contrast.\n return goLighter ? { l: 0.985, c: 0, h: fg.h } : { l: 0.1, c: 0, h: fg.h };\n}\n\n/**\n * Resolve a {base, foreground} pair that clears `min`. First nudge the\n * foreground; if it's already maxed at a pole and still short, slide the BASE\n * lightness away from the foreground (darker when fg is light, lighter when fg\n * is dark) — preserving hue/chroma — until the pair passes. Returns both.\n */\nfunction resolveSolidPair(base: Oklch, fg: Oklch, min: number): { base: Oklch; foreground: Oklch } {\n let curFg = nudgeForeground(fg, base, min);\n if (contrastRatio(curFg, base) >= min) return { base, foreground: curFg };\n\n // Foreground couldn't get there alone → move the base.\n const fgIsLight = relativeLuminance(curFg) >= 0.5;\n const step = fgIsLight ? -0.02 : 0.02; // push base contrast up\n let curBase = { ...base };\n for (let i = 0; i < 32; i++) {\n curBase = { ...curBase, l: clampL(curBase.l + step) };\n curFg = nudgeForeground(curFg, curBase, min);\n if (contrastRatio(curFg, curBase) >= min) break;\n if (curBase.l <= 0.06 || curBase.l >= 0.985) break;\n }\n return { base: curBase, foreground: curFg };\n}\n\n// ---------------------------------------------------------------------------\n// Per-mode build\n// ---------------------------------------------------------------------------\n\ninterface ModeConfig {\n /** Background lightness. */\n bgL: number;\n\n /** Step between stacked surfaces (card/popover/muted), signed toward foreground. */\n surfStep: number;\n\n /** Foreground (body text) lightness. */\n fgL: number;\n\n /** Base lightness for saturated tone bases (primary/status). */\n toneL: number;\n\n /** Chroma for saturated tone bases. */\n toneC: number;\n\n /** Soft-surface lightness. */\n softL: number;\n\n /** Soft-surface chroma. */\n softC: number;\n\n /** Is this the dark mode build? */\n isDark: boolean;\n}\n\n/** Resolve per-mode lightness/chroma knobs from the surface style. */\nfunction modeConfig(isDark: boolean, surface: SurfaceStyle): ModeConfig {\n const crisp = surface === 'crisp';\n if (isDark) {\n return {\n bgL: crisp ? 0.16 : 0.2,\n surfStep: crisp ? 0.05 : 0.04,\n fgL: 0.96,\n toneL: 0.7,\n toneC: 0.16,\n softL: 0.3,\n softC: 0.06,\n isDark: true,\n };\n }\n return {\n bgL: 1.0,\n surfStep: crisp ? -0.035 : -0.025,\n fgL: 0.2,\n toneL: 0.58,\n toneC: 0.17,\n softL: 0.95,\n softC: 0.05,\n isDark: false,\n };\n}\n\n/** Build one mode's full token set. */\nfunction buildMode(\n primaryHue: number,\n accentHue: number,\n neutralTemp: NeutralTemp,\n surface: SurfaceStyle,\n isDark: boolean,\n): TokenSet {\n const cfg = modeConfig(isDark, surface);\n const tint = NeutralTint[neutralTemp];\n const nh = tint.hue;\n const nc = tint.chroma;\n\n // ---- neutral surfaces ----\n const background: Oklch = { l: clampL(cfg.bgL), c: nc, h: nh };\n // card/popover sit one step \"in front of\" the background.\n const card: Oklch = { l: clampL(cfg.bgL + cfg.surfStep), c: nc, h: nh };\n const popover = card;\n // Form fields sit below raised panels: the popover fill in light mode, the page fill in dark mode, so an open\n // menu reads as a lighter surface over the fields it covers.\n const field = isDark ? background : popover;\n const muted: Oklch = { l: clampL(cfg.bgL + cfg.surfStep * 1.5), c: nc * 1.4, h: nh };\n\n // Borders / input outline — a couple steps further from bg, slightly more chroma.\n const border: Oklch = { l: clampL(cfg.bgL + cfg.surfStep * 2.2), c: nc * 1.6, h: nh };\n const borderStrong: Oklch = {\n l: clampL(cfg.bgL + cfg.surfStep * 3.4),\n c: nc * 1.8,\n h: nh,\n };\n const input = borderStrong;\n\n // Foregrounds (auto-nudged for AA).\n const foreground = nudgeForeground({ l: cfg.fgL, c: nc * 2, h: nh }, background, AaText);\n const cardFg = nudgeForeground(foreground, card, AaText);\n const popoverFg = nudgeForeground(foreground, popover, AaText);\n const mutedFg = nudgeForeground({ l: isDark ? 0.72 : 0.5, c: nc * 2.5, h: nh }, muted, AaText);\n const subtleFg = nudgeForeground({ l: isDark ? 0.55 : 0.62, c: nc * 2, h: nh }, background, AaText);\n\n // Inverse = flipped surface (dark chip on light theme, light chip on dark theme).\n const inverse: Oklch = isDark ? { l: 0.96, c: nc, h: nh } : { l: 0.2, c: nc * 2, h: nh };\n const inverseFg = nudgeForeground({ l: isDark ? 0.18 : 0.97, c: nc, h: nh }, inverse, AaText);\n\n // ---- tone family builder ----\n const buildTone = (hue: number, chromaScale = 1): ToneSlots => {\n const baseSeed: Oklch = { l: cfg.toneL, c: cfg.toneC * chromaScale, h: hue };\n const foregroundC = bestTextOn(baseSeed, hue);\n // Co-resolve base + foreground so the solid pair always clears AA text.\n const { base, foreground: fg } = resolveSolidPair(baseSeed, foregroundC, AaText);\n const soft: Oklch = { l: cfg.softL, c: cfg.softC * chromaScale, h: hue };\n // Soft-foreground: a deep (light mode) / bright (dark mode) tint of the same hue.\n const softFgSeed: Oklch = isDark\n ? { l: 0.85, c: cfg.softC * 1.4 * chromaScale, h: hue }\n : { l: 0.42, c: cfg.toneC * 0.9 * chromaScale, h: hue };\n const softFg = nudgeForeground(softFgSeed, soft, AaText);\n return {\n base: oklchToCss(base),\n foreground: oklchToCss(fg),\n soft: oklchToCss(soft),\n softForeground: oklchToCss(softFg),\n };\n };\n\n // Ring = primary at a vivid, mid lightness; checked as UI affordance vs bg.\n const ring = nudgeForeground({ l: isDark ? 0.7 : 0.55, c: 0.16, h: primaryHue }, background, AaUi);\n\n const set: Partial<TokenSet> = {\n background: oklchToCss(background),\n foreground: oklchToCss(foreground),\n card: oklchToCss(card),\n 'card-foreground': oklchToCss(cardFg),\n popover: oklchToCss(popover),\n 'popover-foreground': oklchToCss(popoverFg),\n field: oklchToCss(field),\n muted: oklchToCss(muted),\n 'muted-foreground': oklchToCss(mutedFg),\n 'subtle-foreground': oklchToCss(subtleFg),\n inverse: oklchToCss(inverse),\n 'inverse-foreground': oklchToCss(inverseFg),\n border: oklchToCss(border),\n 'border-strong': oklchToCss(borderStrong),\n input: oklchToCss(input),\n ring: oklchToCss(ring),\n };\n\n const tones: Record<ToneFamilyName, number> = {\n primary: primaryHue,\n accent: accentHue,\n destructive: StatusHue.destructive,\n info: StatusHue.info,\n success: StatusHue.success,\n warning: StatusHue.warning,\n };\n\n for (const [family, hue] of Object.entries(tones) as [ToneFamilyName, number][]) {\n // Warning runs a touch lower-chroma so the yellow doesn't blow out.\n const chromaScale = family === 'warning' ? 0.92 : 1;\n applyToneSlots(set, family, buildTone(hue, chromaScale));\n }\n\n return ensureForegroundContrast(set as TokenSet);\n}\n\n// ---------------------------------------------------------------------------\n// Accent derivation\n// ---------------------------------------------------------------------------\n\nfunction accentHueFrom(primaryHue: number, mode: AccentMode): number {\n switch (mode) {\n case 'complementary':\n return normalizeHue(primaryHue + 180);\n case 'analogous':\n return normalizeHue(primaryHue + 40);\n case 'triadic':\n return normalizeHue(primaryHue + 120);\n case 'mono':\n return primaryHue;\n }\n}\n\n// ---------------------------------------------------------------------------\n// Public entry\n// ---------------------------------------------------------------------------\n\nfunction defaultDescription(seed: ThemeSeed): string {\n const temp = seed.neutralTemp ?? 'neutral';\n const surf = seed.surface ?? 'crisp';\n return `Generated theme · hue ${Math.round(seed.primaryHue)}° · ${temp} neutrals · ${surf} surfaces.`;\n}\n\n/**\n * Expand a {@link ThemeSeed} into a validated {@link Theme}.\n * Deterministic: same seed in → identical theme out.\n */\nexport function generateTheme(seed: ThemeSeed): Theme {\n const primaryHue = normalizeHue(seed.primaryHue);\n const neutralTemp = seed.neutralTemp ?? 'neutral';\n const accentMode = seed.accentMode ?? 'complementary';\n const surface = seed.surface ?? 'crisp';\n const accentHue = accentHueFrom(primaryHue, accentMode);\n\n const light = buildMode(primaryHue, accentHue, neutralTemp, surface, false);\n const dark = buildMode(primaryHue, accentHue, neutralTemp, surface, true);\n\n const meta = validateTheme({ light, dark });\n\n const autoTags = [neutralTemp, accentMode, surface, meta.contrastAA ? 'aa' : 'aa-fail'];\n\n return {\n id: seed.id,\n name: seed.name,\n description: seed.description ?? defaultDescription(seed),\n tags: Array.from(new Set([...(seed.tags ?? []), ...autoTags])),\n light,\n dark,\n radius: seed.radius,\n // Generated/curated themes default to `candidate` — engine-proven, not yet\n // validated against a real app surface.\n status: ThemeStatus.Candidate,\n meta,\n };\n}\n","/* ---------------------------------------------------------------------------\n * CSS emitter — turn a Theme into scoped class blocks.\n *\n * An app applies a theme by adding `theme-{id}` to a root element. The emitted\n * CSS overrides the lib's semantic `--color-*` vars (and optional `--radius-*`)\n * under that class, so every Tailwind utility (`bg-primary`, `text-foreground`,\n * …) re-resolves to the theme's values. Dark mode reuses the lib's variant:\n * `.dark.theme-{id}` (i.e. `.dark` + the theme class on the same element, or an\n * ancestor `.dark`).\n * ------------------------------------------------------------------------- */\n\nimport type { Theme, ThemeGlassTokens, ThemeStatus } from './Theme';\nimport { SemanticTokens, type TokenSet } from './Tokens';\n\n/** Radius knob → concrete `--radius-*` triple (mirrors the lib's default scale shifts). */\nconst RadiusScale: Record<NonNullable<Theme['radius']>, Record<string, string>> = {\n sm: { md: '0.375rem', lg: '0.5rem', xl: '0.75rem' },\n md: { md: '0.5rem', lg: '0.75rem', xl: '1rem' },\n lg: { md: '0.625rem', lg: '0.875rem', xl: '1.25rem' },\n};\n\n/** Render one token set as ` --color-{key}: {value};` declaration lines. */\nfunction declarations(set: TokenSet, indent = ' '): string {\n return SemanticTokens.map((tok) => `${indent}--color-${tok}: ${set[tok]};`).join('\\n');\n}\n\n/** Render the optional radius overrides as declaration lines (empty string when unset). */\nfunction radiusDeclarations(theme: Theme, indent = ' '): string {\n if (!theme.radius) return '';\n const scale = RadiusScale[theme.radius];\n return (\n '\\n' +\n Object.entries(scale)\n .map(([k, v]) => `${indent}--radius-${k}: ${v};`)\n .join('\\n')\n );\n}\n\n/** Render the optional ambient backdrop as a declaration line (empty string when unset). */\nfunction ambientDeclaration(layers: string | undefined, indent = ' '): string {\n return layers ? `\\n${indent}--theme-ambient: ${layers};` : '';\n}\n\n/** The custom property each glass token writes, in emission order. */\nconst GlassProperties: ReadonlyArray<readonly [keyof ThemeGlassTokens, string]> = [\n ['fill', '--glass-fill'],\n ['sideFill', '--glass-side-fill'],\n ['menuFill', '--glass-menu-fill'],\n ['blur', '--glass-blur'],\n ['saturate', '--glass-saturate'],\n ['edge', '--glass-edge'],\n ['highlight', '--glass-highlight'],\n ['shadow', '--glass-shadow'],\n ['bottomShadow', '--glass-bottom-shadow'],\n ['menuShadow', '--glass-menu-shadow'],\n];\n\n/** The tokens that are shadows; each ends in the highlight line. */\nconst GlassShadowTokens: ReadonlySet<keyof ThemeGlassTokens> = new Set(['shadow', 'bottomShadow', 'menuShadow']);\n\n/**\n * Render one mode's glass strength as declaration lines (empty string when unset). With a highlight, every shadow\n * ends in its 1px inset line along the top edge, so a surface that takes a shadow takes the highlight too.\n */\nfunction glassDeclarations(tokens: ThemeGlassTokens | undefined, indent = ' '): string {\n if (!tokens) return '';\n const lines: Array<string> = [];\n for (const [key, property] of GlassProperties) {\n const value = tokens[key];\n if (value === undefined) continue;\n const declared =\n GlassShadowTokens.has(key) && tokens.highlight !== undefined\n ? `${value}, inset 0 1px 0 var(--glass-highlight)`\n : value;\n lines.push(`\\n${indent}${property}: ${declared};`);\n }\n return lines.join('');\n}\n\n/**\n * Emit the CSS for a single theme: a light `.theme-{id}` block + a\n * `.dark.theme-{id}` block. Returns a string (no trailing newline).\n */\nexport function themeToCss(theme: Theme): string {\n const radius = radiusDeclarations(theme);\n const id = theme.id.replace(/[^a-zA-Z0-9_-]/gu, (character) => `\\\\${character.codePointAt(0)!.toString(16)} `);\n const selector = `.theme-${id}`;\n const light =\n `${selector} {\\n${declarations(theme.light)}${radius}${ambientDeclaration(theme.ambient?.light)}` +\n `${glassDeclarations(theme.glass?.light)}\\n}`;\n const dark =\n `.dark${selector}, .dark ${selector} {\\n${declarations(theme.dark)}${ambientDeclaration(theme.ambient?.dark)}` +\n `${glassDeclarations(theme.glass?.dark)}\\n}`;\n return `${light}\\n\\n${dark}`;\n}\n\n/** Emit a full stylesheet for many themes, with a generated-file banner. */\nexport function emitAllThemesCss(themes: ReadonlyArray<Theme>): string {\n const banner =\n '/* Generated by @wow-two-beta/fe theme engine — do not edit by hand.\\n' +\n ' * Source: src/foundation/themes/Registry.ts → regenerate via the package build. */\\n';\n const body = themes.map(themeToCss).join('\\n\\n');\n return `${banner}\\n${body}\\n`;\n}\n\n/** Machine-readable manifest entry for one theme (no token payload — index only). */\nexport interface ThemeManifestEntry {\n id: string;\n name: string;\n description: string;\n tags: ReadonlyArray<string>;\n /** Lifecycle status — `validated` (real-app proven) or `candidate` (engine-proven). */\n status: ThemeStatus;\n contrastAA: boolean;\n}\n\n/** Build the `themes.json` manifest payload from the registry. */\nexport function emitThemesManifest(themes: ReadonlyArray<Theme>): ReadonlyArray<ThemeManifestEntry> {\n return themes.map((t) => ({\n id: t.id,\n name: t.name,\n description: t.description,\n tags: t.tags,\n status: t.status,\n contrastAA: t.meta.contrastAA,\n }));\n}\n","/* Authored palettes.\n * Platform: the shared theme of the wow-two platform apps, taken from Wheelhouse's live chalk/forest palette and\n * validated there. Every value is locked; the few foregrounds and the strong border nudged to clear the SDK's\n * contrast pairs are listed beside their Wheelhouse originals.\n * Glass Harbor, Frost, Bento Deck and Harbor Frost: the Wheelhouse design directions. Surfaces, fills and borders are\n * authored verbatim; text and required indicators pass through `ensureForegroundContrast`, because this SDK checks\n * placeholders, input boundaries and translucent tones the React validator did not. The glass directions carry an\n * `ambient` backdrop for `surface-ambient`.\n * Smart QR: brand fills and neutral backgrounds preserve the original app colors; foreground tokens were corrected\n * for the SDK's declared text/placeholder/glass contrast pairs and await visual review in the app.\n * Ocharo: the owner-approved Ink and Raspberry (light) and Neutral graphite (dark) palette under a raspberry-and-blue\n * backdrop, with the approved frame glass; the tones the approval left open are derived to match it.\n * Smart QR and Ocharo stay candidates until a shipping app validates them through the registry. */\n\nimport type { Theme, ThemeAmbient, ThemeGlass } from '../Theme';\nimport { ThemeRadius, ThemeStatus } from '../Theme';\nimport type { TokenSet } from '../Tokens';\nimport { ensureForegroundContrast } from '../ForegroundContrast';\nimport { validateTheme } from '../Validate';\n\n/* ---------------------------------------------------------------------------\n * Platform — forest actions on warm chalk, pine charcoal at night, under a faint forest-and-gold backdrop.\n * Wheelhouse's values verbatim, except where a comment gives its original: those foregrounds and the strong\n * border moved in lightness only, by the least that clears the declared pairs.\n * ------------------------------------------------------------------------- */\n\nconst platformLight: TokenSet = {\n background: '#f4f4ef',\n foreground: '#202d27',\n card: '#ffffff',\n 'card-foreground': '#202d27',\n popover: '#ffffff',\n 'popover-foreground': '#202d27',\n field: '#ffffff',\n muted: '#eaece5',\n 'muted-foreground': '#56665d',\n 'subtle-foreground': '#5e6d64',\n inverse: '#202d27',\n 'inverse-foreground': '#f4f4ef',\n border: '#dde2d8',\n 'border-strong': '#80897e', // #b8c2b6: 1.54–1.84:1 on the neutral surfaces\n input: '#758579',\n ring: '#285c4b',\n primary: '#285c4b',\n 'primary-foreground': '#ffffff',\n 'primary-soft': '#e2eee6',\n 'primary-soft-foreground': '#215545', // #285c4b, and each soft foreground below: under 4.5:1 on its 30% tone wash\n accent: '#806235',\n 'accent-foreground': '#ffffff',\n 'accent-soft': '#f1eade',\n 'accent-soft-foreground': '#6a4b15', // #755521\n destructive: '#b44745',\n 'destructive-foreground': '#ffffff',\n 'destructive-soft': '#f9e8e5',\n 'destructive-soft-foreground': '#8f2d2b', // #a13d39\n info: '#306a83',\n 'info-foreground': '#ffffff',\n 'info-soft': '#e4eef4',\n 'info-soft-foreground': '#20556d', // #2d6179\n success: '#26704c',\n 'success-foreground': '#ffffff',\n 'success-soft': '#e3f0e5',\n 'success-soft-foreground': '#1b5a35', // #25633d\n warning: '#966014',\n 'warning-foreground': '#ffffff',\n 'warning-soft': '#faf0d9',\n 'warning-soft-foreground': '#704900', // #7d5511\n};\n\nconst platformDark: TokenSet = {\n background: '#121917',\n foreground: '#edf1eb',\n card: '#1b2420',\n 'card-foreground': '#edf1eb',\n popover: '#1b2420',\n 'popover-foreground': '#edf1eb',\n field: '#121917',\n muted: '#29352e',\n 'muted-foreground': '#b2beb4',\n 'subtle-foreground': '#a1aea3',\n inverse: '#edf1eb',\n 'inverse-foreground': '#121917',\n border: '#344138',\n 'border-strong': '#6c8072', // #536659: 2.08–2.90:1 on the neutral surfaces\n input: '#7b8d7f',\n ring: '#a6d4bd',\n primary: '#a6d4bd',\n 'primary-foreground': '#14352a',\n 'primary-soft': '#283e33',\n 'primary-soft-foreground': '#bde3cc', // #b6dcc5, and each soft foreground below: under 4.5:1 on its wash over muted\n accent: '#d9bd8c',\n 'accent-foreground': '#36280e',\n 'accent-soft': '#3d3424',\n 'accent-soft-foreground': '#edd2a5', // #e4c99c\n destructive: '#efa69c',\n 'destructive-foreground': '#3c1715',\n 'destructive-soft': '#442c29',\n 'destructive-soft-foreground': '#fdc3b8', // #efb5aa\n info: '#9dcce1',\n 'info-foreground': '#102731',\n 'info-soft': '#293b44',\n 'info-soft-foreground': '#bdddee', // #b6d6e7\n success: '#a1d7b3',\n 'success-foreground': '#11281a',\n 'success-soft': '#243c2b',\n 'success-soft-foreground': '#bce4c7', // #b4dcbf\n warning: '#eac582',\n 'warning-foreground': '#382709',\n 'warning-soft': '#3e3320',\n 'warning-soft-foreground': '#f4d6a0', // #edcf99\n};\n\n/* Two still glows from the top corners: forest at the left, gold at the right. */\nconst platformAmbient: ThemeAmbient = {\n light: [\n 'radial-gradient(ellipse 70rem 42rem at 0% 0%, #80aa9210, transparent 72%)',\n 'radial-gradient(ellipse 58rem 42rem at 100% 10%, #d6b6750f, transparent 74%)',\n ].join(', '),\n dark: [\n 'radial-gradient(ellipse 70rem 42rem at 0% 0%, #3d7b6229, transparent 72%)',\n 'radial-gradient(ellipse 58rem 42rem at 100% 10%, #aa854d1a, transparent 74%)',\n ].join(', '),\n};\n\n/** Platform — the shared look of the wow-two platform apps, proven in Wheelhouse. */\nconst platform: Theme = {\n id: 'platform',\n name: 'Platform',\n description:\n 'Forest actions on warm chalk (light) / pine charcoal (dark) under a faint forest-and-gold backdrop — the shared theme of the wow-two platform apps, proven in Wheelhouse.',\n tags: ['platform', 'validated', 'product', 'forest', 'chalk', 'warm', 'glass', 'aa'],\n light: platformLight,\n dark: platformDark,\n ambient: platformAmbient,\n status: ThemeStatus.Validated,\n meta: validateTheme({ light: platformLight, dark: platformDark }),\n};\n\n// Original inherited palette retained as the authored base; explicit foreground corrections follow below.\nconst SmartQrBaseLight: TokenSet = {\n background: '#ffffff',\n foreground: '#18181b',\n card: '#ffffff',\n 'card-foreground': '#18181b',\n popover: '#ffffff',\n 'popover-foreground': '#18181b',\n field: '#ffffff',\n muted: '#f4f4f5',\n 'muted-foreground': '#71717a',\n 'subtle-foreground': '#a1a1aa',\n inverse: '#18181b',\n 'inverse-foreground': '#fafafa',\n border: '#e4e4e7',\n 'border-strong': '#d4d4d8',\n input: '#d4d4d8',\n ring: '#3b82f6',\n primary: '#2563eb',\n 'primary-foreground': '#ffffff',\n 'primary-soft': '#dbeafe',\n 'primary-soft-foreground': '#1d4ed8',\n accent: '#0d9488',\n 'accent-foreground': '#ffffff',\n 'accent-soft': '#ccfbf1',\n 'accent-soft-foreground': '#115e59',\n destructive: '#dc2626',\n 'destructive-foreground': '#ffffff',\n 'destructive-soft': '#fef2f2',\n 'destructive-soft-foreground': '#b91c1c',\n info: '#0891b2',\n 'info-foreground': '#ffffff',\n 'info-soft': '#ecfeff',\n 'info-soft-foreground': '#0e7490',\n success: '#16a34a',\n 'success-foreground': '#ffffff',\n 'success-soft': '#f0fdf4',\n 'success-soft-foreground': '#15803d',\n warning: '#f59e0b',\n 'warning-foreground': '#78350f',\n 'warning-soft': '#fffbeb',\n 'warning-soft-foreground': '#b45309',\n};\n\nconst SmartQrBaseDark: TokenSet = {\n background: '#09090b',\n foreground: '#fafafa',\n card: '#18181b',\n 'card-foreground': '#fafafa',\n popover: '#18181b',\n 'popover-foreground': '#fafafa',\n field: '#09090b',\n muted: '#18181b',\n 'muted-foreground': '#a1a1aa',\n 'subtle-foreground': '#71717a',\n inverse: '#fafafa',\n 'inverse-foreground': '#09090b',\n border: '#27272a',\n 'border-strong': '#3f3f46',\n input: '#3f3f46',\n ring: '#60a5fa',\n primary: '#3b82f6',\n 'primary-foreground': '#ffffff',\n 'primary-soft': '#1e3a8a',\n 'primary-soft-foreground': '#dbeafe',\n accent: '#2dd4bf',\n 'accent-foreground': '#042f2e',\n 'accent-soft': '#134e4a',\n 'accent-soft-foreground': '#5eead4',\n destructive: '#ef4444',\n 'destructive-foreground': '#ffffff',\n 'destructive-soft': '#7f1d1d',\n 'destructive-soft-foreground': '#fee2e2',\n info: '#06b6d4',\n 'info-foreground': '#ffffff',\n 'info-soft': '#164e63',\n 'info-soft-foreground': '#cffafe',\n success: '#22c55e',\n 'success-foreground': '#ffffff',\n 'success-soft': '#14532d',\n 'success-soft-foreground': '#dcfce7',\n warning: '#f59e0b',\n 'warning-foreground': '#78350f',\n 'warning-soft': '#78350f',\n 'warning-soft-foreground': '#fef3c7',\n};\n\n// Original authored backgrounds and brand fills; foreground corrections are explicit and reviewable.\nconst smartQrLight: TokenSet = {\n ...SmartQrBaseLight,\n background: '#d9dde8',\n card: '#ebeef4',\n popover: '#ebeef4',\n 'popover-foreground': '#1c1d26',\n field: '#ebeef4',\n muted: '#f1f2f8',\n foreground: '#1c1d26',\n 'card-foreground': '#1c1d26', // = foreground (app inherits foreground here)\n 'muted-foreground': 'oklch(49.6% 0.0358 279.3)',\n 'subtle-foreground': 'oklch(49.5% 0.0323 277.4)',\n border: '#e4e6f0',\n 'border-strong': 'oklch(59.1% 0.0210 276.9)',\n input: 'oklch(59.0% 0.0137 277.1)',\n ring: '#8b5cf6',\n primary: '#7c3aed',\n 'primary-foreground': '#f5f3ff',\n 'primary-soft': '#ede9fe',\n 'primary-soft-foreground': 'oklch(42.5% 0.2106 292.8)',\n accent: '#0d9488',\n 'accent-foreground': 'oklch(22.9% 0.0000 89.9)',\n 'accent-soft': '#ccfbf1',\n 'accent-soft-foreground': 'oklch(41.6% 0.0705 188.2)',\n 'destructive-soft-foreground': 'oklch(41.4% 0.1694 27.5)',\n 'info-foreground': 'oklch(23.5% 0.0000 89.9)',\n 'info-soft-foreground': 'oklch(41.9% 0.0783 223.1)',\n 'success-foreground': 'oklch(27.3% 0.0000 89.9)',\n 'success-soft-foreground': 'oklch(41.8% 0.1152 150.1)',\n 'warning-foreground': 'oklch(39.7% 0.1054 45.9)',\n 'warning-soft-foreground': 'oklch(46.9% 0.1261 49.0)',\n};\n\nconst smartQrDark: TokenSet = {\n ...SmartQrBaseDark,\n background: '#121214',\n card: '#1c1c1f',\n popover: '#1c1c1f',\n 'popover-foreground': '#e7e7e9',\n field: '#121214',\n muted: '#18181b',\n foreground: '#e7e7e9',\n 'card-foreground': '#e7e7e9', // = foreground (app inherits foreground here)\n 'muted-foreground': '#a1a1aa',\n 'subtle-foreground': 'oklch(61.3% 0.0123 286.0)',\n border: '#2a2a2e',\n 'border-strong': 'oklch(51.6% 0.0103 285.9)',\n input: 'oklch(51.6% 0.0072 285.9)',\n ring: '#8b5cf6',\n primary: '#8b5cf6',\n 'primary-soft': '#2a2440',\n 'primary-soft-foreground': '#c4b5fd',\n accent: '#2dd4bf',\n 'accent-soft': '#103a35',\n 'accent-soft-foreground': '#5eead4',\n 'primary-foreground': 'oklch(16.9% 0.0000 89.9)',\n 'destructive-foreground': 'oklch(22.7% 0.0000 89.9)',\n 'info-foreground': 'oklch(35.7% 0.0000 89.9)',\n 'success-foreground': 'oklch(37.3% 0.0000 89.9)',\n 'warning-foreground': 'oklch(39.7% 0.1054 45.9)',\n};\n\n/** Smart QR with contrast-corrected foregrounds, awaiting a fresh visual review in the app. */\nconst smartQr: Theme = {\n id: 'smart-qr',\n name: 'Smart QR',\n description:\n 'Violet brand + teal accent on cool lavender-grey (light) / charcoal (dark) — contrast-corrected Smart QR candidate awaiting app review.',\n tags: ['brand', 'violet', 'teal', 'candidate', 'aa', 'product'],\n light: smartQrLight,\n dark: smartQrDark,\n status: ThemeStatus.Candidate,\n meta: validateTheme({ light: smartQrLight, dark: smartQrDark }),\n};\n\n/* ---------------------------------------------------------------------------\n * Ocharo — raspberry actions on cool white and ink (light) / neutral graphite (dark), under a raspberry-and-blue\n * backdrop. The owner approved Ink and Raspberry and Neutral graphite on 2026-10-02 and the glass-and-gradient\n * direction on 2026-10-17. Approved values are verbatim, except where a comment gives the original: those moved in\n * lightness only, by the least that clears the declared pairs. The approval left muted, subtle, inverse, field,\n * accent and the status families open; they are derived here (muted and the status tones start from Catalogue's\n * shipped values). The approved header and menu materials (light: white at 84% and 92%; dark: #29292d at 90% and\n * 96%) set the popover colour and, with the sidebar, blur, edge and shadows, the theme's glass strength.\n * ------------------------------------------------------------------------- */\n\nconst ocharoLight: TokenSet = {\n background: '#f5f6fa',\n foreground: '#181b25',\n card: '#ffffff',\n 'card-foreground': '#181b25',\n popover: '#ffffff',\n 'popover-foreground': '#181b25',\n field: '#ffffff',\n muted: '#eef0f6',\n 'muted-foreground': '#555e72',\n 'subtle-foreground': '#5f687b',\n inverse: '#181b25',\n 'inverse-foreground': '#f5f6fa',\n border: '#dfe3ed',\n 'border-strong': '#828b9f', // #858ea3: 2.88:1 on muted\n input: '#828b9f', // #858ea3\n ring: '#9d2e6a',\n primary: '#8b2459',\n 'primary-foreground': '#ffffff',\n 'primary-soft': '#f8e9f0',\n 'primary-soft-foreground': '#892257', // #8b2459: 4.39:1 on its 30% tone wash over muted\n accent: '#2457ce',\n 'accent-foreground': '#ffffff',\n 'accent-soft': '#e8eefc',\n 'accent-soft-foreground': '#1545bb',\n destructive: '#a0443d',\n 'destructive-foreground': '#ffffff',\n 'destructive-soft': '#fae9e6',\n 'destructive-soft-foreground': '#8d322d',\n info: '#176d8b',\n 'info-foreground': '#ffffff',\n 'info-soft': '#e3f1f9',\n 'info-soft-foreground': '#005974',\n success: '#426553',\n 'success-foreground': '#ffffff',\n 'success-soft': '#e9f0e9',\n 'success-soft-foreground': '#365847',\n warning: '#906623',\n 'warning-foreground': '#ffffff',\n 'warning-soft': '#f8efdd',\n 'warning-soft-foreground': '#744c00',\n};\n\nconst ocharoDark: TokenSet = {\n background: '#141416',\n foreground: '#f4f2f5',\n card: '#1d1d20',\n 'card-foreground': '#f4f2f5',\n popover: '#29292d',\n 'popover-foreground': '#f4f2f5',\n field: '#141416',\n muted: '#262629',\n 'muted-foreground': '#b7b3bd',\n 'subtle-foreground': '#a29ea8',\n inverse: '#f4f2f5',\n 'inverse-foreground': '#141416',\n border: '#3d3b42',\n 'border-strong': '#85808c',\n input: '#85808c',\n ring: '#e69abc',\n primary: '#c24783',\n 'primary-foreground': '#ffffff',\n 'primary-soft': '#392330',\n 'primary-soft-foreground': '#e69abc',\n accent: '#5b6cc8',\n 'accent-foreground': '#ffffff',\n 'accent-soft': '#262c44',\n 'accent-soft-foreground': '#b5c2f2',\n destructive: '#efaaa1',\n 'destructive-foreground': '#3c1715',\n 'destructive-soft': '#492b28',\n 'destructive-soft-foreground': '#ffd0c8',\n info: '#94c6e1',\n 'info-foreground': '#08222f',\n 'info-soft': '#20333c',\n 'info-soft-foreground': '#b8daed',\n success: '#a6cfb4',\n 'success-foreground': '#11281a',\n 'success-soft': '#263d30',\n 'success-soft-foreground': '#c1e1ca',\n warning: '#e1bd79',\n 'warning-foreground': '#382709',\n 'warning-soft': '#473b25',\n 'warning-soft-foreground': '#f0d299',\n};\n\n/* The approved prototype's medium backdrop: a raspberry glow from the top left (16%), a cool blue one from the bottom\n * right (11%) and a faint rose one near the top right (8%), at the same alphas in both modes. */\nconst ocharoAmbient: ThemeAmbient = {\n light: [\n 'radial-gradient(ellipse 60% 55% at 0% 0%, #8b245929, transparent 70%)',\n 'radial-gradient(ellipse 55% 60% at 100% 100%, #2457ce1c, transparent 70%)',\n 'radial-gradient(ellipse 40% 35% at 70% 8%, #c2478314, transparent 75%)',\n ].join(', '),\n dark: [\n 'radial-gradient(ellipse 60% 55% at 0% 0%, #c2478329, transparent 70%)',\n 'radial-gradient(ellipse 55% 60% at 100% 100%, #5b6cc81c, transparent 70%)',\n 'radial-gradient(ellipse 40% 35% at 70% 8%, #8a6f9e14, transparent 75%)',\n ].join(', '),\n};\n\n/* The approved frame glass, verbatim from Ocharo Desk's `oc-glass` materials: the chrome at 84% / 90%, the sidebar at\n * 60% / 70% over #212125, menus at 92% / 96%, a 24px blur, and a white top highlight inside every shadow. The bottom\n * bar's shadow is derived, not approved: the chrome shadow mirrored upward, so the phone bar lifts off the page as\n * the top bar does (Desk's own phone bar had none). */\nconst ocharoGlass: ThemeGlass = {\n light: {\n fill: 'rgb(255 255 255 / 0.84)',\n sideFill: 'rgb(255 255 255 / 0.6)',\n menuFill: 'rgb(255 255 255 / 0.92)',\n blur: '24px',\n saturate: '120%',\n edge: 'rgb(24 27 37 / 0.08)',\n highlight: 'rgb(255 255 255 / 0.9)',\n shadow: '0 10px 30px rgb(24 27 37 / 0.06)',\n bottomShadow: '0 -10px 30px rgb(24 27 37 / 0.06)',\n menuShadow: '0 18px 50px rgb(24 27 37 / 0.16)',\n },\n dark: {\n fill: 'rgb(41 41 45 / 0.9)',\n sideFill: 'rgb(33 33 37 / 0.7)',\n menuFill: 'rgb(41 41 45 / 0.96)',\n blur: '24px',\n saturate: '100%',\n edge: 'rgb(255 255 255 / 0.07)',\n highlight: 'rgb(255 255 255 / 0.06)',\n shadow: '0 12px 32px rgb(0 0 0 / 0.25)',\n bottomShadow: '0 -12px 32px rgb(0 0 0 / 0.25)',\n menuShadow: '0 20px 60px rgb(0 0 0 / 0.5)',\n },\n};\n\n/** Ocharo — the shared look of the Ocharo apps; the product keeps its layout and typography. */\nconst ocharo: Theme = {\n id: 'ocharo',\n name: 'Ocharo',\n description:\n 'Raspberry actions and a cobalt accent on cool white and ink (light) / neutral graphite (dark) under a raspberry-and-blue glass backdrop — the owner-approved Ocharo palette, awaiting validation in Desk.',\n tags: ['brand', 'raspberry', 'ink', 'graphite', 'cobalt', 'glass', 'cool', 'neutral', 'candidate', 'aa', 'product'],\n light: ocharoLight,\n dark: ocharoDark,\n radius: ThemeRadius.Lg,\n ambient: ocharoAmbient,\n glass: ocharoGlass,\n status: ThemeStatus.Candidate,\n meta: validateTheme({ light: ocharoLight, dark: ocharoDark }),\n};\n\n/** Authored palettes, merged before generated candidates in the registry. */\n/* ---------------------------------------------------------------------------\n * Glass Harbor — cyan brand and amber harbor lights on deep navy, under dark glass.\n * Dark is the drawn direction; light is its pale sea-glass daybreak.\n * ------------------------------------------------------------------------- */\n\nconst glassHarborLight: TokenSet = ensureForegroundContrast({\n background: '#eaf2f6',\n foreground: '#0b1f33',\n card: '#f7fbfc',\n 'card-foreground': '#0b1f33',\n popover: '#ffffff',\n 'popover-foreground': '#0b1f33',\n field: '#ffffff',\n muted: '#dde8ee',\n 'muted-foreground': '#4a6075',\n 'subtle-foreground': '#71879b',\n inverse: '#0b1f33',\n 'inverse-foreground': '#eaf2f6',\n border: '#d2dfe7',\n 'border-strong': '#b7c9d5',\n input: '#c5d6e0',\n ring: '#1b7f9e',\n primary: '#17718e',\n 'primary-foreground': '#ffffff',\n 'primary-soft': '#d6ecf3',\n 'primary-soft-foreground': '#125a72',\n accent: '#5a48d6',\n 'accent-foreground': '#ffffff',\n 'accent-soft': '#e6e3fb',\n 'accent-soft-foreground': '#3f2fb0',\n destructive: '#c0364c',\n 'destructive-foreground': '#ffffff',\n 'destructive-soft': '#fbe3e7',\n 'destructive-soft-foreground': '#9b2438',\n info: '#1f68b0',\n 'info-foreground': '#ffffff',\n 'info-soft': '#dfeaf7',\n 'info-soft-foreground': '#1a538c',\n success: '#1b7a5f',\n 'success-foreground': '#ffffff',\n 'success-soft': '#dcf2ea',\n 'success-soft-foreground': '#155c48',\n warning: '#d9892f',\n 'warning-foreground': '#2e1804',\n 'warning-soft': '#fcebd9',\n 'warning-soft-foreground': '#8a4b0f',\n});\n\nconst glassHarborDark: TokenSet = ensureForegroundContrast({\n background: '#06121f',\n foreground: '#e8f1f8',\n card: '#0f2133',\n 'card-foreground': '#e8f1f8',\n popover: '#13283f',\n 'popover-foreground': '#e8f1f8',\n field: '#06121f',\n muted: '#0b1b2c',\n 'muted-foreground': '#9fb4c8',\n 'subtle-foreground': '#6d86a0',\n inverse: '#e8f1f8',\n 'inverse-foreground': '#06121f',\n border: '#20364d',\n 'border-strong': '#2f4b68',\n input: '#294460',\n ring: '#5fd3e6',\n primary: '#4fb0cf',\n 'primary-foreground': '#041722',\n 'primary-soft': '#0e3346',\n 'primary-soft-foreground': '#8fe3f2',\n accent: '#a497ff',\n 'accent-foreground': '#140e3a',\n 'accent-soft': '#231f4d',\n 'accent-soft-foreground': '#c9c1ff',\n destructive: '#ff8a9a',\n 'destructive-foreground': '#2a0a10',\n 'destructive-soft': '#3a1622',\n 'destructive-soft-foreground': '#ffb8c2',\n info: '#7cc4fa',\n 'info-foreground': '#04182a',\n 'info-soft': '#0f2c45',\n 'info-soft-foreground': '#a9dcff',\n success: '#5fd3a8',\n 'success-foreground': '#03241a',\n 'success-soft': '#0f3329',\n 'success-soft-foreground': '#8ff0c8',\n warning: '#f4a259',\n 'warning-foreground': '#2e1804',\n 'warning-soft': '#3a2616',\n 'warning-soft-foreground': '#ffc58f',\n});\n\nconst glassHarborAmbient: ThemeAmbient = {\n light: [\n 'radial-gradient(circle at 62% 8%, rgb(95 196 222 / 0.34), transparent 38%)',\n 'radial-gradient(circle at 10% 81%, rgb(150 140 235 / 0.24), transparent 34%)',\n 'radial-gradient(circle at 96% 86%, rgb(255 190 130 / 0.3), transparent 24%)',\n ].join(', '),\n dark: [\n 'radial-gradient(circle at 62% 8%, rgb(27 143 166 / 0.38), transparent 38%)',\n 'radial-gradient(circle at 10% 81%, rgb(74 63 196 / 0.3), transparent 34%)',\n 'radial-gradient(circle at 96% 86%, rgb(244 162 89 / 0.16), transparent 22%)',\n ].join(', '),\n};\n\n/** Glass Harbor — dark glass over a navy harbor glow. */\nconst glassHarbor: Theme = {\n id: 'glass-harbor',\n name: 'Glass Harbor',\n description:\n 'Cyan brand and amber harbor lights on deep navy under dark glass; light mode is its pale sea-glass counterpart.',\n tags: ['authored', 'glass', 'cool', 'navy', 'cyan'],\n light: glassHarborLight,\n dark: glassHarborDark,\n radius: ThemeRadius.Lg,\n ambient: glassHarborAmbient,\n status: ThemeStatus.Candidate,\n meta: validateTheme({ light: glassHarborLight, dark: glassHarborDark }),\n};\n\n/* ---------------------------------------------------------------------------\n * Frost — deep teal brand on a blue, lavender and peach wash, under frosted glass.\n * Light is the drawn direction; dark is its cool slate night.\n * ------------------------------------------------------------------------- */\n\nconst frostLight: TokenSet = ensureForegroundContrast({\n background: '#eef3f8',\n foreground: '#15233a',\n card: '#f8fafd',\n 'card-foreground': '#15233a',\n popover: '#ffffff',\n 'popover-foreground': '#15233a',\n field: '#ffffff',\n muted: '#e3e9f0',\n 'muted-foreground': '#4d5d74',\n 'subtle-foreground': '#7b889c',\n inverse: '#15233a',\n 'inverse-foreground': '#f4f7fb',\n border: '#dbe3ec',\n 'border-strong': '#c3cedb',\n input: '#d0d9e4',\n ring: '#1f6f8b',\n primary: '#1f6f8b',\n 'primary-foreground': '#ffffff',\n 'primary-soft': '#dcebf1',\n 'primary-soft-foreground': '#185a71',\n accent: '#6252d8',\n 'accent-foreground': '#ffffff',\n 'accent-soft': '#ebe8fb',\n 'accent-soft-foreground': '#4838b8',\n destructive: '#c23349',\n 'destructive-foreground': '#ffffff',\n 'destructive-soft': '#fbe4e7',\n 'destructive-soft-foreground': '#9e2b3b',\n info: '#2a67ad',\n 'info-foreground': '#ffffff',\n 'info-soft': '#e1ecf8',\n 'info-soft-foreground': '#1f5390',\n success: '#1d7a6e',\n 'success-foreground': '#ffffff',\n 'success-soft': '#dff3ef',\n 'success-soft-foreground': '#1c6e64',\n warning: '#e9a23b',\n 'warning-foreground': '#3d2503',\n 'warning-soft': '#fdebd7',\n 'warning-soft-foreground': '#8a4b0f',\n});\n\nconst frostDark: TokenSet = ensureForegroundContrast({\n background: '#10131d',\n foreground: '#eef1f8',\n card: '#1a1e2b',\n 'card-foreground': '#eef1f8',\n popover: '#202536',\n 'popover-foreground': '#eef1f8',\n field: '#10131d',\n muted: '#161a26',\n 'muted-foreground': '#a3adc2',\n 'subtle-foreground': '#737e95',\n inverse: '#eef1f8',\n 'inverse-foreground': '#10131d',\n border: '#2a3042',\n 'border-strong': '#3a4258',\n input: '#333a4f',\n ring: '#7cc7de',\n primary: '#7cc7de',\n 'primary-foreground': '#06202b',\n 'primary-soft': '#16303b',\n 'primary-soft-foreground': '#a8e0f0',\n accent: '#a99cf5',\n 'accent-foreground': '#16103a',\n 'accent-soft': '#262245',\n 'accent-soft-foreground': '#cdc5fb',\n destructive: '#f28b9b',\n 'destructive-foreground': '#2a0a10',\n 'destructive-soft': '#3a1821',\n 'destructive-soft-foreground': '#ffb8c2',\n info: '#86b6f0',\n 'info-foreground': '#071a33',\n 'info-soft': '#17263d',\n 'info-soft-foreground': '#b3d1f7',\n success: '#6fd4bf',\n 'success-foreground': '#04241f',\n 'success-soft': '#13302b',\n 'success-soft-foreground': '#9fe7d7',\n warning: '#f2b766',\n 'warning-foreground': '#2e1c04',\n 'warning-soft': '#3a2b17',\n 'warning-soft-foreground': '#f8d3a0',\n});\n\nconst frostAmbient: ThemeAmbient = {\n light: [\n 'radial-gradient(circle at 14% 11%, rgb(159 214 234 / 0.55), transparent 32%)',\n 'radial-gradient(circle at 56% 47%, rgb(201 193 245 / 0.45), transparent 30%)',\n 'radial-gradient(circle at 88% 78%, rgb(255 201 163 / 0.55), transparent 32%)',\n 'linear-gradient(160deg, #e7f1fa 0%, #f3f0f8 55%, #fbf1e7 100%)',\n ].join(', '),\n dark: [\n 'radial-gradient(circle at 14% 11%, rgb(56 120 150 / 0.3), transparent 34%)',\n 'radial-gradient(circle at 56% 47%, rgb(98 82 216 / 0.16), transparent 32%)',\n 'radial-gradient(circle at 88% 78%, rgb(214 132 84 / 0.14), transparent 32%)',\n 'linear-gradient(160deg, #111827 0%, #12131f 55%, #17131a 100%)',\n ].join(', '),\n};\n\n/** Frost — light frosted glass over a pastel wash. */\nconst frost: Theme = {\n id: 'frost',\n name: 'Frost',\n description:\n 'Deep teal brand on a blue, lavender and peach wash under frosted glass; dark mode is its cool slate night.',\n tags: ['authored', 'glass', 'light', 'teal', 'pastel'],\n light: frostLight,\n dark: frostDark,\n radius: ThemeRadius.Lg,\n ambient: frostAmbient,\n status: ThemeStatus.Candidate,\n meta: validateTheme({ light: frostLight, dark: frostDark }),\n};\n\n/* ---------------------------------------------------------------------------\n * Bento Deck — teal brand and pastel tone tiles on warm paper, with ink surfaces.\n * Flat by design: solid tiles, no glass, so no ambient backdrop.\n * ------------------------------------------------------------------------- */\n\nconst bentoDeckLight: TokenSet = ensureForegroundContrast({\n background: '#f1eee8',\n foreground: '#1b1f2a',\n card: '#ffffff',\n 'card-foreground': '#1b1f2a',\n popover: '#ffffff',\n 'popover-foreground': '#1b1f2a',\n field: '#ffffff',\n muted: '#e9e4da',\n 'muted-foreground': '#545a6b',\n 'subtle-foreground': '#7f838e',\n inverse: '#1b1f2a',\n 'inverse-foreground': '#f4f1ea',\n border: '#e2ddd2',\n 'border-strong': '#cfc8bb',\n input: '#d9d4ca',\n ring: '#1f5f7a',\n primary: '#1f5f7a',\n 'primary-foreground': '#ffffff',\n 'primary-soft': '#dcebf0',\n 'primary-soft-foreground': '#1b5068',\n accent: '#6b55a8',\n 'accent-foreground': '#ffffff',\n 'accent-soft': '#ebe4f5',\n 'accent-soft-foreground': '#4a3a6b',\n destructive: '#c4413c',\n 'destructive-foreground': '#ffffff',\n 'destructive-soft': '#f8e1df',\n 'destructive-soft-foreground': '#8f2d29',\n info: '#2e6aa6',\n 'info-foreground': '#ffffff',\n 'info-soft': '#e3ecf7',\n 'info-soft-foreground': '#2e4a6b',\n success: '#2d7f63',\n 'success-foreground': '#ffffff',\n 'success-soft': '#dff0ea',\n 'success-soft-foreground': '#2d5a4e',\n warning: '#e0a24a',\n 'warning-foreground': '#3a2508',\n 'warning-soft': '#f6e5d3',\n 'warning-soft-foreground': '#6b4520',\n});\n\nconst bentoDeckDark: TokenSet = ensureForegroundContrast({\n background: '#14161c',\n foreground: '#f1eee8',\n card: '#1d2029',\n 'card-foreground': '#f1eee8',\n popover: '#232733',\n 'popover-foreground': '#f1eee8',\n field: '#14161c',\n muted: '#262a34',\n 'muted-foreground': '#a9adb9',\n 'subtle-foreground': '#7b808d',\n inverse: '#f1eee8',\n 'inverse-foreground': '#14161c',\n border: '#2b2f3a',\n 'border-strong': '#3b404d',\n input: '#353a46',\n ring: '#7fbfd8',\n primary: '#7fbfd8',\n 'primary-foreground': '#0a2330',\n 'primary-soft': '#18303b',\n 'primary-soft-foreground': '#a9d8ea',\n accent: '#b3a1ea',\n 'accent-foreground': '#1d1438',\n 'accent-soft': '#2a2340',\n 'accent-soft-foreground': '#d3c7f5',\n destructive: '#f08a84',\n 'destructive-foreground': '#2b0b09',\n 'destructive-soft': '#3a1b1a',\n 'destructive-soft-foreground': '#f9bdb8',\n info: '#8fb8e8',\n 'info-foreground': '#0b1b30',\n 'info-soft': '#1b2a3e',\n 'info-soft-foreground': '#bcd4f2',\n success: '#7fd3b2',\n 'success-foreground': '#06261b',\n 'success-soft': '#173129',\n 'success-soft-foreground': '#a6e5cc',\n warning: '#f0c07a',\n 'warning-foreground': '#2e1f07',\n 'warning-soft': '#35291a',\n 'warning-soft-foreground': '#f5d3a3',\n});\n\n/** Bento Deck — flat pastel tiles on warm paper. */\nconst bentoDeck: Theme = {\n id: 'bento-deck',\n name: 'Bento Deck',\n description:\n 'Teal brand and pastel tone tiles on warm paper with ink surfaces; flat, no glass; dark mode is warm charcoal.',\n tags: ['authored', 'warm', 'paper', 'pastel', 'flat'],\n light: bentoDeckLight,\n dark: bentoDeckDark,\n radius: ThemeRadius.Lg,\n status: ThemeStatus.Candidate,\n meta: validateTheme({ light: bentoDeckLight, dark: bentoDeckDark }),\n};\n\n/* ---------------------------------------------------------------------------\n * Harbor Frost — the merged direction: Frost by day, Glass Harbor by night.\n * Both modes reuse the sets above, so a fix to either direction lands here too.\n * ------------------------------------------------------------------------- */\n\n/** Harbor Frost — Frost's light glass paired with Glass Harbor's dark glass. */\nconst harborFrost: Theme = {\n id: 'harbor-frost',\n name: 'Harbor Frost',\n description: \"Frost's light glass by day and Glass Harbor's dark glass by night; the merged Wheelhouse direction.\",\n tags: ['authored', 'glass', 'merged', 'teal', 'navy'],\n light: frostLight,\n dark: glassHarborDark,\n radius: ThemeRadius.Lg,\n ambient: { light: frostAmbient.light, dark: glassHarborAmbient.dark },\n status: ThemeStatus.Candidate,\n meta: validateTheme({ light: frostLight, dark: glassHarborDark }),\n};\n\n/** The authored themes: the validated platform theme, the two app palettes, then the four Wheelhouse directions. */\nexport const AuthoredThemes: ReadonlyArray<Theme> = [\n platform,\n smartQr,\n ocharo,\n glassHarbor,\n frost,\n bentoDeck,\n harborFrost,\n];\n","/* ---------------------------------------------------------------------------\n * Candidate theme pool — a large, diverse, AA-proven catalog.\n *\n * Same contract as `ThemeSeeds` in `Registry.ts`: every entry is a `ThemeSeed`\n * expanded through `generateTheme`, so the whole pool is contrast-validated by\n * the engine and stamped `status: \"candidate\"`. These are *vibes*, not literal\n * clones — the seed captures hue family / neutral temperature / accent scheme /\n * surface character, and the OKLCH generator does the rest (AA-nudging included).\n *\n * Two cohorts:\n * 1. NAMED — popular dev/editor/brand palettes not already in the curated 24.\n * One seed each, hue chosen to evoke the palette's signature brand color.\n * 2. SPECTRUM — a systematic hue sweep (~every 20-30°) crossed with a couple\n * of accent modes / neutral temps, filling the wheel so any brand hue an\n * app picks already has a near neighbour in the pool.\n *\n * `Registry.ts` imports `PoolSeeds` and appends it after the curated seeds, so\n * the final order is: smart-qr (authored candidate) → 24 curated candidates → this pool.\n *\n * Foundation layer — no upward imports (ESLint enforces).\n * ------------------------------------------------------------------------- */\n\nimport type { ThemeSeed } from '../Theme';\n\n/* ===========================================================================\n * 1. NAMED — editor / brand palettes (vibe-matched, not cloned).\n *\n * Hues are eyeballed from each palette's signature accent (OKLCH degrees):\n * ~25 red · ~45 orange · ~75 amber/olive · ~110 chartreuse · ~145 green ·\n * ~165 emerald/teal · ~195 teal/cyan · ~225 azure · ~255 indigo ·\n * ~285 violet · ~320 magenta · ~350 pink/rose.\n * Ids are kebab-case and unique vs the curated 24 + smart-qr.\n * ========================================================================= */\n\nconst NamedSeeds: ReadonlyArray<ThemeSeed> = [\n {\n id: 'catppuccin-latte',\n name: 'Catppuccin Latte',\n description: 'Soft mauve brand on warm latte neutrals — the light Catppuccin flavour.',\n tags: ['editor', 'catppuccin', 'pastel', 'warm', 'soft'],\n primaryHue: 290,\n neutralTemp: 'warm',\n accentMode: 'analogous',\n surface: 'soft',\n },\n {\n id: 'catppuccin-frappe',\n name: 'Catppuccin Frappé',\n description: 'Muted mauve brand on cool slate — the mid Catppuccin flavour.',\n tags: ['editor', 'catppuccin', 'pastel', 'cool', 'muted'],\n primaryHue: 287,\n neutralTemp: 'cool',\n accentMode: 'analogous',\n surface: 'soft',\n },\n {\n id: 'catppuccin-macchiato',\n name: 'Catppuccin Macchiato',\n description: 'Lavender-mauve brand on deep cool neutrals — the darker Catppuccin flavour.',\n tags: ['editor', 'catppuccin', 'pastel', 'cool', 'soft'],\n primaryHue: 280,\n neutralTemp: 'cool',\n accentMode: 'triadic',\n surface: 'soft',\n },\n {\n id: 'catppuccin-mocha',\n name: 'Catppuccin Mocha',\n description: 'Pastel mauve brand on the darkest Catppuccin slate — cozy and dim.',\n tags: ['editor', 'catppuccin', 'pastel', 'cool', 'soft'],\n primaryHue: 283,\n neutralTemp: 'cool',\n accentMode: 'analogous',\n surface: 'soft',\n },\n {\n id: 'tokyo-night',\n name: 'Tokyo Night',\n description: 'Indigo-blue brand on deep cool navy — neon-city night editor palette.',\n tags: ['editor', 'tokyo-night', 'cool', 'calm'],\n primaryHue: 252,\n neutralTemp: 'cool',\n accentMode: 'analogous',\n surface: 'soft',\n },\n {\n id: 'tokyo-night-storm',\n name: 'Tokyo Night Storm',\n description: 'Soft blue brand on stormy blue-grey — the lighter-ground Tokyo Night variant.',\n tags: ['editor', 'tokyo-night', 'cool', 'muted'],\n primaryHue: 246,\n neutralTemp: 'cool',\n accentMode: 'triadic',\n surface: 'soft',\n },\n {\n id: 'tokyo-night-light',\n name: 'Tokyo Night Light',\n description: 'Indigo brand on crisp cool paper — the daytime Tokyo Night.',\n tags: ['editor', 'tokyo-night', 'cool', 'light'],\n primaryHue: 250,\n neutralTemp: 'cool',\n accentMode: 'analogous',\n surface: 'crisp',\n },\n {\n id: 'rose-pine',\n name: 'Rosé Pine',\n description: 'Dusky rose brand on muted plum-grey — the cozy Rosé Pine vibe.',\n tags: ['editor', 'rose-pine', 'muted', 'soft', 'cool'],\n primaryHue: 350,\n neutralTemp: 'cool',\n accentMode: 'triadic',\n surface: 'soft',\n },\n {\n id: 'rose-pine-moon',\n name: 'Rosé Pine Moon',\n description: 'Soft rose brand on a lighter moonlit plum ground — Rosé Pine Moon.',\n tags: ['editor', 'rose-pine', 'muted', 'soft', 'cool'],\n primaryHue: 345,\n neutralTemp: 'cool',\n accentMode: 'analogous',\n surface: 'soft',\n },\n {\n id: 'rose-pine-dawn',\n name: 'Rosé Pine Dawn',\n description: 'Rose brand on warm parchment — the light Rosé Pine Dawn.',\n tags: ['editor', 'rose-pine', 'warm', 'soft', 'light'],\n primaryHue: 352,\n neutralTemp: 'warm',\n accentMode: 'analogous',\n surface: 'soft',\n },\n {\n id: 'one-dark',\n name: 'One Dark',\n description: 'Hyperlink-blue brand on cool gunmetal — the Atom/One Dark classic.',\n tags: ['editor', 'one-dark', 'cool', 'calm'],\n primaryHue: 240,\n neutralTemp: 'cool',\n accentMode: 'complementary',\n surface: 'crisp',\n },\n {\n id: 'one-light',\n name: 'One Light',\n description: 'Blue brand on crisp neutral paper — the One Light editor theme.',\n tags: ['editor', 'one-light', 'neutral', 'light'],\n primaryHue: 240,\n neutralTemp: 'neutral',\n accentMode: 'complementary',\n surface: 'crisp',\n },\n {\n id: 'ayu-dark',\n name: 'Ayu Dark',\n description: 'Warm amber brand on near-black ink — Ayu Dark’s signature glow.',\n tags: ['editor', 'ayu', 'warm', 'vibrant'],\n primaryHue: 60,\n neutralTemp: 'warm',\n accentMode: 'analogous',\n surface: 'crisp',\n },\n {\n id: 'ayu-mirage',\n name: 'Ayu Mirage',\n description: 'Amber-gold brand on muted blue-grey — the mid Ayu Mirage tone.',\n tags: ['editor', 'ayu', 'warm', 'muted'],\n primaryHue: 55,\n neutralTemp: 'cool',\n accentMode: 'triadic',\n surface: 'soft',\n },\n {\n id: 'ayu-light',\n name: 'Ayu Light',\n description: 'Warm orange brand on bright paper — the daytime Ayu Light.',\n tags: ['editor', 'ayu', 'warm', 'light'],\n primaryHue: 48,\n neutralTemp: 'warm',\n accentMode: 'analogous',\n surface: 'crisp',\n },\n {\n id: 'everforest',\n name: 'Everforest',\n description: 'Soft moss-green brand on warm forest-grey — the gentle Everforest palette.',\n tags: ['editor', 'everforest', 'nature', 'warm', 'muted'],\n primaryHue: 135,\n neutralTemp: 'warm',\n accentMode: 'analogous',\n surface: 'soft',\n },\n {\n id: 'everforest-light',\n name: 'Everforest Light',\n description: 'Moss green brand on warm cream — the light Everforest.',\n tags: ['editor', 'everforest', 'nature', 'warm', 'light'],\n primaryHue: 130,\n neutralTemp: 'warm',\n accentMode: 'analogous',\n surface: 'soft',\n },\n {\n id: 'kanagawa',\n name: 'Kanagawa',\n description: 'Wave-blue brand on warm sumi-ink grey — inspired by Hokusai’s Great Wave.',\n tags: ['editor', 'kanagawa', 'cool', 'muted', 'warm'],\n primaryHue: 220,\n neutralTemp: 'warm',\n accentMode: 'triadic',\n surface: 'soft',\n },\n {\n id: 'kanagawa-lotus',\n name: 'Kanagawa Lotus',\n description: 'Indigo brand on warm parchment — the light Kanagawa Lotus.',\n tags: ['editor', 'kanagawa', 'warm', 'light', 'muted'],\n primaryHue: 235,\n neutralTemp: 'warm',\n accentMode: 'analogous',\n surface: 'soft',\n },\n {\n id: 'night-owl',\n name: 'Night Owl',\n description: 'Cyan-teal brand on deep midnight blue — a palette tuned for late-night coding.',\n tags: ['editor', 'night-owl', 'cool', 'vibrant'],\n primaryHue: 195,\n neutralTemp: 'cool',\n accentMode: 'triadic',\n surface: 'soft',\n },\n {\n id: 'light-owl',\n name: 'Light Owl',\n description: 'Teal brand on crisp cool paper — the daytime Light Owl.',\n tags: ['editor', 'night-owl', 'cool', 'light'],\n primaryHue: 198,\n neutralTemp: 'cool',\n accentMode: 'complementary',\n surface: 'crisp',\n },\n {\n id: 'synthwave',\n name: 'Synthwave',\n description: 'Hot-magenta brand with a cyan accent on deep purple-black — retro 80s neon.',\n tags: ['editor', 'synthwave', 'retro', 'vibrant', 'neon'],\n primaryHue: 320,\n neutralTemp: 'cool',\n accentMode: 'triadic',\n surface: 'crisp',\n },\n {\n id: 'outrun',\n name: 'Outrun',\n description: 'Sunset-orange brand with a violet accent on dark indigo — neon sunset drive.',\n tags: ['retro', 'synthwave', 'vibrant', 'warm', 'neon'],\n primaryHue: 32,\n neutralTemp: 'cool',\n accentMode: 'triadic',\n surface: 'crisp',\n },\n {\n id: 'material',\n name: 'Material',\n description: 'Indigo brand with a teal accent on neutral greys — the Material Design baseline.',\n tags: ['brand', 'material', 'neutral', 'classic'],\n primaryHue: 255,\n neutralTemp: 'neutral',\n accentMode: 'complementary',\n surface: 'crisp',\n },\n {\n id: 'material-ocean',\n name: 'Material Ocean',\n description: 'Bright blue brand on deep ocean-navy — the Material Theme Ocean variant.',\n tags: ['editor', 'material', 'cool', 'calm'],\n primaryHue: 225,\n neutralTemp: 'cool',\n accentMode: 'analogous',\n surface: 'soft',\n },\n {\n id: 'palenight',\n name: 'Palenight',\n description: 'Soft violet brand on dim blue-grey — the mellow Material Palenight.',\n tags: ['editor', 'material', 'cool', 'muted', 'soft'],\n primaryHue: 270,\n neutralTemp: 'cool',\n accentMode: 'analogous',\n surface: 'soft',\n },\n {\n id: 'oceanic-next',\n name: 'Oceanic Next',\n description: 'Teal-blue brand on slate navy — the Oceanic Next editor palette.',\n tags: ['editor', 'oceanic', 'cool', 'calm'],\n primaryHue: 200,\n neutralTemp: 'cool',\n accentMode: 'analogous',\n surface: 'soft',\n },\n {\n id: 'horizon',\n name: 'Horizon',\n description: 'Coral-rose brand with a cyan accent on warm plum-charcoal — the warm Horizon palette.',\n tags: ['editor', 'horizon', 'warm', 'vibrant'],\n primaryHue: 5,\n neutralTemp: 'warm',\n accentMode: 'triadic',\n surface: 'soft',\n },\n {\n id: 'github-dark',\n name: 'GitHub Dark',\n description: 'GitHub-blue brand on cool slate — the dark GitHub interface palette.',\n tags: ['brand', 'github', 'cool', 'professional'],\n primaryHue: 235,\n neutralTemp: 'cool',\n accentMode: 'complementary',\n surface: 'crisp',\n },\n {\n id: 'github-light',\n name: 'GitHub Light',\n description: 'GitHub-blue brand on crisp neutral white — the light GitHub interface.',\n tags: ['brand', 'github', 'neutral', 'professional', 'light'],\n primaryHue: 235,\n neutralTemp: 'neutral',\n accentMode: 'complementary',\n surface: 'crisp',\n },\n {\n id: 'github-dimmed',\n name: 'GitHub Dimmed',\n description: 'GitHub-blue brand on softened slate — the low-glare GitHub Dimmed mode.',\n tags: ['brand', 'github', 'cool', 'muted'],\n primaryHue: 233,\n neutralTemp: 'cool',\n accentMode: 'complementary',\n surface: 'soft',\n },\n {\n id: 'cobalt2',\n name: 'Cobalt2',\n description: 'Electric cobalt brand with an amber accent on deep navy — Wes Bos’ Cobalt2.',\n tags: ['editor', 'cobalt', 'cool', 'vibrant'],\n primaryHue: 228,\n neutralTemp: 'cool',\n accentMode: 'complementary',\n surface: 'crisp',\n },\n {\n id: 'panda',\n name: 'Panda',\n description: 'Pink-magenta brand with a cyan accent on near-black grey — the friendly Panda Syntax.',\n tags: ['editor', 'panda', 'vibrant', 'neutral'],\n primaryHue: 335,\n neutralTemp: 'neutral',\n accentMode: 'triadic',\n surface: 'crisp',\n },\n {\n id: 'monokai-pro',\n name: 'Monokai Pro',\n description: 'Warm yellow-amber brand with a magenta accent on warm charcoal — Monokai Pro.',\n tags: ['editor', 'monokai', 'warm', 'vibrant'],\n primaryHue: 70,\n neutralTemp: 'warm',\n accentMode: 'complementary',\n surface: 'crisp',\n },\n {\n id: 'solarized-dark',\n name: 'Solarized Dark',\n description: 'Cyan-blue brand on the deep teal-grey Solarized base — the dark Solarized.',\n tags: ['editor', 'solarized', 'cool', 'muted'],\n primaryHue: 205,\n neutralTemp: 'cool',\n accentMode: 'complementary',\n surface: 'soft',\n },\n {\n id: 'gruvbox-light',\n name: 'Gruvbox Light',\n description: 'Warm orange brand on retro cream — the light Gruvbox.',\n tags: ['editor', 'gruvbox', 'warm', 'retro', 'light'],\n primaryHue: 45,\n neutralTemp: 'warm',\n accentMode: 'analogous',\n surface: 'soft',\n },\n {\n id: 'gruvbox-material',\n name: 'Gruvbox Material',\n description: 'Softened amber brand on muted warm grey — the gentler Gruvbox Material.',\n tags: ['editor', 'gruvbox', 'warm', 'retro', 'muted'],\n primaryHue: 52,\n neutralTemp: 'warm',\n accentMode: 'triadic',\n surface: 'soft',\n },\n {\n id: 'nord-light',\n name: 'Nord Light',\n description: 'Frost-blue brand on bright arctic snow — the light counterpart to Nord.',\n tags: ['editor', 'nord', 'cool', 'muted', 'light'],\n primaryHue: 213,\n neutralTemp: 'cool',\n accentMode: 'analogous',\n surface: 'soft',\n },\n {\n id: 'aurora',\n name: 'Aurora',\n description: 'Frost-green brand with a violet accent on cool slate — Nord’s Aurora highlights.',\n tags: ['editor', 'nord', 'cool', 'nature'],\n primaryHue: 150,\n neutralTemp: 'cool',\n accentMode: 'triadic',\n surface: 'soft',\n },\n {\n id: 'dracula-pro',\n name: 'Dracula Pro',\n description: 'Refined purple brand with a pink accent on warm-tinted charcoal — Dracula Pro.',\n tags: ['editor', 'dracula', 'vibrant', 'cool'],\n primaryHue: 268,\n neutralTemp: 'cool',\n accentMode: 'analogous',\n surface: 'crisp',\n },\n {\n id: 'shades-of-purple',\n name: 'Shades of Purple',\n description: 'Royal violet brand with a gold accent on deep indigo — the bold SoP palette.',\n tags: ['editor', 'purple', 'vibrant', 'cool'],\n primaryHue: 275,\n neutralTemp: 'cool',\n accentMode: 'complementary',\n surface: 'crisp',\n },\n {\n id: 'winter-is-coming',\n name: 'Winter is Coming',\n description: 'Cool blue brand on icy slate — the crisp Winter-is-Coming editor theme.',\n tags: ['editor', 'cool', 'calm', 'muted'],\n primaryHue: 218,\n neutralTemp: 'cool',\n accentMode: 'analogous',\n surface: 'crisp',\n },\n {\n id: 'cyberpunk',\n name: 'Cyberpunk',\n description: 'Electric cyan brand with a hot-pink accent on black — high-voltage neon.',\n tags: ['retro', 'neon', 'vibrant', 'cool'],\n primaryHue: 192,\n neutralTemp: 'cool',\n accentMode: 'triadic',\n surface: 'crisp',\n },\n {\n id: 'spacegray',\n name: 'Spacegray',\n description: 'Muted blue brand on understated cool grey — the calm Spacegray UI.',\n tags: ['editor', 'cool', 'muted', 'minimal'],\n primaryHue: 210,\n neutralTemp: 'cool',\n accentMode: 'analogous',\n surface: 'soft',\n },\n {\n id: 'github-copilot',\n name: 'Copilot',\n description: 'Teal-cyan brand on neutral slate — a calm assistant-inspired palette.',\n tags: ['brand', 'cool', 'fresh', 'professional'],\n primaryHue: 185,\n neutralTemp: 'neutral',\n accentMode: 'complementary',\n surface: 'crisp',\n },\n {\n id: 'vercel',\n name: 'Vercel',\n description: 'Pure achromatic brand on stark neutral greys — the high-contrast Vercel look.',\n tags: ['brand', 'neutral', 'minimal', 'grayscale'],\n primaryHue: 0,\n neutralTemp: 'neutral',\n accentMode: 'mono',\n surface: 'crisp',\n },\n {\n id: 'stripe',\n name: 'Stripe',\n description: 'Indigo-violet brand with an analogous accent on cool neutrals — the Stripe brand feel.',\n tags: ['brand', 'cool', 'professional', 'vibrant'],\n primaryHue: 258,\n neutralTemp: 'cool',\n accentMode: 'analogous',\n surface: 'crisp',\n },\n {\n id: 'spotify',\n name: 'Spotify',\n description: 'Vivid green brand on near-black neutral — the energetic streaming-app palette.',\n tags: ['brand', 'nature', 'vibrant', 'neutral'],\n primaryHue: 145,\n neutralTemp: 'neutral',\n accentMode: 'analogous',\n surface: 'crisp',\n },\n {\n id: 'firewatch',\n name: 'Firewatch',\n description: 'Sunset-orange brand with a teal accent on dusky blue — inspired by the game’s vistas.',\n tags: ['nature', 'warm', 'vibrant', 'cool'],\n primaryHue: 28,\n neutralTemp: 'cool',\n accentMode: 'complementary',\n surface: 'soft',\n },\n {\n id: 'andromeda',\n name: 'Andromeda',\n description: 'Magenta-pink brand with a green accent on deep space-blue — the vivid Andromeda palette.',\n tags: ['editor', 'vibrant', 'cool', 'neon'],\n primaryHue: 330,\n neutralTemp: 'cool',\n accentMode: 'complementary',\n surface: 'crisp',\n },\n {\n id: 'bluloco-light',\n name: 'Bluloco Light',\n description: 'Saturated blue brand on crisp paper — the punchy Bluloco Light.',\n tags: ['editor', 'cool', 'vibrant', 'light'],\n primaryHue: 230,\n neutralTemp: 'neutral',\n accentMode: 'complementary',\n surface: 'crisp',\n },\n {\n id: 'noctis',\n name: 'Noctis',\n description: 'Teal brand on deep blue-green ink — the legible Noctis editor palette.',\n tags: ['editor', 'cool', 'fresh', 'muted'],\n primaryHue: 180,\n neutralTemp: 'cool',\n accentMode: 'analogous',\n surface: 'soft',\n },\n {\n id: 'min-dark',\n name: 'Min Dark',\n description: 'Restrained cyan brand on pure dark neutral — the minimal Miniml/Min theme.',\n tags: ['editor', 'minimal', 'cool', 'neutral'],\n primaryHue: 190,\n neutralTemp: 'neutral',\n accentMode: 'mono',\n surface: 'crisp',\n },\n {\n id: 'poimandres',\n name: 'Poimandres',\n description: 'Teal-cyan brand on deep blue-grey — the muted, modern Poimandres palette.',\n tags: ['editor', 'cool', 'muted', 'calm'],\n primaryHue: 188,\n neutralTemp: 'cool',\n accentMode: 'analogous',\n surface: 'soft',\n },\n {\n id: 'flexoki',\n name: 'Flexoki',\n description: 'Warm red-brown brand on inky warm paper — the analog Flexoki palette.',\n tags: ['editor', 'warm', 'muted', 'paper'],\n primaryHue: 25,\n neutralTemp: 'warm',\n accentMode: 'analogous',\n surface: 'soft',\n },\n {\n id: 'zenburn',\n name: 'Zenburn',\n description: 'Muted olive-tan brand on low-contrast warm grey — the classic low-glare Zenburn.',\n tags: ['editor', 'warm', 'muted', 'low-contrast'],\n primaryHue: 95,\n neutralTemp: 'warm',\n accentMode: 'analogous',\n surface: 'soft',\n },\n {\n id: 'oxocarbon',\n name: 'Oxocarbon',\n description: 'Magenta-violet brand with a cyan accent on pure carbon grey — IBM-inspired Oxocarbon.',\n tags: ['editor', 'vibrant', 'neutral', 'cool'],\n primaryHue: 300,\n neutralTemp: 'neutral',\n accentMode: 'triadic',\n surface: 'crisp',\n },\n {\n id: 'iceberg',\n name: 'Iceberg',\n description: 'Cool periwinkle-blue brand on icy blue-grey — the restrained Iceberg palette.',\n tags: ['editor', 'cool', 'muted', 'calm'],\n primaryHue: 245,\n neutralTemp: 'cool',\n accentMode: 'analogous',\n surface: 'soft',\n },\n {\n id: 'apprentice',\n name: 'Apprentice',\n description: 'Muted khaki-green brand on warm dark grey — the low-key Apprentice terminal palette.',\n tags: ['editor', 'warm', 'muted', 'low-contrast'],\n primaryHue: 100,\n neutralTemp: 'warm',\n accentMode: 'analogous',\n surface: 'soft',\n },\n {\n id: 'tomorrow-night',\n name: 'Tomorrow Night',\n description: 'Calm blue brand on neutral charcoal — the balanced Tomorrow Night classic.',\n tags: ['editor', 'cool', 'calm', 'neutral'],\n primaryHue: 222,\n neutralTemp: 'neutral',\n accentMode: 'complementary',\n surface: 'crisp',\n },\n {\n id: 'embark',\n name: 'Embark',\n description: 'Violet brand with a teal accent on deep blue-purple — the vivid Embark palette.',\n tags: ['editor', 'vibrant', 'cool'],\n primaryHue: 278,\n neutralTemp: 'cool',\n accentMode: 'triadic',\n surface: 'soft',\n },\n {\n id: 'moonlight',\n name: 'Moonlight',\n description: 'Periwinkle-violet brand on deep blue night — the dreamy Moonlight II palette.',\n tags: ['editor', 'cool', 'calm', 'soft'],\n primaryHue: 262,\n neutralTemp: 'cool',\n accentMode: 'analogous',\n surface: 'soft',\n },\n {\n id: 'bearded',\n name: 'Bearded',\n description: 'Magenta brand with a green accent on cool charcoal — a bold Bearded-style palette.',\n tags: ['editor', 'vibrant', 'cool'],\n primaryHue: 315,\n neutralTemp: 'cool',\n accentMode: 'complementary',\n surface: 'crisp',\n },\n {\n id: 'city-lights',\n name: 'City Lights',\n description: 'Steel-blue brand on deep blue-grey — the muted, urban City Lights palette.',\n tags: ['editor', 'cool', 'muted', 'calm'],\n primaryHue: 205,\n neutralTemp: 'cool',\n accentMode: 'analogous',\n surface: 'soft',\n },\n {\n id: 'snazzy',\n name: 'Snazzy',\n description: 'Bright cyan brand with a magenta accent on near-black — the punchy Hyper Snazzy.',\n tags: ['terminal', 'vibrant', 'cool', 'neon'],\n primaryHue: 188,\n neutralTemp: 'cool',\n accentMode: 'triadic',\n surface: 'crisp',\n },\n {\n id: 'tomorrow-light',\n name: 'Tomorrow',\n description: 'Soft blue brand on clean neutral paper — the original light Tomorrow.',\n tags: ['editor', 'neutral', 'calm', 'light'],\n primaryHue: 222,\n neutralTemp: 'neutral',\n accentMode: 'complementary',\n surface: 'crisp',\n },\n {\n id: 'paper-color',\n name: 'PaperColor',\n description: 'Crisp blue brand on bright paper-white — the print-like PaperColor light theme.',\n tags: ['editor', 'neutral', 'paper', 'light'],\n primaryHue: 228,\n neutralTemp: 'neutral',\n accentMode: 'complementary',\n surface: 'crisp',\n },\n {\n id: 'quietlight',\n name: 'Quiet Light',\n description: 'Olive-green brand on warm cream — the soft, low-contrast Quiet Light.',\n tags: ['editor', 'warm', 'soft', 'light'],\n primaryHue: 110,\n neutralTemp: 'warm',\n accentMode: 'analogous',\n surface: 'soft',\n },\n];\n\n/* ===========================================================================\n * 2. SPECTRUM — systematic hue sweep filling the wheel.\n *\n * For a set of evenly-spaced hues (~every 24°), emit a few seeds varying the\n * accent mode / neutral temp / surface so the catalog covers the full circle\n * with diverse moods. Ids are `spectrum-{hue}-{accentInitial}{tempInitial}`,\n * e.g. `spectrum-204-ac` (hue 204, analogous, cool). Names are the hue's color\n * family + a descriptor so they read like real presets, not coordinates.\n * ========================================================================= */\n\n/** A point on the wheel: hue + a human color-family label. */\ninterface HueStop {\n hue: number;\n /** Color-family word used to name the spectrum presets at this hue. */\n family: string;\n\n /** Mood/lightness word that pairs with the family for the display name. */\n word: string;\n}\n\n/** Evenly-spaced stops around the wheel (~24° apart), each with a real name. */\nconst HueStops: ReadonlyArray<HueStop> = [\n { hue: 0, family: 'Scarlet', word: 'Ember' },\n { hue: 24, family: 'Coral', word: 'Flare' },\n { hue: 48, family: 'Marigold', word: 'Glow' },\n { hue: 72, family: 'Citron', word: 'Zest' },\n { hue: 96, family: 'Chartreuse', word: 'Sprout' },\n { hue: 120, family: 'Clover', word: 'Meadow' },\n { hue: 144, family: 'Jade', word: 'Grove' },\n { hue: 168, family: 'Spruce', word: 'Tide' },\n { hue: 192, family: 'Lagoon', word: 'Reef' },\n { hue: 216, family: 'Cerulean', word: 'Drift' },\n { hue: 240, family: 'Sapphire', word: 'Dusk' },\n { hue: 264, family: 'Iris', word: 'Nocturne' },\n { hue: 288, family: 'Orchid', word: 'Bloom' },\n { hue: 312, family: 'Fuchsia', word: 'Pulse' },\n { hue: 336, family: 'Magenta', word: 'Blush' },\n];\n\n/** Accent-mode → id initial + descriptive word for the description. */\nconst AccentVariants: { mode: ThemeSeed['accentMode']; init: string; word: string }[] = [\n { mode: 'complementary', init: 'x', word: 'complementary' },\n { mode: 'analogous', init: 'a', word: 'analogous' },\n { mode: 'triadic', init: 't', word: 'triadic' },\n];\n\n/** Neutral-temp → id initial + descriptive word. */\nconst TempVariants: { temp: ThemeSeed['neutralTemp']; init: string }[] = [\n { temp: 'cool', init: 'c' },\n { temp: 'warm', init: 'w' },\n];\n\n/**\n * Build the spectrum sweep: for each hue stop, cross (3 accent modes × 2 temps),\n * alternating surface so the pool isn't monotonous. 15 hues × 6 = 90 seeds.\n */\nfunction buildSpectrumSeeds(): ReadonlyArray<ThemeSeed> {\n const seeds: Array<ThemeSeed> = [];\n for (const stop of HueStops) {\n let i = 0;\n for (const accent of AccentVariants) {\n for (const temp of TempVariants) {\n // Alternate surface across the 6 variants for visual variety.\n const surface: ThemeSeed['surface'] = i % 2 === 0 ? 'crisp' : 'soft';\n const tempWord = temp.temp === 'cool' ? 'cool' : 'warm';\n seeds.push({\n id: `spectrum-${stop.hue}-${accent.init}${temp.init}`,\n name: `${stop.family} ${stop.word}`,\n description: `${stop.family} brand at hue ${stop.hue}° — ${accent.word} accent on ${tempWord} neutrals (${surface} surfaces).`,\n tags: ['spectrum', 'sweep', stop.family.toLowerCase(), tempWord, accent.word],\n primaryHue: stop.hue,\n neutralTemp: temp.temp,\n accentMode: accent.mode,\n surface,\n });\n i++;\n }\n }\n }\n return seeds;\n}\n\nconst SpectrumSeeds: ReadonlyArray<ThemeSeed> = buildSpectrumSeeds();\n\n/* ===========================================================================\n * Exported pool — named cohort first, then the spectrum sweep.\n * `Registry.ts` appends this after the curated 24, all expanded via\n * `generateTheme` (→ `status: \"candidate\"`).\n * ========================================================================= */\n\n/** The full candidate pool seeds (named editor/brand palettes + hue sweep). */\nexport const PoolSeeds: ReadonlyArray<ThemeSeed> = [...NamedSeeds, ...SpectrumSeeds];\n","/* ---------------------------------------------------------------------------\n * Curated theme registry.\n *\n * ~24 named presets. Every one is authored as a `ThemeSeed` and expanded through\n * `generateTheme`, so the whole catalog is contrast-validated the same way an\n * app's bespoke theme would be. Names nod to well-known palettes but the colors\n * are generated (not literal clones) — the seed captures the *vibe* (hue family,\n * neutral temperature, accent scheme, surface character).\n *\n * `THEMES` resolves and caches entries on first access; `getTheme(id)` looks one up.\n * ------------------------------------------------------------------------- */\n\nimport type { Theme, ThemeSeed } from './Theme';\nimport { ThemeStatus } from './Theme';\nimport { generateTheme } from './Generate';\nimport { AuthoredThemes } from './constants/Authored';\nimport { PoolSeeds } from './constants/Pool';\n\n/** The authoring seeds. Order here = order in `THEMES` and the emitted stylesheet. */\nexport const ThemeSeeds: ReadonlyArray<ThemeSeed> = [\n {\n id: 'wow',\n name: 'WoW',\n description: 'House blue — the @wow-two-beta/ui default vibe, regenerated in OKLCH.',\n tags: ['brand', 'default'],\n primaryHue: 264,\n neutralTemp: 'cool',\n accentMode: 'analogous',\n surface: 'crisp',\n },\n {\n id: 'midnight',\n name: 'Midnight',\n description: 'Deep indigo on cool slate — calm, focused, low-glare.',\n tags: ['cool', 'calm'],\n primaryHue: 268,\n neutralTemp: 'cool',\n accentMode: 'triadic',\n surface: 'soft',\n },\n {\n id: 'slate',\n name: 'Slate',\n description: 'Neutral steel-blue brand on balanced greys — quiet and professional.',\n tags: ['neutral', 'professional'],\n primaryHue: 235,\n neutralTemp: 'cool',\n accentMode: 'complementary',\n surface: 'crisp',\n },\n {\n id: 'ocean',\n name: 'Ocean',\n description: 'Azure brand with a teal accent over cool neutrals.',\n tags: ['cool', 'fresh'],\n primaryHue: 222,\n neutralTemp: 'cool',\n accentMode: 'analogous',\n surface: 'crisp',\n },\n {\n id: 'forest',\n name: 'Forest',\n description: 'Pine green brand, warm-leaning neutrals, earthy accent.',\n tags: ['nature', 'warm'],\n primaryHue: 150,\n neutralTemp: 'warm',\n accentMode: 'analogous',\n surface: 'soft',\n },\n {\n id: 'emerald',\n name: 'Emerald',\n description: 'Vivid green-teal brand on crisp cool greys.',\n tags: ['nature', 'cool'],\n primaryHue: 165,\n neutralTemp: 'cool',\n accentMode: 'complementary',\n surface: 'crisp',\n },\n {\n id: 'sunset',\n name: 'Sunset',\n description: 'Warm orange brand with a violet accent — energetic dusk palette.',\n tags: ['warm', 'vibrant'],\n primaryHue: 42,\n neutralTemp: 'warm',\n accentMode: 'complementary',\n surface: 'crisp',\n },\n {\n id: 'amber',\n name: 'Amber',\n description: 'Golden brand on warm stone — cozy and grounded.',\n tags: ['warm', 'cozy'],\n primaryHue: 75,\n neutralTemp: 'warm',\n accentMode: 'triadic',\n surface: 'soft',\n },\n {\n id: 'rose',\n name: 'Rose',\n description: 'Soft crimson-pink brand with a warm neutral ground.',\n tags: ['warm', 'soft'],\n primaryHue: 12,\n neutralTemp: 'warm',\n accentMode: 'analogous',\n surface: 'soft',\n },\n {\n id: 'crimson',\n name: 'Crimson',\n description: 'Bold red brand on neutral greys — high-impact and direct.',\n tags: ['warm', 'bold'],\n primaryHue: 25,\n neutralTemp: 'neutral',\n accentMode: 'complementary',\n surface: 'crisp',\n },\n {\n id: 'plum',\n name: 'Plum',\n description: 'Rich magenta-purple brand with a green accent.',\n tags: ['vibrant', 'cool'],\n primaryHue: 330,\n neutralTemp: 'cool',\n accentMode: 'complementary',\n surface: 'crisp',\n },\n {\n id: 'grape',\n name: 'Grape',\n description: 'Royal violet brand over cool neutrals, analogous accent.',\n tags: ['cool', 'vibrant'],\n primaryHue: 295,\n neutralTemp: 'cool',\n accentMode: 'analogous',\n surface: 'soft',\n },\n {\n id: 'lavender',\n name: 'Lavender',\n description: 'Gentle violet brand, soft surfaces, low-glare.',\n tags: ['cool', 'soft'],\n primaryHue: 285,\n neutralTemp: 'cool',\n accentMode: 'triadic',\n surface: 'soft',\n },\n {\n id: 'teal',\n name: 'Teal',\n description: 'Balanced teal brand with a coral accent on neutral greys.',\n tags: ['cool', 'fresh'],\n primaryHue: 195,\n neutralTemp: 'neutral',\n accentMode: 'complementary',\n surface: 'crisp',\n },\n {\n id: 'cyan',\n name: 'Cyan',\n description: 'Bright cyan brand, cool neutrals, electric feel.',\n tags: ['cool', 'vibrant'],\n primaryHue: 210,\n neutralTemp: 'cool',\n accentMode: 'analogous',\n surface: 'crisp',\n },\n {\n id: 'mint',\n name: 'Mint',\n description: 'Light spring-green brand on soft cool greys.',\n tags: ['nature', 'soft'],\n primaryHue: 158,\n neutralTemp: 'neutral',\n accentMode: 'analogous',\n surface: 'soft',\n },\n {\n id: 'nord',\n name: 'Nord',\n description: 'Arctic blue brand on desaturated cool slate — Nord-inspired.',\n tags: ['cool', 'calm', 'muted'],\n primaryHue: 213,\n neutralTemp: 'cool',\n accentMode: 'analogous',\n surface: 'soft',\n },\n {\n id: 'solarized',\n name: 'Solarized',\n description: 'Cyan-blue brand on warm tan neutrals — Solarized-inspired balance.',\n tags: ['warm', 'muted'],\n primaryHue: 205,\n neutralTemp: 'warm',\n accentMode: 'complementary',\n surface: 'soft',\n },\n {\n id: 'dracula',\n name: 'Dracula',\n description: 'Purple brand with a pink-magenta accent on cool neutrals — Dracula-inspired.',\n tags: ['cool', 'vibrant'],\n primaryHue: 265,\n neutralTemp: 'cool',\n accentMode: 'triadic',\n surface: 'crisp',\n },\n {\n id: 'gruvbox',\n name: 'Gruvbox',\n description: 'Warm orange-amber brand on retro warm neutrals — Gruvbox-inspired.',\n tags: ['warm', 'retro', 'muted'],\n primaryHue: 50,\n neutralTemp: 'warm',\n accentMode: 'analogous',\n surface: 'soft',\n },\n {\n id: 'monokai',\n name: 'Monokai',\n description: 'Lime-green brand with a magenta accent on neutral greys — Monokai-inspired.',\n tags: ['vibrant', 'neutral'],\n primaryHue: 130,\n neutralTemp: 'neutral',\n accentMode: 'complementary',\n surface: 'crisp',\n },\n {\n id: 'mono',\n name: 'Mono',\n description: 'Achromatic — black/white brand on pure neutral greys. Minimal, content-first.',\n tags: ['neutral', 'minimal', 'grayscale'],\n primaryHue: 270,\n neutralTemp: 'neutral',\n accentMode: 'mono',\n surface: 'crisp',\n },\n {\n id: 'graphite',\n name: 'Graphite',\n description: 'Near-mono with a faint cool-blue brand — understated and dense.',\n tags: ['neutral', 'minimal'],\n primaryHue: 240,\n neutralTemp: 'cool',\n accentMode: 'mono',\n surface: 'crisp',\n },\n {\n id: 'sand',\n name: 'Sand',\n description: 'Warm taupe brand on soft sandy neutrals — paper-like and gentle.',\n tags: ['warm', 'soft', 'minimal'],\n primaryHue: 60,\n neutralTemp: 'warm',\n accentMode: 'mono',\n surface: 'soft',\n },\n];\n\n/**\n * Every candidate seed, in emit order: the curated 24 first, then the larger\n * diverse pool (named editor/brand palettes + the full-wheel hue sweep) from\n * `constants/Pool.ts`. Kept as a single list so `ThemeIds`/`ThemeSeeds` consumers and\n * the studio see the whole candidate catalog.\n */\nconst CandidateSeeds: ReadonlyArray<ThemeSeed> = [...ThemeSeeds, ...PoolSeeds];\n\n/**\n * The generator-built presets. AA-proven by the engine but not yet validated\n * against a real app surface → `generateTheme` stamps them `status: \"candidate\"`.\n */\nconst ResolvedCandidates = new Map<ThemeSeed, Theme>();\n\n/** Dense array accessors defer expensive color generation until that entry is read. */\nfunction createThemeCatalog(): ReadonlyArray<Theme> {\n const themes = [...AuthoredThemes];\n for (const seed of CandidateSeeds) {\n Object.defineProperty(themes, themes.length, {\n enumerable: true,\n get: () => {\n let resolved = ResolvedCandidates.get(seed);\n if (resolved === undefined) {\n resolved = generateTheme(seed);\n ResolvedCandidates.set(seed, resolved);\n }\n return resolved;\n },\n });\n }\n return Object.freeze(themes);\n}\n\n/**\n * The full registry: validated (real-app-proven) themes FIRST, then the curated\n * candidate presets. Order here = order in the emitted stylesheet / manifest.\n */\nexport const THEMES: ReadonlyArray<Theme> = createThemeCatalog();\n\n/** Look up a theme by id. Returns `undefined` when absent. */\nexport function getTheme(id: string): Theme | undefined {\n const index = ThemeIds.indexOf(id);\n return index < 0 ? undefined : THEMES[index];\n}\n\n/** Themes proven against a real app surface (`status === \"validated\"`). */\nexport function validatedThemes(): ReadonlyArray<Theme> {\n return [\n ...AuthoredThemes.filter((theme) => theme.status === ThemeStatus.Validated),\n ...CandidateSeeds.flatMap((seed) => {\n const theme = ResolvedCandidates.get(seed);\n return theme?.status === ThemeStatus.Validated ? [theme] : [];\n }),\n ];\n}\n\n/** Engine-proven curated presets not yet app-validated (`status === \"candidate\"`). */\nexport function candidateThemes(): ReadonlyArray<Theme> {\n return THEMES.filter((t) => t.status === ThemeStatus.Candidate);\n}\n\n/** Ids of all curated themes, in registry order. */\nexport const ThemeIds: ReadonlyArray<string> = [\n ...AuthoredThemes.map((theme) => theme.id),\n ...CandidateSeeds.map((seed) => seed.id),\n];\n\n/** Lightweight catalog metadata; reading this list does not generate candidate colors. */\nexport const ThemeCatalog: ReadonlyArray<Pick<Theme, 'id' | 'name' | 'status'>> = [\n ...AuthoredThemes.map(({ id, name, status }) => ({ id, name, status })),\n ...CandidateSeeds.map(({ id, name }) => ({ id, name, status: ThemeStatus.Candidate })),\n];\n"],"names":["index"],"mappings":";;AAaO,MAAM,eAAe,CAAC,WAAW,UAAU,eAAe,QAAQ,WAAW,SAAS;AAKtF,MAAM,gBAAgB;AAAA,EAC3B;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF;AAuCO,MAAM,iBAA+C;AAAA,EAC1D,GAAG;AAAA,EACH,GAAG,aAAa,QAAQ,CAAC,MAAM,CAAC,GAAG,GAAG,CAAC,eAAe,GAAG,CAAC,SAAS,GAAG,CAAC,kBAAkB,CAAoB;AAC/G;AAGO,SAAS,eAAe,QAA2B,QAAwB,OAAwB;AACxG,SAAO,MAAM,IAAI,MAAM;AACvB,SAAO,GAAG,MAAM,aAAa,IAAI,MAAM;AACvC,SAAO,GAAG,MAAM,OAAO,IAAI,MAAM;AACjC,SAAO,GAAG,MAAM,kBAAkB,IAAI,MAAM;AAC9C;AC1EO,MAAM,cAAc;AAAA;AAAA,EAEzB,IAAI;AAAA;AAAA,EAEJ,IAAI;AAAA;AAAA,EAEJ,IAAI;AACN;AAYO,MAAM,cAAc;AAAA;AAAA,EAEzB,WAAW;AAAA;AAAA,EAEX,WAAW;AACb;AAkHO,MAAM,cAAc;AAAA;AAAA,EAEzB,MAAM;AAAA;AAAA,EAEN,SAAS;AAAA;AAAA,EAET,MAAM;AACR;AAKO,MAAM,aAAa;AAAA;AAAA,EAExB,eAAe;AAAA;AAAA,EAEf,WAAW;AAAA;AAAA,EAEX,SAAS;AAAA;AAAA,EAET,MAAM;AACR;AAKO,MAAM,eAAe;AAAA;AAAA,EAE1B,MAAM;AAAA;AAAA,EAEN,OAAO;A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AAAA,MACT;AAAA,IAAA,CACD;AAAA,EACH;AACA,SAAO,OAAO,OAAO,MAAM;AAC7B;AAMO,MAAM,SAA+B,mBAAA;AAGrC,SAAS,SAAS,IAA+B;AACtD,QAAMA,SAAQ,SAAS,QAAQ,EAAE;AACjC,SAAOA,SAAQ,IAAI,SAAY,OAAOA,MAAK;AAC7C;AAGO,SAAS,kBAAwC;AACtD,SAAO;AAAA,IACL,GAAG,eAAe,OAAO,CAAC,UAAU,MAAM,WAAW,YAAY,SAAS;AAAA,IAC1E,GAAG,eAAe,QAAQ,CAAC,SAAS;AAClC,YAAM,QAAQ,mBAAmB,IAAI,IAAI;AACzC,aAAO,OAAO,WAAW,YAAY,YAAY,CAAC,KAAK,IAAI,CAAA;AAAA,IAC7D,CAAC;AAAA,EAAA;AAEL;AAGO,SAAS,kBAAwC;AACtD,SAAO,OAAO,OAAO,CAAC,MAAM,EAAE,WAAW,YAAY,SAAS;AAChE;AAGO,MAAM,WAAkC;AAAA,EAC7C,GAAG,eAAe,IAAI,CAAC,UAAU,MAAM,EAAE;AAAA,EACzC,GAAG,eAAe,IAAI,CAAC,SAAS,KAAK,EAAE;AACzC;AAGO,MAAM,eAAqE;AAAA,EAChF,GAAG,eAAe,IAAI,CAAC,EAAE,IAAI,MAAM,OAAA,OAAc,EAAE,IAAI,MAAM,SAAS;AAAA,EACtE,GAAG,eAAe,IAAI,CAAC,EAAE,IAAI,KAAA,OAAY,EAAE,IAAI,MAAM,QAAQ,YAAY,YAAY;AACvF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1,6 +1,10 @@
1
1
  import { VariantProps } from './Tv';
2
2
  import { Tone } from './enums/StyleTokens';
3
- /** Defines the visual-recipe axis of a surface (solid · soft · surface · outline · glass · etc.). */
3
+ /**
4
+ * Defines the visual-recipe axis of a surface (solid · soft · surface · outline · glass · etc.).
5
+ *
6
+ * The four glass recipes read the theme's glass strength — the `--glass-*` custom properties in `styles.css`.
7
+ */
4
8
  export declare const SurfaceVariant: {
5
9
  /** Refers to an opaque fill, no border, light shadow. */
6
10
  readonly Solid: "solid";
@@ -12,10 +16,17 @@ export declare const SurfaceVariant: {
12
16
  readonly Raised: "raised";
13
17
  /** Refers to a transparent fill + visible border. */
14
18
  readonly Outline: "outline";
15
- /** Refers to a translucent + blur fill, no border, medium shadow. */
19
+ /** Refers to a translucent + blur fill, no border, medium shadow — the theme's `--glass-fill` strength. */
16
20
  readonly Glass: "glass";
17
21
  /** Refers to a translucent + blur fill + subtle border. */
18
22
  readonly GlassOutline: "glass-outline";
23
+ /** Refers to the sidebar glass — `--glass-side-fill`, no border, no shadow; opaque where blur is unavailable. */
24
+ readonly GlassSide: "glass-side";
25
+ /**
26
+ * Refers to the menu glass — `--glass-menu-fill` + the `--glass-edge` hairline + `--glass-menu-shadow`; opaque
27
+ * where blur is unavailable. For menus, popovers and phone sheets.
28
+ */
29
+ readonly GlassMenu: "glass-menu";
19
30
  /** Refers to an opaque fill, no border, heavy shadow. */
20
31
  readonly Elevated: "elevated";
21
32
  /** Refers to an opaque fill, no border, no shadow. */
@@ -32,8 +43,10 @@ export declare const surfaceVariants: import('tailwind-variants').TVReturnType<{
32
43
  surface: "border shadow-md";
33
44
  raised: "border shadow-lg";
34
45
  outline: "border bg-transparent";
35
- glass: "backdrop-blur-md shadow-md";
36
- 'glass-outline': "border backdrop-blur-md shadow-md";
46
+ glass: "backdrop-blur-(--glass-blur) backdrop-saturate-(--glass-saturate) shadow-md";
47
+ 'glass-outline': "border backdrop-blur-(--glass-blur) backdrop-saturate-(--glass-saturate) shadow-md";
48
+ 'glass-side': "surface-glass-side";
49
+ 'glass-menu': "surface-glass-menu border border-glass-edge shadow-(--glass-menu-shadow)";
37
50
  elevated: "shadow-xl";
38
51
  flat: "";
39
52
  subtle: "border";
@@ -85,8 +98,10 @@ export declare const surfaceVariants: import('tailwind-variants').TVReturnType<{
85
98
  surface: "border shadow-md";
86
99
  raised: "border shadow-lg";
87
100
  outline: "border bg-transparent";
88
- glass: "backdrop-blur-md shadow-md";
89
- 'glass-outline': "border backdrop-blur-md shadow-md";
101
+ glass: "backdrop-blur-(--glass-blur) backdrop-saturate-(--glass-saturate) shadow-md";
102
+ 'glass-outline': "border backdrop-blur-(--glass-blur) backdrop-saturate-(--glass-saturate) shadow-md";
103
+ 'glass-side': "surface-glass-side";
104
+ 'glass-menu': "surface-glass-menu border border-glass-edge shadow-(--glass-menu-shadow)";
90
105
  elevated: "shadow-xl";
91
106
  flat: "";
92
107
  subtle: "border";
@@ -138,8 +153,10 @@ export declare const surfaceVariants: import('tailwind-variants').TVReturnType<{
138
153
  surface: "border shadow-md";
139
154
  raised: "border shadow-lg";
140
155
  outline: "border bg-transparent";
141
- glass: "backdrop-blur-md shadow-md";
142
- 'glass-outline': "border backdrop-blur-md shadow-md";
156
+ glass: "backdrop-blur-(--glass-blur) backdrop-saturate-(--glass-saturate) shadow-md";
157
+ 'glass-outline': "border backdrop-blur-(--glass-blur) backdrop-saturate-(--glass-saturate) shadow-md";
158
+ 'glass-side': "surface-glass-side";
159
+ 'glass-menu': "surface-glass-menu border border-glass-edge shadow-(--glass-menu-shadow)";
143
160
  elevated: "shadow-xl";
144
161
  flat: "";
145
162
  subtle: "border";
@@ -1,8 +1,8 @@
1
1
  import { c } from "../../chunks/Cn-C7De6POU.js";
2
- import { A, C, R, S, a, T } from "../../chunks/Tones-Bcz8dIo3.js";
2
+ import { A, C, R, S, a, T } from "../../chunks/Tones-BU9yaXKf.js";
3
3
  import { C as C2, a as a2 } from "../../chunks/ColorExtensions-DiCSaVbJ.js";
4
- import { S as S2, s } from "../../chunks/SurfaceStyles-BYvRlsWe.js";
5
- import { D, L, l } from "../../chunks/index-CGIXFfl9.js";
4
+ import { S as S2, s } from "../../chunks/SurfaceStyles-DUVz963_.js";
5
+ import { D, L, l } from "../../chunks/index-Bk5JPh5t.js";
6
6
  import { P, R as R2, S as S3, T as T2 } from "../../chunks/StyleTokens-Bkz7Dm5L.js";
7
7
  import { S as S4 } from "../../chunks/Severity-D0C5oAt-.js";
8
8
  import { O } from "../../chunks/Orientation-u-sYunuG.js";
@@ -45,6 +45,42 @@ export interface ThemeAmbient {
45
45
  /** Dark-mode backdrop layers. */
46
46
  dark: string;
47
47
  }
48
+ /**
49
+ * One mode's glass strength: CSS values for the `--glass-*` custom properties the glass surfaces read (see
50
+ * `styles.css`). Every member is optional; an unset one keeps the SDK's own glass.
51
+ */
52
+ export interface ThemeGlassTokens {
53
+ /** The chrome fill — top bar, bottom bar, cards (`--glass-fill`), e.g. `rgb(255 255 255 / 0.84)`. */
54
+ readonly fill?: string;
55
+ /** The sidebar fill (`--glass-side-fill`). */
56
+ readonly sideFill?: string;
57
+ /** The menu, popover and phone-sheet fill (`--glass-menu-fill`). */
58
+ readonly menuFill?: string;
59
+ /** The backdrop blur radius, a length (`--glass-blur`). */
60
+ readonly blur?: string;
61
+ /** The backdrop saturation, a percentage (`--glass-saturate`). */
62
+ readonly saturate?: string;
63
+ /** The hairline colour between glass and content (`--glass-edge`). */
64
+ readonly edge?: string;
65
+ /** The inset top highlight colour (`--glass-highlight`); the emitter adds it to every shadow as a 1px line. */
66
+ readonly highlight?: string;
67
+ /** The chrome's outer shadow, cast down from a top bar (`--glass-shadow`). */
68
+ readonly shadow?: string;
69
+ /**
70
+ * The bottom bar's outer shadow, cast up over the page (`--glass-bottom-shadow`) — a negative y offset, the
71
+ * mirror of `shadow`.
72
+ */
73
+ readonly bottomShadow?: string;
74
+ /** The menus' outer shadow (`--glass-menu-shadow`). */
75
+ readonly menuShadow?: string;
76
+ }
77
+ /** A theme's glass strength per mode, emitted as the `--glass-*` custom properties. */
78
+ export interface ThemeGlass {
79
+ /** Light-mode strength. */
80
+ readonly light: ThemeGlassTokens;
81
+ /** Dark-mode strength. */
82
+ readonly dark: ThemeGlassTokens;
83
+ }
48
84
  /** A named, validated theme — the unit the registry stores and the emitter renders. */
49
85
  export interface Theme {
50
86
  /** Stable kebab-case id; drives the `.theme-{id}` class. */
@@ -63,6 +99,8 @@ export interface Theme {
63
99
  radius?: ThemeRadius;
64
100
  /** Page backdrop for glass themes (maps to `--theme-ambient`). Optional. */
65
101
  ambient?: ThemeAmbient;
102
+ /** Glass strength for the translucent surfaces (maps to the `--glass-*` properties). Optional. */
103
+ glass?: ThemeGlass;
66
104
  /** Lifecycle status — `validated` (real-app proven, locked) or `candidate` (engine-proven). */
67
105
  status: ThemeStatus;
68
106
  /** Validation result — `meta.contrastAA === true` ⇒ the theme is "proven". */
@@ -3,7 +3,7 @@ export type { Oklch as OklchColor } from './Oklch';
3
3
  export { normalizeHue, isInSrgbGamut, clampChromaToGamut, oklchToHex, oklchToCss, parseColor, relativeLuminance, contrastRatio, contrastRatioCss, } from './Oklch';
4
4
  export type { SemanticToken, TokenSet, RadiusScale, ToneFamilyName, ToneSlots } from './Tokens';
5
5
  export { SemanticTokens, SurfaceTokens, ToneFamilies, applyToneSlots } from './Tokens';
6
- export type { Theme, ThemeAmbient, ThemeMeta, ThemeSeed } from './Theme';
6
+ export type { Theme, ThemeAmbient, ThemeGlass, ThemeGlassTokens, ThemeMeta, ThemeSeed } from './Theme';
7
7
  export { ThemeStatus, ThemeRadius, NeutralTemp, AccentMode, SurfaceStyle } from './Theme';
8
8
  export { generateTheme } from './Generate';
9
9
  export { readableForeground } from './ReadableForeground';
@@ -1,5 +1,5 @@
1
1
  import { O, d, b, a, i, n, o, e, p, f, r } from "../../chunks/ReadableForeground-CgfzP7Tl.js";
2
- import { A, a as a2, b as b2, N, S, c, d as d2, T, e as e2, f as f2, g, h, j, k, l, m, n as n2, o as o2, p as p2, q, r as r2, s, t, v, u } from "../../chunks/index-DA17sNzP.js";
2
+ import { A, a as a2, b as b2, N, S, c, d as d2, T, e as e2, f as f2, g, h, j, k, l, m, n as n2, o as o2, p as p2, q, r as r2, s, t, v, u } from "../../chunks/index-ou-qGNDu.js";
3
3
  export {
4
4
  A as AaText,
5
5
  a2 as AaUi,