@adea-ai/ui 0.156.0 → 0.157.0

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 (81) hide show
  1. package/README.md +3 -3
  2. package/dist/components/theme/theme-document.d.ts +1 -1
  3. package/dist/components/theme/theme-document.js.map +1 -1
  4. package/dist/components/theme/theme-provider-value.d.ts +1 -1
  5. package/dist/components/theme/theme-provider-value.js.map +1 -1
  6. package/dist/components/ui/button/button.d.ts.map +1 -1
  7. package/dist/components/ui/button/button.js +3 -3
  8. package/dist/components/ui/button/button.js.map +1 -1
  9. package/dist/lib/fast-icon.d.ts +2 -1
  10. package/dist/lib/fast-icon.d.ts.map +1 -1
  11. package/dist/lib/fast-icon.js +4 -3
  12. package/dist/lib/fast-icon.js.map +1 -1
  13. package/dist/lib/theme-defaults.generated.d.ts.map +1 -1
  14. package/dist/lib/theme-defaults.generated.js +88 -60
  15. package/dist/lib/theme-defaults.generated.js.map +1 -1
  16. package/dist/lib/theme-projection.d.ts +2 -0
  17. package/dist/lib/theme-projection.d.ts.map +1 -1
  18. package/dist/lib/theme-projection.js +2 -2
  19. package/dist/lib/theme-projection.js.map +1 -1
  20. package/dist/lib/theme-types.d.ts +7 -0
  21. package/dist/lib/theme-types.d.ts.map +1 -1
  22. package/dist/lib/theme-types.js +7 -0
  23. package/dist/lib/theme-types.js.map +1 -1
  24. package/dist/r/appearance-editor.json +1 -1
  25. package/dist/r/lib.json +1 -1
  26. package/dist/r/registry.json +3 -3
  27. package/dist/r/src/components/theme/theme-document.ts +1 -1
  28. package/dist/r/src/components/theme/theme-provider-value.ts +1 -1
  29. package/dist/r/src/components/ui/button/button.tsx +12 -3
  30. package/dist/r/src/lib/fast-icon.ts +11 -4
  31. package/dist/r/src/lib/theme-defaults.generated.ts +88 -60
  32. package/dist/r/src/lib/theme-projection.ts +2 -0
  33. package/dist/r/src/lib/theme-types.ts +7 -0
  34. package/dist/r/src/styles/theme-variants.css +608 -370
  35. package/dist/r/src/styles/theme.css +4 -4
  36. package/dist/r/theming.json +1 -1
  37. package/package.json +2 -2
  38. package/registry.json +3 -3
  39. package/src/components/theme/theme-document.ts +1 -1
  40. package/src/components/theme/theme-provider-value.ts +1 -1
  41. package/src/components/ui/button/button.tsx +12 -3
  42. package/src/lib/fast-icon.ts +11 -4
  43. package/src/lib/theme-defaults.generated.ts +88 -60
  44. package/src/lib/theme-projection.ts +2 -0
  45. package/src/lib/theme-types.ts +7 -0
  46. package/src/styles/theme-variants.css +608 -370
  47. package/src/styles/theme.css +4 -4
  48. package/src/styles/themes/aardvark-blue.css +7 -0
  49. package/src/styles/themes/aardvark-ink.css +7 -0
  50. package/src/styles/themes/adea-dark-colorblind.css +22 -15
  51. package/src/styles/themes/adea-dark-high-contrast.css +22 -15
  52. package/src/styles/themes/adea-dark.css +22 -15
  53. package/src/styles/themes/adea-light-colorblind.css +21 -14
  54. package/src/styles/themes/adea-light-high-contrast.css +21 -14
  55. package/src/styles/themes/adea-light.css +22 -15
  56. package/src/styles/themes/ayu-light.css +20 -13
  57. package/src/styles/themes/ayu-mirage.css +21 -14
  58. package/src/styles/themes/ayu.css +22 -15
  59. package/src/styles/themes/catppuccin-frappe.css +16 -9
  60. package/src/styles/themes/catppuccin-latte.css +15 -8
  61. package/src/styles/themes/catppuccin-macchiato.css +16 -9
  62. package/src/styles/themes/catppuccin-mocha.css +16 -9
  63. package/src/styles/themes/dracula.css +16 -9
  64. package/src/styles/themes/everforest-dark.css +19 -12
  65. package/src/styles/themes/everforest-light.css +21 -14
  66. package/src/styles/themes/gruvbox-dark.css +21 -14
  67. package/src/styles/themes/gruvbox-light.css +20 -13
  68. package/src/styles/themes/kanagawa.css +18 -11
  69. package/src/styles/themes/monokai.css +19 -12
  70. package/src/styles/themes/nord-light.css +7 -0
  71. package/src/styles/themes/nord.css +19 -12
  72. package/src/styles/themes/one-dark.css +16 -9
  73. package/src/styles/themes/rosepine-dawn.css +19 -12
  74. package/src/styles/themes/rosepine-moon.css +20 -13
  75. package/src/styles/themes/rosepine.css +20 -13
  76. package/src/styles/themes/solarized-dark.css +19 -12
  77. package/src/styles/themes/solarized-light.css +19 -12
  78. package/src/styles/themes/tokyonight-day.css +7 -0
  79. package/src/styles/themes/tokyonight-night.css +18 -11
  80. package/src/styles/themes/tokyonight-storm.css +18 -11
  81. package/src/styles/themes/vesper.css +22 -15
@@ -1 +1 @@
1
- {"version":3,"file":"theme-defaults.generated.js","names":[],"sources":["../../src/lib/theme-defaults.generated.ts"],"sourcesContent":["/*\n * GENERATED by scripts/build-theme-defaults.ts from @adea-ai/themes. Do not edit.\n * Run `bun run theme:defaults` after the catalogue changes;\n * tests/theme-defaults.test.ts fails when this file is stale.\n */\nimport type { AccentPreset } from '@adea-ai/themes'\nimport type { ThemeEditorPalette, ThemeVariant } from './theme-types'\n\n/** Every catalogue theme id and its appearance, in catalogue order. */\nexport const THEME_INDEX: readonly (readonly [id: string, appearance: 'light' | 'dark'])[] = [\n ['adea-dark', 'dark'],\n ['adea-dark-colorblind', 'dark'],\n ['adea-dark-high-contrast', 'dark'],\n ['adea-light', 'light'],\n ['adea-light-colorblind', 'light'],\n ['adea-light-high-contrast', 'light'],\n ['aardvark-blue', 'dark'],\n ['aardvark-ink', 'dark'],\n ['ayu', 'dark'],\n ['ayu-light', 'light'],\n ['ayu-mirage', 'dark'],\n ['catppuccin-frappe', 'dark'],\n ['catppuccin-latte', 'light'],\n ['catppuccin-macchiato', 'dark'],\n ['catppuccin-mocha', 'dark'],\n ['dracula', 'dark'],\n ['everforest-dark', 'dark'],\n ['everforest-light', 'light'],\n ['gruvbox-dark', 'dark'],\n ['gruvbox-light', 'light'],\n ['kanagawa', 'dark'],\n ['monokai', 'dark'],\n ['nord', 'dark'],\n ['nord-light', 'light'],\n ['one-dark', 'dark'],\n ['rosepine', 'dark'],\n ['rosepine-dawn', 'light'],\n ['rosepine-moon', 'dark'],\n ['solarized-dark', 'dark'],\n ['solarized-light', 'light'],\n ['tokyonight-day', 'light'],\n ['tokyonight-night', 'dark'],\n ['tokyonight-storm', 'dark'],\n ['vesper', 'dark'],\n]\n\n/** The default light and dark themes, complete. */\nexport const DEFAULT_VARIANTS: Readonly<Record<'adea-light' | 'adea-dark', ThemeVariant>> = {\n 'adea-light': {\n id: 'adea-light',\n family: 'adea',\n familyLabel: 'Adea',\n label: 'Light',\n appearance: 'light',\n description:\n \"The default light theme: GitHub's own white canvas carrying the dark theme's hues, transposed to survive on paper, with the family violet accent.\",\n colors: {\n background: 'oklch(1 0 0)',\n foreground: 'oklch(0.2542 0.0111 254.04)',\n card: 'oklch(0.965 0 0)',\n cardForeground: 'oklch(0.2542 0.0111 254.04)',\n popover: 'oklch(0.935 0 0)',\n popoverForeground: 'oklch(0.2542 0.0111 254.04)',\n primary: 'oklch(0.5143 0.1668 301.69)',\n primaryForeground: 'oklch(1 0 0)',\n secondary: 'oklch(0.965 0 0)',\n secondaryForeground: 'oklch(0.2542 0.0111 254.04)',\n muted: 'oklch(0.965 0 0)',\n mutedForeground: 'oklch(0.4929 0.0076 254.04)',\n accent: 'oklch(0.9 0 0)',\n accentForeground: 'oklch(0.2542 0.0111 254.04)',\n destructive: 'oklch(0.5165 0.1626 25.78)',\n destructiveForeground: 'oklch(1 0 0)',\n destructiveSubtle: 'oklch(0.9323 0.0228 25.78)',\n destructiveAction: 'oklch(0.5165 0.1626 25.78)',\n destructiveActionForeground: 'oklch(1 0 0)',\n success: 'oklch(0.4771 0.1809 145.62)',\n successForeground: 'oklch(1 0 0)',\n successSubtle: 'oklch(0.9268 0.0253 145.62)',\n warning: 'oklch(0.5016 0.1401 79.91)',\n warningForeground: 'oklch(1 0 0)',\n warningSubtle: 'oklch(0.9302 0.0196 79.91)',\n info: 'oklch(0.5375 0.1155 202.14)',\n infoForeground: 'oklch(1 0 0)',\n infoSubtle: 'oklch(0.9353 0.0162 202.14)',\n border: 'oklch(0.85 0 0)',\n input: 'oklch(0.85 0 0)',\n ring: 'oklch(0.5143 0.1668 301.69)',\n sidebar: 'oklch(0.965 0 0)',\n sidebarForeground: 'oklch(0.2542 0.0111 254.04)',\n sidebarAccent: 'oklch(0.9 0 0)',\n sidebarBorder: 'oklch(0.85 0 0)',\n sidebarMutedForeground: 'oklch(0.4929 0.0076 254.04)',\n },\n terminal: {\n background: 'oklch(1 0 0)',\n foreground: 'oklch(0.2542 0.0111 254.04)',\n cursor: 'oklch(0.5399 0.1906 257.48)',\n selection: 'oklch(0.2542 0.0111 254.04)',\n black: 'oklch(0.2785 0.0132 253.04)',\n red: 'oklch(0.5165 0.1626 25.78)',\n green: 'oklch(0.4771 0.1809 145.62)',\n yellow: 'oklch(0.5016 0.1401 79.91)',\n blue: 'oklch(0.4973 0.1518 253.31)',\n magenta: 'oklch(0.5143 0.1668 301.69)',\n cyan: 'oklch(0.5375 0.1155 202.14)',\n white: 'oklch(0.5651 0.0189 250.97)',\n brightBlack: 'oklch(0.4849 0.0196 251.02)',\n brightRed: 'oklch(0.5834 0.1134 25.81)',\n brightGreen: 'oklch(0.5537 0.188 145.48)',\n brightYellow: 'oklch(0.5724 0.1386 85.24)',\n brightBlue: 'oklch(0.5677 0.1153 246.66)',\n brightMagenta: 'oklch(0.5825 0.1275 305.86)',\n brightCyan: 'oklch(0.5856 0.1107 201.78)',\n brightWhite: 'oklch(0.6658 0.0181 250.92)',\n },\n editor: {\n keyword: 'oklch(0.5143 0.1668 301.69)',\n string: 'oklch(0.4771 0.1809 145.62)',\n number: 'oklch(0.5016 0.1401 79.91)',\n comment: 'oklch(0.4849 0.0196 251.02)',\n function: 'oklch(0.4973 0.1518 253.31)',\n variable: 'oklch(0.2785 0.0132 253.04)',\n type: 'oklch(0.5375 0.1155 202.14)',\n tag: 'oklch(0.5165 0.1626 25.78)',\n attribute: 'oklch(0.5016 0.1401 79.91)',\n operator: 'oklch(0.2785 0.0132 253.04)',\n heading: 'oklch(0.5143 0.1668 301.69)',\n link: 'oklch(0.4973 0.1518 253.31)',\n diffAdd: 'oklch(0.4771 0.1809 145.62)',\n diffDelete: 'oklch(0.5165 0.1626 25.78)',\n diffHunk: 'oklch(0.5375 0.1155 202.14)',\n searchMatch: 'oklch(0.5016 0.1401 79.91)',\n },\n chart: [\n 'oklch(0.4973 0.1518 253.31)',\n 'oklch(0.5143 0.1668 301.69)',\n 'oklch(0.5375 0.1155 202.14)',\n 'oklch(0.4771 0.1809 145.62)',\n 'oklch(0.5016 0.1401 79.91)',\n 'oklch(0.5165 0.1626 25.78)',\n ],\n provenance: { source: 'Adea', url: 'https://github.com/adea-ai/themes', license: 'Apache-2.0' },\n },\n 'adea-dark': {\n id: 'adea-dark',\n family: 'adea',\n familyLabel: 'Adea',\n label: 'Dark',\n appearance: 'dark',\n description:\n 'The default dark theme: GitHub Dark Default with the canvas re-greyed to a violet-leaning neutral and the family violet accent, kept as a composition so the default can diverge from it one slot at a time.',\n colors: {\n background: 'oklch(0.1756 0.0063 300.91)',\n foreground: 'oklch(0.942 0.0054 297.72)',\n card: 'oklch(0.2106 0.0076 300.91)',\n cardForeground: 'oklch(0.942 0.0054 297.72)',\n popover: 'oklch(0.2406 0.0088 300.91)',\n popoverForeground: 'oklch(0.942 0.0054 297.72)',\n primary: 'oklch(0.7323 0.1668 301.69)',\n primaryForeground: 'oklch(0.1756 0.0063 300.91)',\n secondary: 'oklch(0.2106 0.0076 300.91)',\n secondaryForeground: 'oklch(0.942 0.0054 297.72)',\n muted: 'oklch(0.2106 0.0076 300.91)',\n mutedForeground: 'oklch(0.6967 0.0057 298.74)',\n accent: 'oklch(0.2756 0.0101 300.91)',\n accentForeground: 'oklch(0.942 0.0054 297.72)',\n destructive: 'oklch(0.7345 0.1626 25.78)',\n destructiveForeground: 'oklch(0.1756 0.0063 300.91)',\n destructiveSubtle: 'oklch(0.2538 0.0282 312.79)',\n destructiveAction: 'oklch(0.7345 0.1626 25.78)',\n destructiveActionForeground: 'oklch(0.1756 0.0063 300.91)',\n success: 'oklch(0.6951 0.1809 145.62)',\n successForeground: 'oklch(0.1756 0.0063 300.91)',\n successSubtle: 'oklch(0.2483 0.0307 279.17)',\n warning: 'oklch(0.7196 0.1401 79.91)',\n warningForeground: 'oklch(0.1756 0.0063 300.91)',\n warningSubtle: 'oklch(0.2518 0.025 320.37)',\n info: 'oklch(0.7555 0.1155 202.14)',\n infoForeground: 'oklch(0.1756 0.0063 300.91)',\n infoSubtle: 'oklch(0.2568 0.0216 287.08)',\n border: 'oklch(0.3256 0.0057 300.91)',\n input: 'oklch(0.3256 0.0057 300.91)',\n ring: 'oklch(0.7323 0.1668 301.69)',\n sidebar: 'oklch(0.2106 0.0076 300.91)',\n sidebarForeground: 'oklch(0.942 0.0054 297.72)',\n sidebarAccent: 'oklch(0.2756 0.0101 300.91)',\n sidebarBorder: 'oklch(0.3256 0.0057 300.91)',\n sidebarMutedForeground: 'oklch(0.6967 0.0057 298.74)',\n },\n terminal: {\n background: 'oklch(0.1756 0.0063 300.91)',\n foreground: 'oklch(0.942 0.0054 297.72)',\n cursor: 'oklch(0.6182 0.1935 258.33)',\n selection: 'oklch(0.9425 0.0111 243.66)',\n black: 'oklch(0.4243 0.0101 301.11)',\n red: 'oklch(0.7345 0.1626 25.78)',\n green: 'oklch(0.6951 0.1809 145.62)',\n yellow: 'oklch(0.7196 0.1401 79.91)',\n blue: 'oklch(0.7153 0.1518 253.31)',\n magenta: 'oklch(0.7323 0.1668 301.69)',\n cyan: 'oklch(0.7555 0.1155 202.14)',\n white: 'oklch(0.786 0.0087 301.32)',\n brightBlack: 'oklch(0.5627 0.0094 301.22)',\n brightRed: 'oklch(0.8014 0.1134 25.81)',\n brightGreen: 'oklch(0.7717 0.188 145.48)',\n brightYellow: 'oklch(0.7904 0.1386 85.24)',\n brightBlue: 'oklch(0.7857 0.1153 246.66)',\n brightMagenta: 'oklch(0.8005 0.1275 305.86)',\n brightCyan: 'oklch(0.8036 0.1107 201.78)',\n brightWhite: 'oklch(1 0 0)',\n },\n editor: {\n keyword: 'oklch(0.7323 0.1668 301.69)',\n string: 'oklch(0.6951 0.1809 145.62)',\n number: 'oklch(0.7196 0.1401 79.91)',\n comment: 'oklch(0.5627 0.0094 301.22)',\n function: 'oklch(0.7153 0.1518 253.31)',\n variable: 'oklch(0.786 0.0087 301.32)',\n type: 'oklch(0.7555 0.1155 202.14)',\n tag: 'oklch(0.7345 0.1626 25.78)',\n attribute: 'oklch(0.7196 0.1401 79.91)',\n operator: 'oklch(0.786 0.0087 301.32)',\n heading: 'oklch(0.7323 0.1668 301.69)',\n link: 'oklch(0.7153 0.1518 253.31)',\n diffAdd: 'oklch(0.6951 0.1809 145.62)',\n diffDelete: 'oklch(0.7345 0.1626 25.78)',\n diffHunk: 'oklch(0.7555 0.1155 202.14)',\n searchMatch: 'oklch(0.7196 0.1401 79.91)',\n },\n chart: [\n 'oklch(0.7153 0.1518 253.31)',\n 'oklch(0.7323 0.1668 301.69)',\n 'oklch(0.7555 0.1155 202.14)',\n 'oklch(0.6951 0.1809 145.62)',\n 'oklch(0.7196 0.1401 79.91)',\n 'oklch(0.7345 0.1626 25.78)',\n ],\n provenance: { source: 'Adea', url: 'https://github.com/adea-ai/themes', license: 'Apache-2.0' },\n },\n}\n\n/** The accents the default light/dark pair offers beside the presets. */\nexport const DEFAULT_THEME_ACCENTS: readonly AccentPreset[] = [\n {\n id: 'ansi-blue',\n label: 'Blue',\n description: \"The theme's own blue colour.\",\n light: 'oklch(0.4973 0.1518 253.31)',\n dark: 'oklch(0.7153 0.1518 253.31)',\n },\n {\n id: 'ansi-magenta',\n label: 'Magenta',\n description: \"The theme's own magenta colour.\",\n light: 'oklch(0.5143 0.1668 301.69)',\n dark: 'oklch(0.7323 0.1668 301.69)',\n },\n {\n id: 'ansi-cyan',\n label: 'Cyan',\n description: \"The theme's own cyan colour.\",\n light: 'oklch(0.5375 0.1155 202.14)',\n dark: 'oklch(0.7555 0.1155 202.14)',\n },\n {\n id: 'ansi-green',\n label: 'Green',\n description: \"The theme's own green colour.\",\n light: 'oklch(0.4771 0.1809 145.62)',\n dark: 'oklch(0.6951 0.1809 145.62)',\n },\n]\n\n/** Each default's measured `--primary-subtle` expression. */\nexport const DEFAULT_PRIMARY_SUBTLE: Readonly<Record<string, string>> = {\n 'adea-light': 'color-mix(in oklch, var(--primary) 10%, transparent)',\n 'adea-dark': 'color-mix(in oklch, var(--primary) 16%, transparent)',\n}\n\n/** Each default's `--editor-*` ramp held to 4.5:1 on its canvas (`editorRoles: 'floor'`). */\nexport const DEFAULT_FLOOR_EDITOR: Readonly<Record<string, ThemeEditorPalette>> = {\n 'adea-light': {\n keyword: '#7a49b5',\n string: '#00711f',\n number: '#825c00',\n comment: '#57606a',\n function: '#0662b5',\n variable: '#24292f',\n type: '#007d85',\n tag: '#b23533',\n attribute: '#825c00',\n operator: '#24292f',\n heading: '#7a49b5',\n link: '#0662b5',\n diffAdd: '#00711f',\n diffDelete: '#b23533',\n diffHunk: '#007d85',\n searchMatch: '#825c00',\n },\n 'adea-dark': {\n keyword: '#bc8cff',\n string: '#3fb950',\n number: '#d29922',\n comment: '#7d7b81',\n function: '#58a6ff',\n variable: '#bab8be',\n type: '#39c5cf',\n tag: '#ff7b72',\n attribute: '#d29922',\n operator: '#bab8be',\n heading: '#bc8cff',\n link: '#58a6ff',\n diffAdd: '#3fb950',\n diffDelete: '#ff7b72',\n diffHunk: '#39c5cf',\n searchMatch: '#d29922',\n },\n}\n"],"mappings":";;AASA,IAAa,cAAgF;CAC3F,CAAC,aAAa,MAAM;CACpB,CAAC,wBAAwB,MAAM;CAC/B,CAAC,2BAA2B,MAAM;CAClC,CAAC,cAAc,OAAO;CACtB,CAAC,yBAAyB,OAAO;CACjC,CAAC,4BAA4B,OAAO;CACpC,CAAC,iBAAiB,MAAM;CACxB,CAAC,gBAAgB,MAAM;CACvB,CAAC,OAAO,MAAM;CACd,CAAC,aAAa,OAAO;CACrB,CAAC,cAAc,MAAM;CACrB,CAAC,qBAAqB,MAAM;CAC5B,CAAC,oBAAoB,OAAO;CAC5B,CAAC,wBAAwB,MAAM;CAC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AQ;GACR,SAAS;GACT,UAAU;GACV,UAAU;GACV,MAAM;GACN,KAAK;GACL,WAAW;GACX,UAAU;GACV,SAAS;GACT,MAAM;GACN,SAAS;GACT,YAAY;GACZ,UAAU;GACV,aAAa;EACf;EACA,OAAO;GACL;GACA;GACA;GACA;GACA;GACA;EACF;EACA,YAAY;GAAE,QAAQ;GAAQ,KAAK;GAAqC,SAAS;EAAa;CAChG;AACF;;AAGA,IAAa,wBAAiD;CAC5D;EACE,IAAI;EACJ,OAAO;EACP,aAAa;EACb,OAAO;EACP,MAAM;CACR;CACA;EACE,IAAI;EACJ,OAAO;EACP,aAAa;EACb,OAAO;EACP,MAAM;CACR;CACA;EACE,IAAI;EACJ,OAAO;EACP,aAAa;EACb,OAAO;EACP,MAAM;CACR;CACA;EACE,IAAI;EACJ,OAAO;EACP,aAAa;EACb,OAAO;EACP,MAAM;CACR;AACF;;AAGA,IAAa,yBAA2D;CACtE,cAAc;CACd,aAAa;AACf;;AAGA,IAAa,uBAAqE;CAChF,cAAc;EACZ,SAAS;EACT,QAAQ;EACR,QAAQ;EACR,SAAS;EACT,UAAU;EACV,UAAU;EACV,MAAM;EACN,KAAK;EACL,WAAW;EACX,UAAU;EACV,SAAS;EACT,MAAM;EACN,SAAS;EACT,YAAY;EACZ,UAAU;EACV,aAAa;CACf;CACA,aAAa;EACX,SAAS;EACT,QAAQ;EACR,QAAQ;EACR,SAAS;EACT,UAAU;EACV,UAAU;EACV,MAAM;EACN,KAAK;EACL,WAAW;EACX,UAAU;EACV,SAAS;EACT,MAAM;EACN,SAAS;EACT,YAAY;EACZ,UAAU;EACV,aAAa;CACf;AACF"}
1
+ {"version":3,"file":"theme-defaults.generated.js","names":[],"sources":["../../src/lib/theme-defaults.generated.ts"],"sourcesContent":["/*\n * GENERATED by scripts/build-theme-defaults.ts from @adea-ai/themes. Do not edit.\n * Run `bun run theme:defaults` after the catalogue changes;\n * tests/theme-defaults.test.ts fails when this file is stale.\n */\nimport type { AccentPreset } from '@adea-ai/themes'\nimport type { ThemeEditorPalette, ThemeVariant } from './theme-types'\n\n/** Every catalogue theme id and its appearance, in catalogue order. */\nexport const THEME_INDEX: readonly (readonly [id: string, appearance: 'light' | 'dark'])[] = [\n ['adea-dark', 'dark'],\n ['adea-dark-colorblind', 'dark'],\n ['adea-dark-high-contrast', 'dark'],\n ['adea-light', 'light'],\n ['adea-light-colorblind', 'light'],\n ['adea-light-high-contrast', 'light'],\n ['aardvark-blue', 'dark'],\n ['aardvark-ink', 'dark'],\n ['ayu', 'dark'],\n ['ayu-light', 'light'],\n ['ayu-mirage', 'dark'],\n ['catppuccin-frappe', 'dark'],\n ['catppuccin-latte', 'light'],\n ['catppuccin-macchiato', 'dark'],\n ['catppuccin-mocha', 'dark'],\n ['dracula', 'dark'],\n ['everforest-dark', 'dark'],\n ['everforest-light', 'light'],\n ['gruvbox-dark', 'dark'],\n ['gruvbox-light', 'light'],\n ['kanagawa', 'dark'],\n ['monokai', 'dark'],\n ['nord', 'dark'],\n ['nord-light', 'light'],\n ['one-dark', 'dark'],\n ['rosepine', 'dark'],\n ['rosepine-dawn', 'light'],\n ['rosepine-moon', 'dark'],\n ['solarized-dark', 'dark'],\n ['solarized-light', 'light'],\n ['tokyonight-day', 'light'],\n ['tokyonight-night', 'dark'],\n ['tokyonight-storm', 'dark'],\n ['vesper', 'dark'],\n]\n\n/** The default light and dark themes, complete. */\nexport const DEFAULT_VARIANTS: Readonly<Record<'adea-light' | 'adea-dark', ThemeVariant>> = {\n 'adea-light': {\n id: 'adea-light',\n family: 'adea',\n familyLabel: 'Adea',\n label: 'Light',\n appearance: 'light',\n description:\n \"The default light theme: GitHub's own white canvas carrying the dark theme's hues, transposed to survive on paper, with the family violet accent.\",\n colors: {\n background: 'oklch(1 0 0)',\n foreground: 'oklch(0.2542 0.0111 254.04)',\n card: 'oklch(0.965 0 0)',\n cardForeground: 'oklch(0.2542 0.0111 254.04)',\n popover: 'oklch(0.935 0 0)',\n popoverForeground: 'oklch(0.2542 0.0111 254.04)',\n primary: 'oklch(0.5143 0.1668 301.69)',\n primaryForeground: 'oklch(1 0 0)',\n secondary: 'oklch(0.965 0 0)',\n secondaryForeground: 'oklch(0.2542 0.0111 254.04)',\n muted: 'oklch(0.965 0 0)',\n mutedForeground: 'oklch(0.4929 0.0076 254.04)',\n accent: 'oklch(0.9 0 0)',\n accentForeground: 'oklch(0.2542 0.0111 254.04)',\n destructive: 'oklch(0.5165 0.1626 25.78)',\n destructiveForeground: 'oklch(1 0 0)',\n destructiveSubtle: 'oklch(0.9323 0.0228 25.78)',\n destructiveAction: 'oklch(0.5165 0.1626 25.78)',\n destructiveActionForeground: 'oklch(1 0 0)',\n success: 'oklch(0.4771 0.1809 145.62)',\n successForeground: 'oklch(1 0 0)',\n successSubtle: 'oklch(0.9268 0.0253 145.62)',\n warning: 'oklch(0.5016 0.1401 79.91)',\n warningForeground: 'oklch(1 0 0)',\n warningSubtle: 'oklch(0.9302 0.0196 79.91)',\n info: 'oklch(0.5375 0.1155 202.14)',\n infoForeground: 'oklch(1 0 0)',\n infoSubtle: 'oklch(0.9353 0.0162 202.14)',\n border: 'oklch(0.85 0 0)',\n input: 'oklch(0.85 0 0)',\n ring: 'oklch(0.5143 0.1668 301.69)',\n sidebar: 'oklch(0.965 0 0)',\n sidebarForeground: 'oklch(0.2542 0.0111 254.04)',\n sidebarAccent: 'oklch(0.9 0 0)',\n sidebarBorder: 'oklch(0.85 0 0)',\n sidebarMutedForeground: 'oklch(0.4929 0.0076 254.04)',\n },\n terminal: {\n background: 'oklch(1 0 0)',\n foreground: 'oklch(0.2542 0.0111 254.04)',\n cursor: 'oklch(0.5399 0.1906 257.48)',\n selection: 'oklch(0.2542 0.0111 254.04)',\n black: 'oklch(0.2785 0.0132 253.04)',\n red: 'oklch(0.5165 0.1626 25.78)',\n green: 'oklch(0.4771 0.1809 145.62)',\n yellow: 'oklch(0.5016 0.1401 79.91)',\n blue: 'oklch(0.4973 0.1518 253.31)',\n magenta: 'oklch(0.5143 0.1668 301.69)',\n cyan: 'oklch(0.5375 0.1155 202.14)',\n white: 'oklch(0.5651 0.0189 250.97)',\n brightBlack: 'oklch(0.4849 0.0196 251.02)',\n brightRed: 'oklch(0.5834 0.1134 25.81)',\n brightGreen: 'oklch(0.5537 0.188 145.48)',\n brightYellow: 'oklch(0.5724 0.1386 85.24)',\n brightBlue: 'oklch(0.5677 0.1153 246.66)',\n brightMagenta: 'oklch(0.5825 0.1275 305.86)',\n brightCyan: 'oklch(0.5856 0.1107 201.78)',\n brightWhite: 'oklch(0.6658 0.0181 250.92)',\n },\n editor: {\n keyword: 'oklch(0.5517 0.2051 24.53)',\n storage: 'oklch(0.5517 0.2051 24.53)',\n string: 'oklch(0.321 0.1084 259.11)',\n number: 'oklch(0.4509 0.1641 258.18)',\n comment: 'oklch(0.5651 0.0189 250.97)',\n function: 'oklch(0.5631 0.2069 294.97)',\n variable: 'oklch(0.2542 0.0111 254.04)',\n parameter: 'oklch(0.4657 0.1371 43.35)',\n property: 'oklch(0.2542 0.0111 254.04)',\n field: 'oklch(0.2542 0.0111 254.04)',\n member: 'oklch(0.2542 0.0111 254.04)',\n type: 'oklch(0.4657 0.1371 43.35)',\n tag: 'oklch(0.4391 0.1179 148.07)',\n attribute: 'oklch(0.4509 0.1641 258.18)',\n operator: 'oklch(0.5517 0.2051 24.53)',\n heading: 'oklch(0.4509 0.1641 258.18)',\n link: 'oklch(0.2542 0.0111 254.04)',\n constant: 'oklch(0.4509 0.1641 258.18)',\n punctuation: 'oklch(0.2542 0.0111 254.04)',\n diffAdd: 'oklch(0.4391 0.1179 148.07)',\n diffDelete: 'oklch(0.387 0.1507 20.77)',\n diffHunk: 'oklch(0.5631 0.2069 294.97)',\n searchMatch: 'oklch(0.5016 0.1401 79.91)',\n },\n chart: [\n 'oklch(0.4973 0.1518 253.31)',\n 'oklch(0.5143 0.1668 301.69)',\n 'oklch(0.5375 0.1155 202.14)',\n 'oklch(0.4771 0.1809 145.62)',\n 'oklch(0.5016 0.1401 79.91)',\n 'oklch(0.5165 0.1626 25.78)',\n ],\n provenance: { source: 'Adea', url: 'https://github.com/adea-ai/themes', license: 'Apache-2.0' },\n },\n 'adea-dark': {\n id: 'adea-dark',\n family: 'adea',\n familyLabel: 'Adea',\n label: 'Dark',\n appearance: 'dark',\n description:\n 'The default dark theme: GitHub Dark Default with the canvas re-greyed to a violet-leaning neutral and the family violet accent, kept as a composition so the default can diverge from it one slot at a time.',\n colors: {\n background: 'oklch(0.1756 0.0063 300.91)',\n foreground: 'oklch(0.942 0.0054 297.72)',\n card: 'oklch(0.2106 0.0076 300.91)',\n cardForeground: 'oklch(0.942 0.0054 297.72)',\n popover: 'oklch(0.2406 0.0088 300.91)',\n popoverForeground: 'oklch(0.942 0.0054 297.72)',\n primary: 'oklch(0.7323 0.1668 301.69)',\n primaryForeground: 'oklch(0.1756 0.0063 300.91)',\n secondary: 'oklch(0.2106 0.0076 300.91)',\n secondaryForeground: 'oklch(0.942 0.0054 297.72)',\n muted: 'oklch(0.2106 0.0076 300.91)',\n mutedForeground: 'oklch(0.6967 0.0057 298.74)',\n accent: 'oklch(0.2756 0.0101 300.91)',\n accentForeground: 'oklch(0.942 0.0054 297.72)',\n destructive: 'oklch(0.7345 0.1626 25.78)',\n destructiveForeground: 'oklch(0.1756 0.0063 300.91)',\n destructiveSubtle: 'oklch(0.2538 0.0282 312.79)',\n destructiveAction: 'oklch(0.7345 0.1626 25.78)',\n destructiveActionForeground: 'oklch(0.1756 0.0063 300.91)',\n success: 'oklch(0.6951 0.1809 145.62)',\n successForeground: 'oklch(0.1756 0.0063 300.91)',\n successSubtle: 'oklch(0.2483 0.0307 279.17)',\n warning: 'oklch(0.7196 0.1401 79.91)',\n warningForeground: 'oklch(0.1756 0.0063 300.91)',\n warningSubtle: 'oklch(0.2518 0.025 320.37)',\n info: 'oklch(0.7555 0.1155 202.14)',\n infoForeground: 'oklch(0.1756 0.0063 300.91)',\n infoSubtle: 'oklch(0.2568 0.0216 287.08)',\n border: 'oklch(0.3256 0.0057 300.91)',\n input: 'oklch(0.3256 0.0057 300.91)',\n ring: 'oklch(0.7323 0.1668 301.69)',\n sidebar: 'oklch(0.2106 0.0076 300.91)',\n sidebarForeground: 'oklch(0.942 0.0054 297.72)',\n sidebarAccent: 'oklch(0.2756 0.0101 300.91)',\n sidebarBorder: 'oklch(0.3256 0.0057 300.91)',\n sidebarMutedForeground: 'oklch(0.6967 0.0057 298.74)',\n },\n terminal: {\n background: 'oklch(0.1756 0.0063 300.91)',\n foreground: 'oklch(0.942 0.0054 297.72)',\n cursor: 'oklch(0.6182 0.1935 258.33)',\n selection: 'oklch(0.9425 0.0111 243.66)',\n black: 'oklch(0.4243 0.0101 301.11)',\n red: 'oklch(0.7345 0.1626 25.78)',\n green: 'oklch(0.6951 0.1809 145.62)',\n yellow: 'oklch(0.7196 0.1401 79.91)',\n blue: 'oklch(0.7153 0.1518 253.31)',\n magenta: 'oklch(0.7323 0.1668 301.69)',\n cyan: 'oklch(0.7555 0.1155 202.14)',\n white: 'oklch(0.786 0.0087 301.32)',\n brightBlack: 'oklch(0.5627 0.0094 301.22)',\n brightRed: 'oklch(0.8014 0.1134 25.81)',\n brightGreen: 'oklch(0.7717 0.188 145.48)',\n brightYellow: 'oklch(0.7904 0.1386 85.24)',\n brightBlue: 'oklch(0.7857 0.1153 246.66)',\n brightMagenta: 'oklch(0.8005 0.1275 305.86)',\n brightCyan: 'oklch(0.8036 0.1107 201.78)',\n brightWhite: 'oklch(1 0 0)',\n },\n editor: {\n keyword: 'oklch(0.7345 0.1626 25.78)',\n storage: 'oklch(0.7345 0.1626 25.78)',\n string: 'oklch(0.856 0.0768 244.09)',\n number: 'oklch(0.7857 0.1153 246.66)',\n comment: 'oklch(0.6625 0.0181 250.92)',\n function: 'oklch(0.8005 0.1275 305.86)',\n variable: 'oklch(0.9425 0.0111 243.66)',\n parameter: 'oklch(0.7991 0.1412 60.1)',\n property: 'oklch(0.9425 0.0111 243.66)',\n field: 'oklch(0.9425 0.0111 243.66)',\n member: 'oklch(0.9425 0.0111 243.66)',\n type: 'oklch(0.7991 0.1412 60.1)',\n tag: 'oklch(0.8416 0.1641 145.75)',\n attribute: 'oklch(0.7857 0.1153 246.66)',\n operator: 'oklch(0.7345 0.1626 25.78)',\n heading: 'oklch(0.7857 0.1153 246.66)',\n link: 'oklch(0.9425 0.0111 243.66)',\n constant: 'oklch(0.7857 0.1153 246.66)',\n punctuation: 'oklch(0.9425 0.0111 243.66)',\n diffAdd: 'oklch(0.8416 0.1641 145.75)',\n diffDelete: 'oklch(0.8014 0.1134 25.81)',\n diffHunk: 'oklch(0.8005 0.1275 305.86)',\n searchMatch: 'oklch(0.7196 0.1401 79.91)',\n },\n chart: [\n 'oklch(0.7153 0.1518 253.31)',\n 'oklch(0.7323 0.1668 301.69)',\n 'oklch(0.7555 0.1155 202.14)',\n 'oklch(0.6951 0.1809 145.62)',\n 'oklch(0.7196 0.1401 79.91)',\n 'oklch(0.7345 0.1626 25.78)',\n ],\n provenance: { source: 'Adea', url: 'https://github.com/adea-ai/themes', license: 'Apache-2.0' },\n },\n}\n\n/** The accents the default light/dark pair offers beside the presets. */\nexport const DEFAULT_THEME_ACCENTS: readonly AccentPreset[] = [\n {\n id: 'ansi-blue',\n label: 'Blue',\n description: \"The theme's own blue colour.\",\n light: 'oklch(0.4973 0.1518 253.31)',\n dark: 'oklch(0.7153 0.1518 253.31)',\n },\n {\n id: 'ansi-magenta',\n label: 'Magenta',\n description: \"The theme's own magenta colour.\",\n light: 'oklch(0.5143 0.1668 301.69)',\n dark: 'oklch(0.7323 0.1668 301.69)',\n },\n {\n id: 'ansi-cyan',\n label: 'Cyan',\n description: \"The theme's own cyan colour.\",\n light: 'oklch(0.5375 0.1155 202.14)',\n dark: 'oklch(0.7555 0.1155 202.14)',\n },\n {\n id: 'ansi-green',\n label: 'Green',\n description: \"The theme's own green colour.\",\n light: 'oklch(0.4771 0.1809 145.62)',\n dark: 'oklch(0.6951 0.1809 145.62)',\n },\n]\n\n/** Each default's measured `--primary-subtle` expression. */\nexport const DEFAULT_PRIMARY_SUBTLE: Readonly<Record<string, string>> = {\n 'adea-light': 'color-mix(in oklch, var(--primary) 10%, transparent)',\n 'adea-dark': 'color-mix(in oklch, var(--primary) 16%, transparent)',\n}\n\n/** Each default's `--editor-*` ramp held to 4.5:1 on its canvas (`editorRoles: 'floor'`). */\nexport const DEFAULT_FLOOR_EDITOR: Readonly<Record<string, ThemeEditorPalette>> = {\n 'adea-light': {\n keyword: '#cf222e',\n storage: '#cf222e',\n string: '#0a3069',\n number: '#0550ae',\n comment: '#6e7781',\n function: '#8250df',\n variable: '#1f2328',\n parameter: '#953800',\n property: '#1f2328',\n field: '#1f2328',\n member: '#1f2328',\n type: '#953800',\n tag: '#116329',\n attribute: '#0550ae',\n operator: '#cf222e',\n heading: '#0550ae',\n link: '#1f2328',\n constant: '#0550ae',\n punctuation: '#1f2328',\n diffAdd: '#116329',\n diffDelete: '#82071e',\n diffHunk: '#8250df',\n searchMatch: '#825c00',\n },\n 'adea-dark': {\n keyword: '#ff7b72',\n storage: '#ff7b72',\n string: '#a5d6ff',\n number: '#79c0ff',\n comment: '#8b949e',\n function: '#d2a8ff',\n variable: '#e6edf3',\n parameter: '#ffa657',\n property: '#e6edf3',\n field: '#e6edf3',\n member: '#e6edf3',\n type: '#ffa657',\n tag: '#7ee787',\n attribute: '#79c0ff',\n operator: '#ff7b72',\n heading: '#79c0ff',\n link: '#e6edf3',\n constant: '#79c0ff',\n punctuation: '#e6edf3',\n diffAdd: '#7ee787',\n diffDelete: '#ffa198',\n diffHunk: '#d2a8ff',\n searchMatch: '#d29922',\n },\n}\n"],"mappings":";;AASA,IAAa,cAAgF;CAC3F,CAAC,aAAa,MAAM;CACpB,CAAC,wBAAwB,MAAM;CAC/B,CAAC,2BAA2B,MAAM;CAClC,CAAC,cAAc,OAAO;CACtB,CAAC,yBAAyB,OAAO;CACjC,CAAC,4BAA4B,OAAO;CACpC,CAAC,iBAAiB,MAA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f;CACA,aAAa;EACX,SAAS;EACT,SAAS;EACT,QAAQ;EACR,QAAQ;EACR,SAAS;EACT,UAAU;EACV,UAAU;EACV,WAAW;EACX,UAAU;EACV,OAAO;EACP,QAAQ;EACR,MAAM;EACN,KAAK;EACL,WAAW;EACX,UAAU;EACV,SAAS;EACT,MAAM;EACN,UAAU;EACV,aAAa;EACb,SAAS;EACT,YAAY;EACZ,UAAU;EACV,aAAa;CACf;AACF"}
@@ -1,5 +1,7 @@
1
1
  import { type AccentPreset, type AdeaTheme, type AdeaThemeRecord } from '@adea-ai/themes';
2
2
  export { editorRolesHex, syntaxRolesHex } from '@adea-ai/themes';
3
+ /** A VS Code colour theme's syntax roles, resolved as VS Code paints them, for importers. */
4
+ export { opaqueHex, parseVsCodeTheme, vsCodeSyntax, type VsCodeTheme } from '@adea-ai/themes';
3
5
  export { oklchToHex, parseColor as parseOklchColor } from '@adea-ai/themes/oklch';
4
6
  export { shadcnDestructiveProjection, shadcnVariables } from '@adea-ai/themes/adapters/shadcn';
5
7
  export { toXtermTheme } from '@adea-ai/themes/adapters/xterm';
@@ -1 +1 @@
1
- {"version":3,"file":"theme-projection.d.ts","sourceRoot":"","sources":["../../src/lib/theme-projection.ts"],"names":[],"mappings":"AAkBA,OAAO,EAEL,KAAK,YAAY,EACjB,KAAK,SAAS,EACd,KAAK,eAAe,EACrB,MAAM,iBAAiB,CAAA;AAExB,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAA;AAChE,OAAO,EAAE,UAAU,EAAE,UAAU,IAAI,eAAe,EAAE,MAAM,uBAAuB,CAAA;AACjF,OAAO,EAAE,2BAA2B,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAA;AAC9F,OAAO,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAA;AAE7D;;;;;;;GAOG;AACH,wBAAgB,kBAAkB,CAAC,UAAU,EAAE,OAAO,GAAG,MAAM,GAAG,eAAe,CAEhF;AAED;;;;;;GAMG;AACH,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,GAAG,SAAS,YAAY,EAAE,CAEjG"}
1
+ {"version":3,"file":"theme-projection.d.ts","sourceRoot":"","sources":["../../src/lib/theme-projection.ts"],"names":[],"mappings":"AAkBA,OAAO,EAEL,KAAK,YAAY,EACjB,KAAK,SAAS,EACd,KAAK,eAAe,EACrB,MAAM,iBAAiB,CAAA;AAExB,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAA;AAChE,6FAA6F;AAC7F,OAAO,EAAE,SAAS,EAAE,gBAAgB,EAAE,YAAY,EAAE,KAAK,WAAW,EAAE,MAAM,iBAAiB,CAAA;AAC7F,OAAO,EAAE,UAAU,EAAE,UAAU,IAAI,eAAe,EAAE,MAAM,uBAAuB,CAAA;AACjF,OAAO,EAAE,2BAA2B,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAA;AAC9F,OAAO,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAA;AAE7D;;;;;;;GAOG;AACH,wBAAgB,kBAAkB,CAAC,UAAU,EAAE,OAAO,GAAG,MAAM,GAAG,eAAe,CAEhF;AAED;;;;;;GAMG;AACH,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,GAAG,SAAS,YAAY,EAAE,CAEjG"}
@@ -1,4 +1,4 @@
1
- import { editorRolesHex, syntaxRolesHex, themeAccentPresets } from "@adea-ai/themes";
1
+ import { editorRolesHex, opaqueHex, parseVsCodeTheme, syntaxRolesHex, themeAccentPresets, vsCodeSyntax } from "@adea-ai/themes";
2
2
  import { oklchToHex, parseColor as parseOklchColor } from "@adea-ai/themes/oklch";
3
3
  import { shadcnDestructiveProjection, shadcnVariables } from "@adea-ai/themes/adapters/shadcn";
4
4
  import adeaDark from "@adea-ai/themes/themes/adea-dark";
@@ -42,6 +42,6 @@ function defaultThemeRecord(appearance) {
42
42
  function themeAccentsForRecords(light, dark) {
43
43
  return themeAccentPresets(light, dark);
44
44
  }
45
- export { defaultThemeRecord, editorRolesHex, oklchToHex, parseOklchColor, shadcnDestructiveProjection, shadcnVariables, syntaxRolesHex, themeAccentsForRecords, toXtermTheme };
45
+ export { defaultThemeRecord, editorRolesHex, oklchToHex, opaqueHex, parseOklchColor, parseVsCodeTheme, shadcnDestructiveProjection, shadcnVariables, syntaxRolesHex, themeAccentsForRecords, toXtermTheme, vsCodeSyntax };
46
46
 
47
47
  //# sourceMappingURL=theme-projection.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"theme-projection.js","names":[],"sources":["../../src/lib/theme-projection.ts"],"sourcesContent":["/**\n * What a host needs to turn a canonical theme record into the values it stores.\n *\n * Adea imports user themes: a file is validated, repaired toward the readable floor,\n * and projected onto the hex values the host persists. That projection is the\n * catalogue's own (`shadcnVariables`, the xterm adapter, the editor roles), so it is\n * re-exported here and the host depends on this package alone for it, the pin\n * between this package and `@adea-ai/themes` cannot drift from the host's.\n *\n * Its own module, with no catalogue data and no definition of its own beyond the two\n * default records, so that:\n *\n * - a host's start-up path never reaches it (it is for an importer loaded on demand);\n * - `lib/themes.ts`, which holds the 34-theme table, is not the place a host has to\n * import from to get a record-shaped helper.\n */\nimport adeaDark from '@adea-ai/themes/themes/adea-dark'\nimport adeaLight from '@adea-ai/themes/themes/adea-light'\nimport {\n themeAccentPresets,\n type AccentPreset,\n type AdeaTheme,\n type AdeaThemeRecord,\n} from '@adea-ai/themes'\n\nexport { editorRolesHex, syntaxRolesHex } from '@adea-ai/themes'\nexport { oklchToHex, parseColor as parseOklchColor } from '@adea-ai/themes/oklch'\nexport { shadcnDestructiveProjection, shadcnVariables } from '@adea-ai/themes/adapters/shadcn'\nexport { toXtermTheme } from '@adea-ai/themes/adapters/xterm'\n\n/**\n * The default theme of an appearance as a canonical record: the roles an imported\n * theme falls back to for anything its file does not carry.\n *\n * `defaultVariantFor` is the same theme as a runtime variant; a record keeps the\n * catalogue's own roles (`surfaceActive`, `textSubtle`, the ANSI ramp) that a variant\n * folds together.\n */\nexport function defaultThemeRecord(appearance: 'light' | 'dark'): AdeaThemeRecord {\n return appearance === 'dark' ? adeaDark : adeaLight\n}\n\n/**\n * The accents a light/dark pair of records carries itself, beside the presets.\n *\n * For a host whose pair is not in the catalogue, an imported theme, where\n * `themeAccentsFor` (which looks the pair up by id) cannot answer. A slot is offered\n * only when both themes clear the catalogue's accent floors.\n */\nexport function themeAccentsForRecords(light: AdeaTheme, dark: AdeaTheme): readonly AccentPreset[] {\n return themeAccentPresets(light, dark)\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAsCA,SAAgB,mBAAmB,YAA+C;CAChF,OAAO,eAAe,SAAS,WAAW;AAC5C;;;;;;;;AASA,SAAgB,uBAAuB,OAAkB,MAA0C;CACjG,OAAO,mBAAmB,OAAO,IAAI;AACvC"}
1
+ {"version":3,"file":"theme-projection.js","names":[],"sources":["../../src/lib/theme-projection.ts"],"sourcesContent":["/**\n * What a host needs to turn a canonical theme record into the values it stores.\n *\n * Adea imports user themes: a file is validated, repaired toward the readable floor,\n * and projected onto the hex values the host persists. That projection is the\n * catalogue's own (`shadcnVariables`, the xterm adapter, the editor roles), so it is\n * re-exported here and the host depends on this package alone for it, the pin\n * between this package and `@adea-ai/themes` cannot drift from the host's.\n *\n * Its own module, with no catalogue data and no definition of its own beyond the two\n * default records, so that:\n *\n * - a host's start-up path never reaches it (it is for an importer loaded on demand);\n * - `lib/themes.ts`, which holds the 34-theme table, is not the place a host has to\n * import from to get a record-shaped helper.\n */\nimport adeaDark from '@adea-ai/themes/themes/adea-dark'\nimport adeaLight from '@adea-ai/themes/themes/adea-light'\nimport {\n themeAccentPresets,\n type AccentPreset,\n type AdeaTheme,\n type AdeaThemeRecord,\n} from '@adea-ai/themes'\n\nexport { editorRolesHex, syntaxRolesHex } from '@adea-ai/themes'\n/** A VS Code colour theme's syntax roles, resolved as VS Code paints them, for importers. */\nexport { opaqueHex, parseVsCodeTheme, vsCodeSyntax, type VsCodeTheme } from '@adea-ai/themes'\nexport { oklchToHex, parseColor as parseOklchColor } from '@adea-ai/themes/oklch'\nexport { shadcnDestructiveProjection, shadcnVariables } from '@adea-ai/themes/adapters/shadcn'\nexport { toXtermTheme } from '@adea-ai/themes/adapters/xterm'\n\n/**\n * The default theme of an appearance as a canonical record: the roles an imported\n * theme falls back to for anything its file does not carry.\n *\n * `defaultVariantFor` is the same theme as a runtime variant; a record keeps the\n * catalogue's own roles (`surfaceActive`, `textSubtle`, the ANSI ramp) that a variant\n * folds together.\n */\nexport function defaultThemeRecord(appearance: 'light' | 'dark'): AdeaThemeRecord {\n return appearance === 'dark' ? adeaDark : adeaLight\n}\n\n/**\n * The accents a light/dark pair of records carries itself, beside the presets.\n *\n * For a host whose pair is not in the catalogue, an imported theme, where\n * `themeAccentsFor` (which looks the pair up by id) cannot answer. A slot is offered\n * only when both themes clear the catalogue's accent floors.\n */\nexport function themeAccentsForRecords(light: AdeaTheme, dark: AdeaTheme): readonly AccentPreset[] {\n return themeAccentPresets(light, dark)\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAwCA,SAAgB,mBAAmB,YAA+C;CAChF,OAAO,eAAe,SAAS,WAAW;AAC5C;;;;;;;;AASA,SAAgB,uBAAuB,OAAkB,MAA0C;CACjG,OAAO,mBAAmB,OAAO,IAAI;AACvC"}
@@ -83,17 +83,24 @@ export type ThemeTerminalPalette = Record<keyof typeof THEME_TERMINAL_PROPERTIES
83
83
  /** The syntax roles a code view needs. */
84
84
  export declare const THEME_EDITOR_PROPERTIES: {
85
85
  readonly keyword: '--editor-keyword';
86
+ readonly storage: '--editor-storage';
86
87
  readonly string: '--editor-string';
87
88
  readonly number: '--editor-number';
88
89
  readonly comment: '--editor-comment';
89
90
  readonly function: '--editor-function';
90
91
  readonly variable: '--editor-variable';
92
+ readonly parameter: '--editor-parameter';
93
+ readonly property: '--editor-property';
94
+ readonly field: '--editor-field';
95
+ readonly member: '--editor-member';
91
96
  readonly type: '--editor-type';
92
97
  readonly tag: '--editor-tag';
93
98
  readonly attribute: '--editor-attribute';
94
99
  readonly operator: '--editor-operator';
95
100
  readonly heading: '--editor-heading';
96
101
  readonly link: '--editor-link';
102
+ readonly constant: '--editor-constant';
103
+ readonly punctuation: '--editor-punctuation';
97
104
  readonly diffAdd: '--editor-diff-add';
98
105
  readonly diffDelete: '--editor-diff-delete';
99
106
  readonly diffHunk: '--editor-diff-hunk';
@@ -1 +1 @@
1
- {"version":3,"file":"theme-types.d.ts","sourceRoot":"","sources":["../../src/lib/theme-types.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,MAAM,MAAM,eAAe,GAAG,OAAO,GAAG,MAAM,CAAA;AAE9C;;;;;;;;GAQG;AACH,eAAO,MAAM,sBAAsB;aACjC,UAAU,EAAE,cAAc;aAC1B,UAAU,EAAE,cAAc;aAC1B,IAAI,EAAE,QAAQ;aACd,cAAc,EAAE,mBAAmB;aACnC,OAAO,EAAE,WAAW;aACpB,iBAAiB,EAAE,sBAAsB;aACzC,OAAO,EAAE,WAAW;aACpB,iBAAiB,EAAE,sBAAsB;aACzC,SAAS,EAAE,aAAa;aACxB,mBAAmB,EAAE,wBAAwB;aAC7C,KAAK,EAAE,SAAS;aAChB,eAAe,EAAE,oBAAoB;aACrC,MAAM,EAAE,UAAU;aAClB,gBAAgB,EAAE,qBAAqB;aACvC,WAAW,EAAE,eAAe;aAC5B,qBAAqB,EAAE,0BAA0B;aACjD,iBAAiB,EAAE,sBAAsB;aACzC,iBAAiB,EAAE,sBAAsB;aACzC,2BAA2B,EAAE,iCAAiC;aAC9D,OAAO,EAAE,WAAW;aACpB,iBAAiB,EAAE,sBAAsB;aACzC,aAAa,EAAE,kBAAkB;aACjC,OAAO,EAAE,WAAW;aACpB,iBAAiB,EAAE,sBAAsB;aACzC,aAAa,EAAE,kBAAkB;aACjC,IAAI,EAAE,QAAQ;aACd,cAAc,EAAE,mBAAmB;a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,OAAO,CAAA;AAEhD,uCAAuC;AACvC,MAAM,MAAM,uBAAuB,GAAG;IACpC,sFAAsF;IACtF,MAAM,CAAC,EAAE,eAAe,CAAA;CACzB,CAAA;AAED,uEAAuE;AACvE,MAAM,MAAM,qBAAqB,GAAG;IAClC,8EAA8E;IAC9E,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,qFAAqF;IACrF,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,CAAA;AAED,8CAA8C;AAC9C,MAAM,MAAM,SAAS,GAAG;IAAE,YAAY,EAAE,MAAM,CAAC;IAAC,WAAW,EAAE,MAAM,CAAA;CAAE,CAAA"}
@@ -72,17 +72,24 @@ var THEME_TERMINAL_PROPERTIES = {
72
72
  /** The syntax roles a code view needs. */
73
73
  var THEME_EDITOR_PROPERTIES = {
74
74
  keyword: "--editor-keyword",
75
+ storage: "--editor-storage",
75
76
  string: "--editor-string",
76
77
  number: "--editor-number",
77
78
  comment: "--editor-comment",
78
79
  function: "--editor-function",
79
80
  variable: "--editor-variable",
81
+ parameter: "--editor-parameter",
82
+ property: "--editor-property",
83
+ field: "--editor-field",
84
+ member: "--editor-member",
80
85
  type: "--editor-type",
81
86
  tag: "--editor-tag",
82
87
  attribute: "--editor-attribute",
83
88
  operator: "--editor-operator",
84
89
  heading: "--editor-heading",
85
90
  link: "--editor-link",
91
+ constant: "--editor-constant",
92
+ punctuation: "--editor-punctuation",
86
93
  diffAdd: "--editor-diff-add",
87
94
  diffDelete: "--editor-diff-delete",
88
95
  diffHunk: "--editor-diff-hunk",
@@ -1 +1 @@
1
- {"version":3,"file":"theme-types.js","names":[],"sources":["../../src/lib/theme-types.ts"],"sourcesContent":["/**\n * The shapes of the theme system, and the role tables they are built from.\n *\n * Its own module, with no runtime dependency, because everything else depends on it:\n * the catalogue bridge (`lib/themes`), the catalogue-free engine, the provider and\n * the build scripts. `lib/themes` changes with the catalogue; these change only when\n * a role is added, so nothing that only needs a type has to import the catalogue's\n * module to get it.\n */\n\nexport type ThemeAppearance = 'light' | 'dark'\n\n/**\n * The surface and text roles, in shadcn's vocabulary, with the custom property each\n * one paints.\n *\n * Named to match the components, which is why they differ from the catalogue's:\n * these are this system's variable names, and renaming them would mean touching\n * every component in the library for no gain. `destructiveAction` is the\n * contrast-safe solid-action presentation, derived from the canonical error role.\n */\nexport const THEME_COLOR_PROPERTIES = {\n background: '--background',\n foreground: '--foreground',\n card: '--card',\n cardForeground: '--card-foreground',\n popover: '--popover',\n popoverForeground: '--popover-foreground',\n primary: '--primary',\n primaryForeground: '--primary-foreground',\n secondary: '--secondary',\n secondaryForeground: '--secondary-foreground',\n muted: '--muted',\n mutedForeground: '--muted-foreground',\n accent: '--accent',\n accentForeground: '--accent-foreground',\n destructive: '--destructive',\n destructiveForeground: '--destructive-foreground',\n destructiveSubtle: '--destructive-subtle',\n destructiveAction: '--destructive-action',\n destructiveActionForeground: '--destructive-action-foreground',\n success: '--success',\n successForeground: '--success-foreground',\n successSubtle: '--success-subtle',\n warning: '--warning',\n warningForeground: '--warning-foreground',\n warningSubtle: '--warning-subtle',\n info: '--info',\n infoForeground: '--info-foreground',\n infoSubtle: '--info-subtle',\n border: '--border',\n input: '--input',\n ring: '--ring',\n sidebar: '--sidebar',\n sidebarForeground: '--sidebar-foreground',\n sidebarAccent: '--sidebar-accent',\n sidebarBorder: '--sidebar-border',\n sidebarMutedForeground: '--sidebar-muted-foreground',\n} as const\n\nexport type ThemeColors = Record<keyof typeof THEME_COLOR_PROPERTIES, string>\n\n/** The sixteen ANSI colours a terminal needs, plus its cursor and selection. */\nexport const THEME_TERMINAL_PROPERTIES = {\n background: '--terminal-background',\n foreground: '--terminal-foreground',\n cursor: '--terminal-cursor',\n selection: '--terminal-selection',\n black: '--terminal-ansi-black',\n red: '--terminal-ansi-red',\n green: '--terminal-ansi-green',\n yellow: '--terminal-ansi-yellow',\n blue: '--terminal-ansi-blue',\n magenta: '--terminal-ansi-magenta',\n cyan: '--terminal-ansi-cyan',\n white: '--terminal-ansi-white',\n brightBlack: '--terminal-ansi-bright-black',\n brightRed: '--terminal-ansi-bright-red',\n brightGreen: '--terminal-ansi-bright-green',\n brightYellow: '--terminal-ansi-bright-yellow',\n brightBlue: '--terminal-ansi-bright-blue',\n brightMagenta: '--terminal-ansi-bright-magenta',\n brightCyan: '--terminal-ansi-bright-cyan',\n brightWhite: '--terminal-ansi-bright-white',\n} as const\n\nexport type ThemeTerminalPalette = Record<keyof typeof THEME_TERMINAL_PROPERTIES, string>\n\n/** The syntax roles a code view needs. */\nexport const THEME_EDITOR_PROPERTIES = {\n keyword: '--editor-keyword',\n string: '--editor-string',\n number: '--editor-number',\n comment: '--editor-comment',\n function: '--editor-function',\n variable: '--editor-variable',\n type: '--editor-type',\n tag: '--editor-tag',\n attribute: '--editor-attribute',\n operator: '--editor-operator',\n heading: '--editor-heading',\n link: '--editor-link',\n diffAdd: '--editor-diff-add',\n diffDelete: '--editor-diff-delete',\n diffHunk: '--editor-diff-hunk',\n searchMatch: '--editor-search-match',\n} as const\n\nexport type ThemeEditorPalette = Record<keyof typeof THEME_EDITOR_PROPERTIES, string>\n\n/** The roles of `table` read out of `source`, in the table's order. */\nexport function pickRoles<Table extends Readonly<Record<string, string>>>(\n table: Table,\n source: Readonly<Record<keyof Table, string>>\n): Record<keyof Table, string> {\n const picked = {} as Record<keyof Table, string>\n for (const role of Object.keys(table) as (keyof Table)[]) picked[role] = source[role]\n return picked\n}\n\n/** `palette` as the custom properties `table` names, in the table's order. */\nexport function rolesAsProperties<Table extends Readonly<Record<string, string>>>(\n table: Table,\n palette: Readonly<Record<keyof Table, string>>\n): Record<string, string> {\n const properties: Record<string, string> = {}\n for (const [role, property] of Object.entries(table)) properties[property] = palette[role]!\n return properties\n}\n\n/** Where a palette came from, and the terms it is used under. */\nexport type ThemeProvenance = {\n /** The project or person the palette belongs to. */\n source: string\n url: string\n /** An SPDX identifier. Every palette in this catalogue is permissive. */\n license: string\n}\n\nexport type ThemeVariant = {\n /** The `data-theme` value and the id a preference stores. */\n id: string\n /** Groups the variants that came from one project. */\n family: string\n familyLabel: string\n label: string\n appearance: ThemeAppearance\n /** One line, shown in a picker. */\n description: string\n colors: ThemeColors\n terminal: ThemeTerminalPalette\n editor: ThemeEditorPalette\n /** The categorical series, in order. */\n chart: readonly string[]\n provenance: ThemeProvenance\n /**\n * Custom properties written verbatim over `themeCssVariables`, last.\n *\n * For a variant a host built from data it does not control the derivation of,\n * an imported theme whose painted colours must stay exactly what the user\n * imported. The catalogue's own variants never carry it, so the derived roles\n * stay the only source of truth for them.\n */\n tokens?: Readonly<Record<string, string>>\n}\n\n/**\n * Which projection fills the `--editor-*` ramp.\n *\n * - `syntax` (the default) is the catalogue's quiet syntax roles, as `ThemeVariant.editor`\n * holds them: a comment may sit below body-text contrast, because in a code view\n * it is meant to recede.\n * - `floor` holds every editor role to 4.5:1 on the canvas (`editorRolesHex`), for a\n * host that renders code as content rather than as decoration. It is hex, where\n * `syntax` is `oklch()`.\n */\nexport type EditorRolesMode = 'syntax' | 'floor'\n\n/** Options for `themeCssVariables`. */\nexport type ThemeCssVariableOptions = {\n /** The `--editor-*` projection. Default `syntax`: absent, the output is unchanged. */\n editor?: EditorRolesMode\n}\n\n/** What an accent is held to when it is resolved against a surface. */\nexport type AccentVariableOptions = {\n /** The surface the accent must read on: the variant's `colors.background`. */\n background?: string\n /**\n * The contrast floor against `background`. Absent, a preset is painted verbatim\n * and only a custom `#rrggbb` is held to the default floor.\n */\n floor?: number\n /** The variant the accent is applied to, so the tint takes its measured strength. */\n variantId?: string\n}\n\n/** A selection's light and dark theme ids. */\nexport type ThemePair = { lightThemeId: string; darkThemeId: string }\n"],"mappings":";;;;;;;;;;AAqBA,IAAa,yBAAyB;CACpC,YAAY;CACZ,YAAY;CACZ,MAAM;CACN,gBAAgB;CAChB,SAAS;CACT,mBAAmB;CACnB,SAAS;CACT,mBAAmB;CACnB,WAAW;CACX,qBAAqB;CACrB,OAAO;CACP,iBAAiB;CACjB,QAAQ;CACR,kBAAkB;CAClB,aAAa;CACb,uBAAuB;CACvB,mBAAmB;CACnB,mBAAmB;CACnB,6BAA6B;CAC7B,SAAS;CACT,mBAAmB;CACnB,eAAe;CACf,SAAS;CACT,mBAAmB;CACnB,eAAe;CACf,MAAM;CACN,gBAAgB;CAChB,YAAY;CACZ,QAAQ;CACR,OAAO;CACP,MAAM;CACN,SAAS;CACT,mBAAmB;CACnB,eAAe;CACf,eAAe;CACf,wBAAwB;AAC1B;;AAKA,IAAa,4BAA4B;CACvC,YAAY;CACZ,YAAY;CACZ,QAAQ;CACR,WAAW;CACX,OAAO;CACP,KAAK;CACL,OAAO;CACP,QAAQ;CACR,MAAM;CACN,SAAS;CACT,MAAM;CACN,OAAO;CACP,aAAa;CACb,WAAW;CACX,aAAa;CACb,cAAc;CACd,YAAY;CACZ,eAAe;CACf,YAAY;CACZ,aAAa;AACf;;AAKA,IAAa,0BAA0B;CACrC,SAAS;CACT,QAAQ;CACR,QAAQ;CACR,SAAS;CACT,UAAU;CACV,UAAU;CACV,MAAM;CACN,KAAK;CACL,WAAW;CACX,UAAU;CACV,SAAS;CACT,MAAM;CACN,SAAS;CACT,YAAY;CACZ,UAAU;CACV,aAAa;AACf;;AAKA,SAAgB,UACd,OACA,QAC6B;CAC7B,MAAM,SAAS,CAAC;CAChB,KAAK,MAAM,QAAQ,OAAO,KAAK,KAAK,GAAsB,OAAO,QAAQ,OAAO;CAChF,OAAO;AACT;;AAGA,SAAgB,kBACd,OACA,SACwB;CACxB,MAAM,aAAqC,CAAC;CAC5C,KAAK,MAAM,CAAC,MAAM,aAAa,OAAO,QAAQ,KAAK,GAAG,WAAW,YAAY,QAAQ;CACrF,OAAO;AACT"}
1
+ {"version":3,"file":"theme-types.js","names":[],"sources":["../../src/lib/theme-types.ts"],"sourcesContent":["/**\n * The shapes of the theme system, and the role tables they are built from.\n *\n * Its own module, with no runtime dependency, because everything else depends on it:\n * the catalogue bridge (`lib/themes`), the catalogue-free engine, the provider and\n * the build scripts. `lib/themes` changes with the catalogue; these change only when\n * a role is added, so nothing that only needs a type has to import the catalogue's\n * module to get it.\n */\n\nexport type ThemeAppearance = 'light' | 'dark'\n\n/**\n * The surface and text roles, in shadcn's vocabulary, with the custom property each\n * one paints.\n *\n * Named to match the components, which is why they differ from the catalogue's:\n * these are this system's variable names, and renaming them would mean touching\n * every component in the library for no gain. `destructiveAction` is the\n * contrast-safe solid-action presentation, derived from the canonical error role.\n */\nexport const THEME_COLOR_PROPERTIES = {\n background: '--background',\n foreground: '--foreground',\n card: '--card',\n cardForeground: '--card-foreground',\n popover: '--popover',\n popoverForeground: '--popover-foreground',\n primary: '--primary',\n primaryForeground: '--primary-foreground',\n secondary: '--secondary',\n secondaryForeground: '--secondary-foreground',\n muted: '--muted',\n mutedForeground: '--muted-foreground',\n accent: '--accent',\n accentForeground: '--accent-foreground',\n destructive: '--destructive',\n destructiveForeground: '--destructive-foreground',\n destructiveSubtle: '--destructive-subtle',\n destructiveAction: '--destructive-action',\n destructiveActionForeground: '--destructive-action-foreground',\n success: '--success',\n successForeground: '--success-foreground',\n successSubtle: '--success-subtle',\n warning: '--warning',\n warningForeground: '--warning-foreground',\n warningSubtle: '--warning-subtle',\n info: '--info',\n infoForeground: '--info-foreground',\n infoSubtle: '--info-subtle',\n border: '--border',\n input: '--input',\n ring: '--ring',\n sidebar: '--sidebar',\n sidebarForeground: '--sidebar-foreground',\n sidebarAccent: '--sidebar-accent',\n sidebarBorder: '--sidebar-border',\n sidebarMutedForeground: '--sidebar-muted-foreground',\n} as const\n\nexport type ThemeColors = Record<keyof typeof THEME_COLOR_PROPERTIES, string>\n\n/** The sixteen ANSI colours a terminal needs, plus its cursor and selection. */\nexport const THEME_TERMINAL_PROPERTIES = {\n background: '--terminal-background',\n foreground: '--terminal-foreground',\n cursor: '--terminal-cursor',\n selection: '--terminal-selection',\n black: '--terminal-ansi-black',\n red: '--terminal-ansi-red',\n green: '--terminal-ansi-green',\n yellow: '--terminal-ansi-yellow',\n blue: '--terminal-ansi-blue',\n magenta: '--terminal-ansi-magenta',\n cyan: '--terminal-ansi-cyan',\n white: '--terminal-ansi-white',\n brightBlack: '--terminal-ansi-bright-black',\n brightRed: '--terminal-ansi-bright-red',\n brightGreen: '--terminal-ansi-bright-green',\n brightYellow: '--terminal-ansi-bright-yellow',\n brightBlue: '--terminal-ansi-bright-blue',\n brightMagenta: '--terminal-ansi-bright-magenta',\n brightCyan: '--terminal-ansi-bright-cyan',\n brightWhite: '--terminal-ansi-bright-white',\n} as const\n\nexport type ThemeTerminalPalette = Record<keyof typeof THEME_TERMINAL_PROPERTIES, string>\n\n/** The syntax roles a code view needs. */\nexport const THEME_EDITOR_PROPERTIES = {\n keyword: '--editor-keyword',\n storage: '--editor-storage',\n string: '--editor-string',\n number: '--editor-number',\n comment: '--editor-comment',\n function: '--editor-function',\n variable: '--editor-variable',\n parameter: '--editor-parameter',\n property: '--editor-property',\n field: '--editor-field',\n member: '--editor-member',\n type: '--editor-type',\n tag: '--editor-tag',\n attribute: '--editor-attribute',\n operator: '--editor-operator',\n heading: '--editor-heading',\n link: '--editor-link',\n constant: '--editor-constant',\n punctuation: '--editor-punctuation',\n diffAdd: '--editor-diff-add',\n diffDelete: '--editor-diff-delete',\n diffHunk: '--editor-diff-hunk',\n searchMatch: '--editor-search-match',\n} as const\n\nexport type ThemeEditorPalette = Record<keyof typeof THEME_EDITOR_PROPERTIES, string>\n\n/** The roles of `table` read out of `source`, in the table's order. */\nexport function pickRoles<Table extends Readonly<Record<string, string>>>(\n table: Table,\n source: Readonly<Record<keyof Table, string>>\n): Record<keyof Table, string> {\n const picked = {} as Record<keyof Table, string>\n for (const role of Object.keys(table) as (keyof Table)[]) picked[role] = source[role]\n return picked\n}\n\n/** `palette` as the custom properties `table` names, in the table's order. */\nexport function rolesAsProperties<Table extends Readonly<Record<string, string>>>(\n table: Table,\n palette: Readonly<Record<keyof Table, string>>\n): Record<string, string> {\n const properties: Record<string, string> = {}\n for (const [role, property] of Object.entries(table)) properties[property] = palette[role]!\n return properties\n}\n\n/** Where a palette came from, and the terms it is used under. */\nexport type ThemeProvenance = {\n /** The project or person the palette belongs to. */\n source: string\n url: string\n /** An SPDX identifier. Every palette in this catalogue is permissive. */\n license: string\n}\n\nexport type ThemeVariant = {\n /** The `data-theme` value and the id a preference stores. */\n id: string\n /** Groups the variants that came from one project. */\n family: string\n familyLabel: string\n label: string\n appearance: ThemeAppearance\n /** One line, shown in a picker. */\n description: string\n colors: ThemeColors\n terminal: ThemeTerminalPalette\n editor: ThemeEditorPalette\n /** The categorical series, in order. */\n chart: readonly string[]\n provenance: ThemeProvenance\n /**\n * Custom properties written verbatim over `themeCssVariables`, last.\n *\n * For a variant a host built from data it does not control the derivation of,\n * an imported theme whose painted colours must stay exactly what the user\n * imported. The catalogue's own variants never carry it, so the derived roles\n * stay the only source of truth for them.\n */\n tokens?: Readonly<Record<string, string>>\n}\n\n/**\n * Which projection fills the `--editor-*` ramp.\n *\n * - `syntax` (the default) is the catalogue's quiet syntax roles, as `ThemeVariant.editor`\n * holds them: a comment may sit below body-text contrast, because in a code view\n * it is meant to recede.\n * - `floor` holds every editor role to 4.5:1 on the canvas (`editorRolesHex`), for a\n * host that renders code as content rather than as decoration. It is hex, where\n * `syntax` is `oklch()`.\n */\nexport type EditorRolesMode = 'syntax' | 'floor'\n\n/** Options for `themeCssVariables`. */\nexport type ThemeCssVariableOptions = {\n /** The `--editor-*` projection. Default `syntax`: absent, the output is unchanged. */\n editor?: EditorRolesMode\n}\n\n/** What an accent is held to when it is resolved against a surface. */\nexport type AccentVariableOptions = {\n /** The surface the accent must read on: the variant's `colors.background`. */\n background?: string\n /**\n * The contrast floor against `background`. Absent, a preset is painted verbatim\n * and only a custom `#rrggbb` is held to the default floor.\n */\n floor?: number\n /** The variant the accent is applied to, so the tint takes its measured strength. */\n variantId?: string\n}\n\n/** A selection's light and dark theme ids. */\nexport type ThemePair = { lightThemeId: string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M,aAAqC,CAAC;CAC5C,KAAK,MAAM,CAAC,MAAM,aAAa,OAAO,QAAQ,KAAK,GAAG,WAAW,YAAY,QAAQ;CACrF,OAAO;AACT"}
@@ -4,7 +4,7 @@
4
4
  "title": "Appearance Editor",
5
5
  "description": "",
6
6
  "dependencies": [
7
- "@adea-ai/themes@>0.11.7 <0.12.0",
7
+ "@adea-ai/themes@>=0.12.0 <0.13.0",
8
8
  "@kobalte/core@^0.13.14",
9
9
  "lucide-solid@^1.71.0"
10
10
  ],
package/dist/r/lib.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "title": "Class-name and token helpers",
5
5
  "description": "The private helpers the components import: the class-name merge, the variant recipes, the token manifest and the theme bridge. Installed automatically as a peer of any component that needs it.",
6
6
  "dependencies": [
7
- "@adea-ai/themes@>0.11.7 <0.12.0",
7
+ "@adea-ai/themes@>=0.12.0 <0.13.0",
8
8
  "class-variance-authority@^0.7.1",
9
9
  "cn@^0.5.2"
10
10
  ],
@@ -2355,7 +2355,7 @@
2355
2355
  "title": "Appearance Editor",
2356
2356
  "description": "",
2357
2357
  "dependencies": [
2358
- "@adea-ai/themes@>0.11.7 <0.12.0",
2358
+ "@adea-ai/themes@>=0.12.0 <0.13.0",
2359
2359
  "@kobalte/core@^0.13.14",
2360
2360
  "lucide-solid@^1.71.0"
2361
2361
  ],
@@ -3547,7 +3547,7 @@
3547
3547
  "title": "Theming",
3548
3548
  "description": "",
3549
3549
  "dependencies": [
3550
- "@adea-ai/themes@>0.11.7 <0.12.0",
3550
+ "@adea-ai/themes@>=0.12.0 <0.13.0",
3551
3551
  "@kobalte/core@^0.13.14",
3552
3552
  "lucide-solid@^1.71.0"
3553
3553
  ],
@@ -3732,7 +3732,7 @@
3732
3732
  "title": "Class-name and token helpers",
3733
3733
  "description": "The private helpers the components import: the class-name merge, the variant recipes, the token manifest and the theme bridge. Installed automatically as a peer of any component that needs it.",
3734
3734
  "dependencies": [
3735
- "@adea-ai/themes@>0.11.7 <0.12.0",
3735
+ "@adea-ai/themes@>=0.12.0 <0.13.0",
3736
3736
  "class-variance-authority@^0.7.1",
3737
3737
  "cn@^0.5.2"
3738
3738
  ],
@@ -78,7 +78,7 @@ export type ThemeDocumentOptions = {
78
78
  *
79
79
  * With `palette: 'stylesheet'`, `floor` is the one palette write a catalogue
80
80
  * variant still gets: the stylesheet is generated for the default projection, so
81
- * the sixteen `--editor-*` properties are written inline over it. The rest of the
81
+ * the `--editor-*` properties are written inline over it. The rest of the
82
82
  * palette stays in the stylesheet.
83
83
  */
84
84
  editorRoles?: EditorRolesMode
@@ -147,7 +147,7 @@ export type ThemeProviderProps = {
147
147
  /**
148
148
  * The projection behind the `--editor-*` ramp. `syntax` (the default) is the
149
149
  * catalogue's quiet syntax roles, a comment among them deliberately below
150
- * body-text contrast. `floor` holds all sixteen roles to 4.5:1 on the canvas, as
150
+ * body-text contrast. `floor` holds every role to 4.5:1 on the canvas, as
151
151
  * hex, for a host that renders code as content (a diff, a file view) rather than
152
152
  * as decoration.
153
153
  *
@@ -1,5 +1,12 @@
1
1
  import { Polymorphic, type PolymorphicProps } from '@kobalte/core/polymorphic'
2
- import { type ComponentProps, mergeProps, Show, splitProps, type ValidComponent } from 'solid-js'
2
+ import {
3
+ type ComponentProps,
4
+ mergeProps,
5
+ sharedConfig,
6
+ Show,
7
+ splitProps,
8
+ type ValidComponent,
9
+ } from 'solid-js'
3
10
  import { isServer, spread } from 'solid-js/web'
4
11
  import { cva, controlInteractive, controlSize, type VariantProps } from '../../../lib/variants'
5
12
  import { cn } from '../../../lib/utils'
@@ -115,7 +122,9 @@ export function Button<T extends ValidComponent = 'button'>(props: ButtonProps<T
115
122
  // createElement and spread, which is what the compiled JSX would do, so the
116
123
  // module holds no template: `buttonVariants` stays importable in plain Node
117
124
  // (a server renderer reads the class contract from this entry). A server
118
- // render has no document, so it takes the Polymorphic path.
125
+ // render has no document, so it takes the Polymorphic path. So does a button
126
+ // the client hydrates: a fresh element would not adopt the server's node, and
127
+ // its children would look for server nodes that were never claimed.
119
128
  const native = () => {
120
129
  const element = document.createElement('button')
121
130
  spread(
@@ -132,7 +141,7 @@ export function Button<T extends ValidComponent = 'button'>(props: ButtonProps<T
132
141
  }
133
142
  return (
134
143
  <Show
135
- when={!isServer && (local.as === undefined || local.as === 'button')}
144
+ when={!isServer && !sharedConfig.context && (local.as === undefined || local.as === 'button')}
136
145
  fallback={
137
146
  <Polymorphic
138
147
  as={local.as ?? 'button'}
@@ -1,5 +1,5 @@
1
1
  import type { JSX } from 'solid-js'
2
- import { createRoot, mergeProps, splitProps } from 'solid-js'
2
+ import { createRoot, mergeProps, sharedConfig, splitProps } from 'solid-js'
3
3
  import { isServer, spread } from 'solid-js/web'
4
4
 
5
5
  type IconComponent = (props: JSX.SvgSVGAttributes<SVGSVGElement>) => JSX.Element
@@ -31,13 +31,20 @@ const A11Y = /^(aria-|role$|title$)/
31
31
  * drew, so the markup (attributes, class names, path keys) stays exactly
32
32
  * lucide's. Props that change the drawing (`size`, `color`, `strokeWidth`,
33
33
  * `absoluteStrokeWidth`) or a `LucideProvider` are not supported: those callers
34
- * keep the lucide component. On the server the lucide component renders as is.
34
+ * keep the lucide component. On the server, and while the client hydrates, the
35
+ * lucide component renders as is.
35
36
  */
36
37
  export function fastIcon<T extends (props: never) => JSX.Element>(LucideIcon: T): T {
37
38
  const Icon = LucideIcon as unknown as IconComponent
38
39
  const Fast = (props: JSX.SvgSVGAttributes<SVGSVGElement>) => {
39
- // Children (a <title>), drawing props and the server keep lucide's component.
40
- if (isServer || props.children !== undefined || DRAWING.some((key) => key in props))
40
+ // Children (a <title>), drawing props, the server and hydration keep lucide's
41
+ // component: a hydrating icon must claim the server's nodes, not build its own.
42
+ if (
43
+ isServer ||
44
+ sharedConfig.context ||
45
+ props.children !== undefined ||
46
+ DRAWING.some((key) => key in props)
47
+ )
41
48
  return Icon(props)
42
49
  const template = capture(Icon)
43
50
  const [local, rest] = splitProps(props, ['class'])
@@ -115,21 +115,28 @@ export const DEFAULT_VARIANTS: Readonly<Record<'adea-light' | 'adea-dark', Theme
115
115
  brightWhite: 'oklch(0.6658 0.0181 250.92)',
116
116
  },
117
117
  editor: {
118
- keyword: 'oklch(0.5143 0.1668 301.69)',
119
- string: 'oklch(0.4771 0.1809 145.62)',
120
- number: 'oklch(0.5016 0.1401 79.91)',
121
- comment: 'oklch(0.4849 0.0196 251.02)',
122
- function: 'oklch(0.4973 0.1518 253.31)',
123
- variable: 'oklch(0.2785 0.0132 253.04)',
124
- type: 'oklch(0.5375 0.1155 202.14)',
125
- tag: 'oklch(0.5165 0.1626 25.78)',
126
- attribute: 'oklch(0.5016 0.1401 79.91)',
127
- operator: 'oklch(0.2785 0.0132 253.04)',
128
- heading: 'oklch(0.5143 0.1668 301.69)',
129
- link: 'oklch(0.4973 0.1518 253.31)',
130
- diffAdd: 'oklch(0.4771 0.1809 145.62)',
131
- diffDelete: 'oklch(0.5165 0.1626 25.78)',
132
- diffHunk: 'oklch(0.5375 0.1155 202.14)',
118
+ keyword: 'oklch(0.5517 0.2051 24.53)',
119
+ storage: 'oklch(0.5517 0.2051 24.53)',
120
+ string: 'oklch(0.321 0.1084 259.11)',
121
+ number: 'oklch(0.4509 0.1641 258.18)',
122
+ comment: 'oklch(0.5651 0.0189 250.97)',
123
+ function: 'oklch(0.5631 0.2069 294.97)',
124
+ variable: 'oklch(0.2542 0.0111 254.04)',
125
+ parameter: 'oklch(0.4657 0.1371 43.35)',
126
+ property: 'oklch(0.2542 0.0111 254.04)',
127
+ field: 'oklch(0.2542 0.0111 254.04)',
128
+ member: 'oklch(0.2542 0.0111 254.04)',
129
+ type: 'oklch(0.4657 0.1371 43.35)',
130
+ tag: 'oklch(0.4391 0.1179 148.07)',
131
+ attribute: 'oklch(0.4509 0.1641 258.18)',
132
+ operator: 'oklch(0.5517 0.2051 24.53)',
133
+ heading: 'oklch(0.4509 0.1641 258.18)',
134
+ link: 'oklch(0.2542 0.0111 254.04)',
135
+ constant: 'oklch(0.4509 0.1641 258.18)',
136
+ punctuation: 'oklch(0.2542 0.0111 254.04)',
137
+ diffAdd: 'oklch(0.4391 0.1179 148.07)',
138
+ diffDelete: 'oklch(0.387 0.1507 20.77)',
139
+ diffHunk: 'oklch(0.5631 0.2069 294.97)',
133
140
  searchMatch: 'oklch(0.5016 0.1401 79.91)',
134
141
  },
135
142
  chart: [
@@ -211,21 +218,28 @@ export const DEFAULT_VARIANTS: Readonly<Record<'adea-light' | 'adea-dark', Theme
211
218
  brightWhite: 'oklch(1 0 0)',
212
219
  },
213
220
  editor: {
214
- keyword: 'oklch(0.7323 0.1668 301.69)',
215
- string: 'oklch(0.6951 0.1809 145.62)',
216
- number: 'oklch(0.7196 0.1401 79.91)',
217
- comment: 'oklch(0.5627 0.0094 301.22)',
218
- function: 'oklch(0.7153 0.1518 253.31)',
219
- variable: 'oklch(0.786 0.0087 301.32)',
220
- type: 'oklch(0.7555 0.1155 202.14)',
221
- tag: 'oklch(0.7345 0.1626 25.78)',
222
- attribute: 'oklch(0.7196 0.1401 79.91)',
223
- operator: 'oklch(0.786 0.0087 301.32)',
224
- heading: 'oklch(0.7323 0.1668 301.69)',
225
- link: 'oklch(0.7153 0.1518 253.31)',
226
- diffAdd: 'oklch(0.6951 0.1809 145.62)',
227
- diffDelete: 'oklch(0.7345 0.1626 25.78)',
228
- diffHunk: 'oklch(0.7555 0.1155 202.14)',
221
+ keyword: 'oklch(0.7345 0.1626 25.78)',
222
+ storage: 'oklch(0.7345 0.1626 25.78)',
223
+ string: 'oklch(0.856 0.0768 244.09)',
224
+ number: 'oklch(0.7857 0.1153 246.66)',
225
+ comment: 'oklch(0.6625 0.0181 250.92)',
226
+ function: 'oklch(0.8005 0.1275 305.86)',
227
+ variable: 'oklch(0.9425 0.0111 243.66)',
228
+ parameter: 'oklch(0.7991 0.1412 60.1)',
229
+ property: 'oklch(0.9425 0.0111 243.66)',
230
+ field: 'oklch(0.9425 0.0111 243.66)',
231
+ member: 'oklch(0.9425 0.0111 243.66)',
232
+ type: 'oklch(0.7991 0.1412 60.1)',
233
+ tag: 'oklch(0.8416 0.1641 145.75)',
234
+ attribute: 'oklch(0.7857 0.1153 246.66)',
235
+ operator: 'oklch(0.7345 0.1626 25.78)',
236
+ heading: 'oklch(0.7857 0.1153 246.66)',
237
+ link: 'oklch(0.9425 0.0111 243.66)',
238
+ constant: 'oklch(0.7857 0.1153 246.66)',
239
+ punctuation: 'oklch(0.9425 0.0111 243.66)',
240
+ diffAdd: 'oklch(0.8416 0.1641 145.75)',
241
+ diffDelete: 'oklch(0.8014 0.1134 25.81)',
242
+ diffHunk: 'oklch(0.8005 0.1275 305.86)',
229
243
  searchMatch: 'oklch(0.7196 0.1401 79.91)',
230
244
  },
231
245
  chart: [
@@ -281,39 +295,53 @@ export const DEFAULT_PRIMARY_SUBTLE: Readonly<Record<string, string>> = {
281
295
  /** Each default's `--editor-*` ramp held to 4.5:1 on its canvas (`editorRoles: 'floor'`). */
282
296
  export const DEFAULT_FLOOR_EDITOR: Readonly<Record<string, ThemeEditorPalette>> = {
283
297
  'adea-light': {
284
- keyword: '#7a49b5',
285
- string: '#00711f',
286
- number: '#825c00',
287
- comment: '#57606a',
288
- function: '#0662b5',
289
- variable: '#24292f',
290
- type: '#007d85',
291
- tag: '#b23533',
292
- attribute: '#825c00',
293
- operator: '#24292f',
294
- heading: '#7a49b5',
295
- link: '#0662b5',
296
- diffAdd: '#00711f',
297
- diffDelete: '#b23533',
298
- diffHunk: '#007d85',
298
+ keyword: '#cf222e',
299
+ storage: '#cf222e',
300
+ string: '#0a3069',
301
+ number: '#0550ae',
302
+ comment: '#6e7781',
303
+ function: '#8250df',
304
+ variable: '#1f2328',
305
+ parameter: '#953800',
306
+ property: '#1f2328',
307
+ field: '#1f2328',
308
+ member: '#1f2328',
309
+ type: '#953800',
310
+ tag: '#116329',
311
+ attribute: '#0550ae',
312
+ operator: '#cf222e',
313
+ heading: '#0550ae',
314
+ link: '#1f2328',
315
+ constant: '#0550ae',
316
+ punctuation: '#1f2328',
317
+ diffAdd: '#116329',
318
+ diffDelete: '#82071e',
319
+ diffHunk: '#8250df',
299
320
  searchMatch: '#825c00',
300
321
  },
301
322
  'adea-dark': {
302
- keyword: '#bc8cff',
303
- string: '#3fb950',
304
- number: '#d29922',
305
- comment: '#7d7b81',
306
- function: '#58a6ff',
307
- variable: '#bab8be',
308
- type: '#39c5cf',
309
- tag: '#ff7b72',
310
- attribute: '#d29922',
311
- operator: '#bab8be',
312
- heading: '#bc8cff',
313
- link: '#58a6ff',
314
- diffAdd: '#3fb950',
315
- diffDelete: '#ff7b72',
316
- diffHunk: '#39c5cf',
323
+ keyword: '#ff7b72',
324
+ storage: '#ff7b72',
325
+ string: '#a5d6ff',
326
+ number: '#79c0ff',
327
+ comment: '#8b949e',
328
+ function: '#d2a8ff',
329
+ variable: '#e6edf3',
330
+ parameter: '#ffa657',
331
+ property: '#e6edf3',
332
+ field: '#e6edf3',
333
+ member: '#e6edf3',
334
+ type: '#ffa657',
335
+ tag: '#7ee787',
336
+ attribute: '#79c0ff',
337
+ operator: '#ff7b72',
338
+ heading: '#79c0ff',
339
+ link: '#e6edf3',
340
+ constant: '#79c0ff',
341
+ punctuation: '#e6edf3',
342
+ diffAdd: '#7ee787',
343
+ diffDelete: '#ffa198',
344
+ diffHunk: '#d2a8ff',
317
345
  searchMatch: '#d29922',
318
346
  },
319
347
  }
@@ -24,6 +24,8 @@ import {
24
24
  } from '@adea-ai/themes'
25
25
 
26
26
  export { editorRolesHex, syntaxRolesHex } from '@adea-ai/themes'
27
+ /** A VS Code colour theme's syntax roles, resolved as VS Code paints them, for importers. */
28
+ export { opaqueHex, parseVsCodeTheme, vsCodeSyntax, type VsCodeTheme } from '@adea-ai/themes'
27
29
  export { oklchToHex, parseColor as parseOklchColor } from '@adea-ai/themes/oklch'
28
30
  export { shadcnDestructiveProjection, shadcnVariables } from '@adea-ai/themes/adapters/shadcn'
29
31
  export { toXtermTheme } from '@adea-ai/themes/adapters/xterm'
@@ -89,17 +89,24 @@ export type ThemeTerminalPalette = Record<keyof typeof THEME_TERMINAL_PROPERTIES
89
89
  /** The syntax roles a code view needs. */
90
90
  export const THEME_EDITOR_PROPERTIES = {
91
91
  keyword: '--editor-keyword',
92
+ storage: '--editor-storage',
92
93
  string: '--editor-string',
93
94
  number: '--editor-number',
94
95
  comment: '--editor-comment',
95
96
  function: '--editor-function',
96
97
  variable: '--editor-variable',
98
+ parameter: '--editor-parameter',
99
+ property: '--editor-property',
100
+ field: '--editor-field',
101
+ member: '--editor-member',
97
102
  type: '--editor-type',
98
103
  tag: '--editor-tag',
99
104
  attribute: '--editor-attribute',
100
105
  operator: '--editor-operator',
101
106
  heading: '--editor-heading',
102
107
  link: '--editor-link',
108
+ constant: '--editor-constant',
109
+ punctuation: '--editor-punctuation',
103
110
  diffAdd: '--editor-diff-add',
104
111
  diffDelete: '--editor-diff-delete',
105
112
  diffHunk: '--editor-diff-hunk',