@link-foundation/ui-themes 0.0.0-stage → 0.1.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 (110) hide show
  1. package/LICENSE +24 -0
  2. package/README.md +121 -2
  3. package/package.json +52 -4
  4. package/src/classic/catalog.js +193 -0
  5. package/src/classic/effect-governor.js +199 -0
  6. package/src/classic/effect-quality.js +76 -0
  7. package/src/classic/frame-color.js +27 -0
  8. package/src/classic/frame-css-controls.js +65 -0
  9. package/src/classic/frame-css-corners.js +138 -0
  10. package/src/classic/frame-css-edge-geometry.js +74 -0
  11. package/src/classic/frame-css-edges.js +99 -0
  12. package/src/classic/frame-css-enums.js +65 -0
  13. package/src/classic/frame-css-geometry.js +133 -0
  14. package/src/classic/frame-css-modes.js +45 -0
  15. package/src/classic/frame-css-states.js +85 -0
  16. package/src/classic/frame-css-values.js +156 -0
  17. package/src/classic/frame-css.js +232 -0
  18. package/src/classic/frame-geometry.js +189 -0
  19. package/src/classic/frame-schema.js +328 -0
  20. package/src/classic/frame-vocabulary.js +10 -0
  21. package/src/classic/frames.d.ts +143 -0
  22. package/src/classic/frames.js +77 -0
  23. package/src/classic/material-visibility.js +94 -0
  24. package/src/classic/materials.d.ts +133 -0
  25. package/src/classic/materials.js +139 -0
  26. package/src/classic/optical-css.js +47 -0
  27. package/src/classic/optics.js +107 -0
  28. package/src/classic/refraction.js +145 -0
  29. package/src/fluent2/brand-aliases.js +157 -0
  30. package/src/fluent2/brand.js +84 -0
  31. package/src/fluent2/names.js +31 -0
  32. package/src/index.d.ts +54 -0
  33. package/src/index.js +79 -0
  34. package/src/mapping.js +135 -0
  35. package/src/material3/mapping.js +18 -0
  36. package/src/material3/mui.js +128 -0
  37. package/src/material3/seed.js +144 -0
  38. package/themes/base/theme.lino +35 -0
  39. package/themes/classic/README.md +90 -0
  40. package/themes/classic/deepcase/2025.lino +156 -0
  41. package/themes/classic/deepcase/classic.lino +86 -0
  42. package/themes/classic/deepcase/dark.lino +87 -0
  43. package/themes/classic/deepcase/deepcase-0.1.lino +63 -0
  44. package/themes/classic/deepcase/handler-windows.lino +22 -0
  45. package/themes/classic/deepcase/landing.lino +60 -0
  46. package/themes/classic/deepcase/perception.lino +88 -0
  47. package/themes/classic/formal-ai/chat-bubbles.lino +40 -0
  48. package/themes/classic/formal-ai/chat-cards.lino +40 -0
  49. package/themes/classic/formal-ai/chat-compact.lino +40 -0
  50. package/themes/classic/formal-ai/composer.lino +132 -0
  51. package/themes/classic/formal-ai/fa-contrast.lino +79 -0
  52. package/themes/classic/formal-ai/fa-flat.lino +79 -0
  53. package/themes/classic/formal-ai/fa-glass.lino +79 -0
  54. package/themes/classic/formal-ai/fa-material.lino +79 -0
  55. package/themes/classic/immortality/arwes.lino +59 -0
  56. package/themes/classic/immortality/palettes.lino +968 -0
  57. package/themes/classic/immortality/poseidon.lino +59 -0
  58. package/themes/classic/immortality/quiet.lino +59 -0
  59. package/themes/classic/konard/futuristic.lino +89 -0
  60. package/themes/classic/konard/glass.lino +89 -0
  61. package/themes/classic/konard/liquid.lino +89 -0
  62. package/themes/classic/meta-sovereign/chat-signal.lino +68 -0
  63. package/themes/classic/meta-sovereign/chat-t3.lino +68 -0
  64. package/themes/classic/meta-sovereign/chat-telegram.lino +74 -0
  65. package/themes/classic/meta-sovereign/chat-whatsapp.lino +68 -0
  66. package/themes/fluent2/LICENSE.txt +15 -0
  67. package/themes/fluent2/brand-aliases.lino +101 -0
  68. package/themes/fluent2/colors-dark.lino +1124 -0
  69. package/themes/fluent2/colors-high-contrast.lino +1109 -0
  70. package/themes/fluent2/colors.lino +1489 -0
  71. package/themes/fluent2/fluent-mapping.lino +120 -0
  72. package/themes/fluent2/motion-dark.lino +62 -0
  73. package/themes/fluent2/motion-high-contrast.lino +62 -0
  74. package/themes/fluent2/motion.lino +70 -0
  75. package/themes/fluent2/shadow-dark.lino +50 -0
  76. package/themes/fluent2/shadow-high-contrast.lino +50 -0
  77. package/themes/fluent2/shadow.lino +49 -0
  78. package/themes/fluent2/shape-dark.lino +47 -0
  79. package/themes/fluent2/shape-high-contrast.lino +47 -0
  80. package/themes/fluent2/shape.lino +46 -0
  81. package/themes/fluent2/spacing-dark.lino +68 -0
  82. package/themes/fluent2/spacing-high-contrast.lino +68 -0
  83. package/themes/fluent2/spacing.lino +67 -0
  84. package/themes/fluent2/styles.lino +511 -0
  85. package/themes/fluent2/templates.lino +60 -0
  86. package/themes/fluent2/theme.lino +31 -0
  87. package/themes/fluent2/type-dark.lino +83 -0
  88. package/themes/fluent2/type-high-contrast.lino +83 -0
  89. package/themes/fluent2/type.lino +82 -0
  90. package/themes/hig/colors.lino +54 -0
  91. package/themes/hig/materials.lino +7 -0
  92. package/themes/hig/motion.lino +13 -0
  93. package/themes/hig/shape.lino +5 -0
  94. package/themes/hig/spacing.lino +11 -0
  95. package/themes/hig/styles.lino +143 -0
  96. package/themes/hig/swiftui-mapping.lino +80 -0
  97. package/themes/hig/templates.lino +36 -0
  98. package/themes/hig/theme.lino +3 -0
  99. package/themes/hig/type.lino +26 -0
  100. package/themes/hig-ios/theme.lino +5 -0
  101. package/themes/hig-macos/theme.lino +5 -0
  102. package/themes/material3/colors.lino +320 -0
  103. package/themes/material3/elevation.lino +110 -0
  104. package/themes/material3/motion.lino +102 -0
  105. package/themes/material3/mui-mapping.lino +216 -0
  106. package/themes/material3/shape.lino +16 -0
  107. package/themes/material3/styles.lino +498 -0
  108. package/themes/material3/templates.lino +55 -0
  109. package/themes/material3/theme.lino +7 -0
  110. package/themes/material3/type.lino +336 -0
@@ -0,0 +1,144 @@
1
+ import { formatLinks } from '@link-foundation/ui-core';
2
+ import {
3
+ Hct,
4
+ argbFromHex,
5
+ hexFromArgb,
6
+ SchemeTonalSpot,
7
+ SchemeVibrant,
8
+ SchemeNeutral,
9
+ } from '@material/material-color-utilities';
10
+
11
+ const variants = {
12
+ 'tonal-spot': SchemeTonalSpot,
13
+ vibrant: SchemeVibrant,
14
+ neutral: SchemeNeutral,
15
+ };
16
+ // DynamicScheme getters are the authoritative MCU role values (2021 M3 spec).
17
+ const roles = [
18
+ 'primary',
19
+ 'onPrimary',
20
+ 'primaryContainer',
21
+ 'onPrimaryContainer',
22
+ 'inversePrimary',
23
+ 'secondary',
24
+ 'onSecondary',
25
+ 'secondaryContainer',
26
+ 'onSecondaryContainer',
27
+ 'tertiary',
28
+ 'onTertiary',
29
+ 'tertiaryContainer',
30
+ 'onTertiaryContainer',
31
+ 'error',
32
+ 'onError',
33
+ 'errorContainer',
34
+ 'onErrorContainer',
35
+ 'background',
36
+ 'onBackground',
37
+ 'surface',
38
+ 'onSurface',
39
+ 'surfaceTint',
40
+ 'surfaceVariant',
41
+ 'onSurfaceVariant',
42
+ 'surfaceDim',
43
+ 'surfaceBright',
44
+ 'surfaceContainerLowest',
45
+ 'surfaceContainerLow',
46
+ 'surfaceContainer',
47
+ 'surfaceContainerHigh',
48
+ 'surfaceContainerHighest',
49
+ 'inverseSurface',
50
+ 'inverseOnSurface',
51
+ 'outline',
52
+ 'outlineVariant',
53
+ 'shadow',
54
+ 'scrim',
55
+ 'primaryFixed',
56
+ 'primaryFixedDim',
57
+ 'onPrimaryFixed',
58
+ 'onPrimaryFixedVariant',
59
+ 'secondaryFixed',
60
+ 'secondaryFixedDim',
61
+ 'onSecondaryFixed',
62
+ 'onSecondaryFixedVariant',
63
+ 'tertiaryFixed',
64
+ 'tertiaryFixedDim',
65
+ 'onTertiaryFixed',
66
+ 'onTertiaryFixedVariant',
67
+ ];
68
+ const kebab = (value) => value.replace(/[A-Z]/gu, (c) => `-${c.toLowerCase()}`);
69
+ const colorTokens = (scheme) =>
70
+ roles.map((role) => [
71
+ 'token',
72
+ `color.${kebab(role)}`,
73
+ hexFromArgb(scheme[role]),
74
+ ['m3', `md.sys.color.${kebab(role)}`],
75
+ ]);
76
+ const pairs = [
77
+ ['on-primary', 'primary'],
78
+ ['on-primary-container', 'primary-container'],
79
+ ['on-secondary', 'secondary'],
80
+ ['on-secondary-container', 'secondary-container'],
81
+ ['on-tertiary', 'tertiary'],
82
+ ['on-tertiary-container', 'tertiary-container'],
83
+ ['on-error', 'error'],
84
+ ['on-error-container', 'error-container'],
85
+ ['on-background', 'background'],
86
+ ['on-surface', 'surface'],
87
+ ['on-surface-variant', 'surface-variant'],
88
+ ['inverse-on-surface', 'inverse-surface'],
89
+ ...['lowest', 'low', '', 'high', 'highest'].map((level) => [
90
+ 'on-surface',
91
+ `surface-container${level ? `-${level}` : ''}`,
92
+ ]),
93
+ ...['primary', 'secondary', 'tertiary'].flatMap((role) => [
94
+ [`on-${role}-fixed`, `${role}-fixed`],
95
+ [`on-${role}-fixed-variant`, `${role}-fixed-dim`],
96
+ ]),
97
+ ];
98
+
99
+ /**
100
+ * A complete colour scheme inheriting the Material 3 scales and controls.
101
+ * @param {string} seed hex colour
102
+ * @param {{id?: string, contrast?: number, variant?: 'tonal-spot'|'vibrant'|'neutral'}} [options]
103
+ * @returns {string} LiNo theme, resolved alongside material3 by the theme engine
104
+ */
105
+ export function materialThemeFromSeed(seed, options = {}) {
106
+ if (
107
+ typeof seed !== 'string' ||
108
+ !/^#(?:[\da-f]{6}|[\da-f]{3})$/iu.test(seed)
109
+ ) {
110
+ throw new TypeError('Seed must be a three- or six-digit hex colour');
111
+ }
112
+ const {
113
+ id = 'material3-seed',
114
+ contrast = 0,
115
+ variant = 'tonal-spot',
116
+ } = options;
117
+ if (
118
+ !Object.hasOwn(variants, variant) ||
119
+ !Number.isFinite(contrast) ||
120
+ contrast < -1 ||
121
+ contrast > 1
122
+ ) {
123
+ throw new RangeError('Unknown variant or contrast outside [-1, 1]');
124
+ }
125
+ const expanded =
126
+ seed.length === 4
127
+ ? `#${[...seed.slice(1)].map((c) => c + c).join('')}`
128
+ : seed;
129
+ const source = Hct.fromInt(argbFromHex(expanded));
130
+ const Scheme = variants[variant];
131
+ return formatLinks([
132
+ {
133
+ id,
134
+ values: [
135
+ 'theme',
136
+ ['extends', 'material3'],
137
+ ...colorTokens(new Scheme(source, false, contrast)),
138
+ ...pairs.map(([on, fill]) => ['pair', `color.${on}`, `color.${fill}`]),
139
+ ['mode', 'dark', ...colorTokens(new Scheme(source, true, contrast))],
140
+ ['mode', 'high-contrast', ...colorTokens(new Scheme(source, false, 1))],
141
+ ],
142
+ },
143
+ ]);
144
+ }
@@ -0,0 +1,35 @@
1
+ base: theme
2
+ token color.primary '#3A5BA0'
3
+ token color.on-primary '#FFFFFF'
4
+ token color.surface '#FFFFFF'
5
+ token color.on-surface '#1B1B1F'
6
+ token color.on-surface-variant
7
+ token color.on-surface
8
+ token color.outline '#727278'
9
+ token motion.duration.short 150ms
10
+ pair color.on-primary color.primary
11
+ pair color.on-surface color.surface
12
+ mode dark
13
+ token color.primary '#AFC6FF'
14
+ token color.on-primary '#0A2F6B'
15
+ token color.surface '#121316'
16
+ token color.on-surface '#E3E2E6'
17
+ token color.outline '#94949B'
18
+ mode high-contrast
19
+ token color.primary '#0B2A66'
20
+ motion reduced
21
+ token motion.duration.short 0ms
22
+ template button
23
+ part root
24
+ kind box
25
+ part icon
26
+ kind icon
27
+ part label
28
+ kind text
29
+ part indicator
30
+ kind box
31
+ style
32
+ selector
33
+ type button
34
+ state hover
35
+ opacity 0.92
@@ -0,0 +1,90 @@
1
+ # Classic theme packs
2
+
3
+ Skins extend `base`; chat and composer axes inherit their enclosing skin. Load a pack with `loadTheme(id)` and apply it with
4
+ `theme` on any subtree. The same document can switch themes without remounting.
5
+ Chat and composer axes use separate nested boundaries. No fonts are bundled.
6
+
7
+ ## Provenance
8
+
9
+ Licences verified using the GitHub LICENSE API on 2026-11-03.
10
+ Immortality data is pinned to `16a6172c38fc120133485f805c49d980b9850bc4`: IDs and preset axes
11
+ come from `app/src/settings.ts`; actual colour values are in `app/src/styles.css`.
12
+ Deepcase values follow sections 6–7 of the repository case study. Formal-ai and
13
+ meta-sovereign both carry Unlicense LICENSE files; chat tokens reuse the
14
+ existing licensed chat-kit data. Konard source code was not read or copied.
15
+
16
+ | Pack | Source repository | File or issue | Source licence | Method |
17
+ | ------------------------- | ------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------- | -------------- | ------------------------------ |
18
+ | `deepcase-classic` | [deep-foundation/deepcase](https://github.com/deep-foundation/deepcase) | [source](https://github.com/deep-foundation/deepcase/blob/main/imports/theme/theme.tsx) | Unlicense | ported |
19
+ | `deepcase-dark` | [deep-foundation/deepcase](https://github.com/deep-foundation/deepcase) | [source](https://github.com/deep-foundation/deepcase/blob/main/imports/theme/theme.tsx) | Unlicense | ported |
20
+ | `deepcase-perception` | [deep-foundation/perception-imports](https://github.com/deep-foundation/perception-imports) | [source](https://github.com/deep-foundation/perception-imports/blob/main/imports/theme.tsx) | Unlicense | ported |
21
+ | `deepcase-2025` | [deep-foundation/deep](https://github.com/deep-foundation/deep) | [source](https://github.com/deep-foundation/deep/blob/main/src/theme.tsx) | Unlicense | ported |
22
+ | `deepcase-landing` | [deep-foundation/deepcase.github.io](https://github.com/deep-foundation/deepcase.github.io) | [source](https://github.com/deep-foundation/deepcase.github.io/blob/main/imports/deep-case-frame/deep-frame.tsx) | Unlicense | ported |
23
+ | `glass` | [konard/konard.github.io](https://github.com/konard/konard.github.io) | [source](https://github.com/konard/konard.github.io/issues/47) | None | re-implemented, no code copied |
24
+ | `liquid` | [konard/konard.github.io](https://github.com/konard/konard.github.io) | [source](https://github.com/konard/konard.github.io/issues/47) | None | re-implemented, no code copied |
25
+ | `futuristic` | [konard/konard.github.io](https://github.com/konard/konard.github.io) | [source](https://github.com/konard/konard.github.io/issues/47) | None | re-implemented, no code copied |
26
+ | `immortality-mission` | [konard/immortality](https://github.com/konard/immortality) | [source](https://github.com/konard/immortality/blob/16a6172c38fc120133485f805c49d980b9850bc4/app/src/settings.ts) | Unlicense | ported |
27
+ | `immortality-glitchy` | [konard/immortality](https://github.com/konard/immortality) | [source](https://github.com/konard/immortality/blob/16a6172c38fc120133485f805c49d980b9850bc4/app/src/settings.ts) | Unlicense | ported |
28
+ | `immortality-amber` | [konard/immortality](https://github.com/konard/immortality) | [source](https://github.com/konard/immortality/blob/16a6172c38fc120133485f805c49d980b9850bc4/app/src/settings.ts) | Unlicense | ported |
29
+ | `immortality-monochrome` | [konard/immortality](https://github.com/konard/immortality) | [source](https://github.com/konard/immortality/blob/16a6172c38fc120133485f805c49d980b9850bc4/app/src/settings.ts) | Unlicense | ported |
30
+ | `immortality-tron` | [konard/immortality](https://github.com/konard/immortality) | [source](https://github.com/konard/immortality/blob/16a6172c38fc120133485f805c49d980b9850bc4/app/src/settings.ts) | Unlicense | ported |
31
+ | `immortality-ares` | [konard/immortality](https://github.com/konard/immortality) | [source](https://github.com/konard/immortality/blob/16a6172c38fc120133485f805c49d980b9850bc4/app/src/settings.ts) | Unlicense | ported |
32
+ | `immortality-clu` | [konard/immortality](https://github.com/konard/immortality) | [source](https://github.com/konard/immortality/blob/16a6172c38fc120133485f805c49d980b9850bc4/app/src/settings.ts) | Unlicense | ported |
33
+ | `immortality-athena` | [konard/immortality](https://github.com/konard/immortality) | [source](https://github.com/konard/immortality/blob/16a6172c38fc120133485f805c49d980b9850bc4/app/src/settings.ts) | Unlicense | ported |
34
+ | `immortality-aphrodite` | [konard/immortality](https://github.com/konard/immortality) | [source](https://github.com/konard/immortality/blob/16a6172c38fc120133485f805c49d980b9850bc4/app/src/settings.ts) | Unlicense | ported |
35
+ | `immortality-poseidon` | [konard/immortality](https://github.com/konard/immortality) | [source](https://github.com/konard/immortality/blob/16a6172c38fc120133485f805c49d980b9850bc4/app/src/settings.ts) | Unlicense | ported |
36
+ | `immortality-soulextract` | [konard/immortality](https://github.com/konard/immortality) | [source](https://github.com/konard/immortality/blob/16a6172c38fc120133485f805c49d980b9850bc4/app/src/settings.ts) | Unlicense | ported |
37
+ | `immortality-matrix` | [konard/immortality](https://github.com/konard/immortality) | [source](https://github.com/konard/immortality/blob/16a6172c38fc120133485f805c49d980b9850bc4/app/src/settings.ts) | Unlicense | ported |
38
+ | `poseidon` | [konard/immortality](https://github.com/konard/immortality) | [source](https://github.com/konard/immortality/blob/16a6172c38fc120133485f805c49d980b9850bc4/app/src/settings.ts) | Unlicense | ported |
39
+ | `arwes` | [konard/immortality](https://github.com/konard/immortality) | [source](https://github.com/konard/immortality/blob/16a6172c38fc120133485f805c49d980b9850bc4/app/src/settings.ts) | Unlicense | ported |
40
+ | `quiet` | [konard/immortality](https://github.com/konard/immortality) | [source](https://github.com/konard/immortality/blob/16a6172c38fc120133485f805c49d980b9850bc4/app/src/settings.ts) | Unlicense | ported |
41
+ | `fa-flat` | [link-assistant/formal-ai](https://github.com/link-assistant/formal-ai) | [source](https://github.com/link-assistant/formal-ai/issues/110) | Unlicense | ported |
42
+ | `fa-glass` | [link-assistant/formal-ai](https://github.com/link-assistant/formal-ai) | [source](https://github.com/link-assistant/formal-ai/issues/110) | Unlicense | ported |
43
+ | `fa-material` | [link-assistant/formal-ai](https://github.com/link-assistant/formal-ai) | [source](https://github.com/link-assistant/formal-ai/issues/110) | Unlicense | ported |
44
+ | `fa-contrast` | [link-assistant/formal-ai](https://github.com/link-assistant/formal-ai) | [source](https://github.com/link-assistant/formal-ai/issues/110) | Unlicense | ported |
45
+ | `chat-cards` | [link-assistant/formal-ai](https://github.com/link-assistant/formal-ai) | [source](https://github.com/link-assistant/formal-ai/issues/110) | Unlicense | ported |
46
+ | `chat-compact` | [link-assistant/formal-ai](https://github.com/link-assistant/formal-ai) | [source](https://github.com/link-assistant/formal-ai/issues/110) | Unlicense | ported |
47
+ | `chat-bubbles` | [link-assistant/formal-ai](https://github.com/link-assistant/formal-ai) | [source](https://github.com/link-assistant/formal-ai/issues/110) | Unlicense | ported |
48
+ | `composer-flat` | [link-assistant/formal-ai](https://github.com/link-assistant/formal-ai) | [source](https://github.com/link-assistant/formal-ai/issues/110) | Unlicense | ported |
49
+ | `composer-glass-soft` | [link-assistant/formal-ai](https://github.com/link-assistant/formal-ai) | [source](https://github.com/link-assistant/formal-ai/issues/110) | Unlicense | ported |
50
+ | `composer-glass-clear` | [link-assistant/formal-ai](https://github.com/link-assistant/formal-ai) | [source](https://github.com/link-assistant/formal-ai/issues/110) | Unlicense | ported |
51
+ | `composer-bubble` | [link-assistant/formal-ai](https://github.com/link-assistant/formal-ai) | [source](https://github.com/link-assistant/formal-ai/issues/110) | Unlicense | ported |
52
+ | `chat-t3` | [link-foundation/meta-sovereign](https://github.com/link-foundation/meta-sovereign) | [source](https://github.com/link-foundation/meta-sovereign/blob/main/js/src/web/app.css) | Unlicense | ported |
53
+ | `chat-telegram` | [link-foundation/meta-sovereign](https://github.com/link-foundation/meta-sovereign) | [source](https://github.com/link-foundation/meta-sovereign/blob/main/js/src/web/app.css) | Unlicense | ported |
54
+ | `chat-whatsapp` | [link-foundation/meta-sovereign](https://github.com/link-foundation/meta-sovereign) | [source](https://github.com/link-foundation/meta-sovereign/blob/main/js/src/web/app.css) | Unlicense | ported |
55
+ | `chat-signal` | [link-foundation/meta-sovereign](https://github.com/link-foundation/meta-sovereign) | [source](https://github.com/link-foundation/meta-sovereign/blob/main/js/src/web/app.css) | Unlicense | ported |
56
+
57
+ The chrome documents `deepcase-0.1.lino` and `handler-windows.lino` are independently
58
+ implemented from the Unlicense DeepCase references. Landing tokens exclude tilt
59
+ animation. Graph rules define stroke, arrow preference and per-value colours;
60
+ graph rendering and interaction remain the responsibility of graph components.
61
+
62
+ The corner generator at `src/classic/frames.js` is also re-implemented, no code
63
+ copied. It paints one clipped surface so corner and edge transparency cannot
64
+ diverge. `size` is a bounded corner proportion from 0 to 48; round uses pixels.
65
+ Five border treatments combine with all seven shapes. Generated frames remain
66
+ style-rule LiNo. The gallery demonstrates every combination.
67
+
68
+ Poseidon selects its blue palette and HUD surface; Arwes selects Tron, glass and
69
+ cut frames; Quiet selects monochrome and solid plain panels. Glow and scanlines
70
+ are static, with no flashing or flicker animation; reduced motion sets all
71
+ effect strengths to zero. No `steps(1)` animation is present.
72
+
73
+ See [the gallery](../../../../examples/themes/classic.html). Run
74
+ `node --test packages/ui-themes/tests/classic-*.test.js` and
75
+ `npx playwright test tests/e2e/theme-classic.spec.js --project=chromium`.
76
+
77
+ ## Chrome and frame provenance
78
+
79
+ | Pack | Source repository | File or issue | Source licence | Method |
80
+ | ------------------------ | ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------ | -------------- | ------------------------------ |
81
+ | `deepcase-0.1` chrome | [deep-foundation/deepcase-app](https://github.com/deep-foundation/deepcase-app) | [classic reference](https://github.com/deep-foundation/deepcase-app/issues/76) | Unlicense | re-implemented |
82
+ | `handler-windows` chrome | [deep-foundation/deepcase-app](https://github.com/deep-foundation/deepcase-app) | [dark reference](https://github.com/deep-foundation/deepcase-app/issues/299) | Unlicense | re-implemented |
83
+ | `frames` | [konard/konard.github.io](https://github.com/konard/konard.github.io) | [transparency reference](https://github.com/konard/konard.github.io/issues/47) | None | re-implemented, no code copied |
84
+
85
+ Formal-ai semantic colours map `js/styles/01-tokens.css` at
86
+ `ab3c72a6fbbd4d92587581849dab863888fd5f5f` (card/raised surfaces, body text,
87
+ solid accent and dark equivalents). Shared controls use the same semantic set;
88
+ material uses the raised surface, glass the 0.78 translucent surface, and contrast
89
+ the engine's high-contrast mode. Source-specific application selectors become
90
+ component style rules rather than combined root classes.
@@ -0,0 +1,156 @@
1
+ deepcase-2025: theme
2
+ extends base
3
+ token chat.text '#FFFFFF'
4
+ token chat.sidebar '#000000'
5
+ token chat.bubble.in '#000000'
6
+ token chat.bubble.in.text '#FFFFFF'
7
+ token chat.bubble.out '#CCCCCC'
8
+ token chat.bubble.out.text '#000000'
9
+ token chat.edge '#FFFFFF'
10
+ token color.primary '#CCCCCC'
11
+ token color.on-primary '#000000'
12
+ token color.surface '#000000'
13
+ token color.on-surface '#FFFFFF'
14
+ token color.on-surface-variant
15
+ token color.on-surface
16
+ token color.outline '#FFFFFF'
17
+ token motion.duration.short 150ms
18
+ token color.background '#000000'
19
+ token color.surface-modal '#19202B'
20
+ token graph.edge '#727278'
21
+ token graph.node '#0080FF'
22
+ token graph.label
23
+ token color.on-surface
24
+ token graph.value.value '#64B5F6'
25
+ token graph.value.symbol '#FFD54F'
26
+ token graph.value.undefined '#90A4AE'
27
+ token graph.value.promise '#4DB6AC'
28
+ token graph.value.boolean '#F06292'
29
+ token graph.value.string '#81C784'
30
+ token graph.value.number '#7986CB'
31
+ token graph.value.bigint '#9575CD'
32
+ token graph.value.set '#4DD0E1'
33
+ mode dark
34
+ token chat.text '#FFFFFF'
35
+ token chat.sidebar '#000000'
36
+ token chat.bubble.in '#000000'
37
+ token chat.bubble.in.text '#FFFFFF'
38
+ token chat.bubble.out '#CCCCCC'
39
+ token chat.bubble.out.text '#000000'
40
+ token chat.edge '#FFFFFF'
41
+ token color.primary '#CCCCCC'
42
+ token color.on-primary '#000000'
43
+ token color.surface '#000000'
44
+ token color.on-surface '#FFFFFF'
45
+ token color.on-surface-variant
46
+ token color.on-surface
47
+ token color.outline '#FFFFFF'
48
+ token motion.duration.short 150ms
49
+ token color.background '#000000'
50
+ token color.surface-modal '#19202B'
51
+ token graph.edge '#727278'
52
+ token graph.node '#0080FF'
53
+ token graph.label
54
+ token color.on-surface
55
+ token graph.value.value '#64B5F6'
56
+ token graph.value.symbol '#FFD54F'
57
+ token graph.value.undefined '#90A4AE'
58
+ token graph.value.promise '#4DB6AC'
59
+ token graph.value.boolean '#F06292'
60
+ token graph.value.string '#81C784'
61
+ token graph.value.number '#7986CB'
62
+ token graph.value.bigint '#9575CD'
63
+ token graph.value.set '#4DD0E1'
64
+ mode high-contrast
65
+ token chat.text '#000000'
66
+ token chat.sidebar '#FFFFFF'
67
+ token chat.bubble.in '#FFFFFF'
68
+ token chat.bubble.in.text '#000000'
69
+ token chat.bubble.out '#000000'
70
+ token chat.bubble.out.text '#FFFFFF'
71
+ token chat.edge '#000000'
72
+ token color.primary '#000000'
73
+ token color.on-primary '#FFFFFF'
74
+ token color.surface '#FFFFFF'
75
+ token color.on-surface '#000000'
76
+ token color.on-surface-variant
77
+ token color.on-surface
78
+ token color.outline '#000000'
79
+ token motion.duration.short 150ms
80
+ motion reduced
81
+ token motion.duration.short 0ms
82
+ token effect.glow 0
83
+ token effect.scanline 0
84
+ token effect.flicker 0
85
+ style
86
+ selector
87
+ type graph-canvas
88
+ background
89
+ token color.background
90
+ style
91
+ selector
92
+ type link-edge
93
+ stroke
94
+ token graph.edge
95
+ arrow triangle
96
+ style
97
+ selector
98
+ type link-node
99
+ background
100
+ token graph.node
101
+ color
102
+ token graph.label
103
+ style
104
+ selector
105
+ type link-node
106
+ value-type value
107
+ background
108
+ token graph.value.value
109
+ style
110
+ selector
111
+ type link-node
112
+ value-type symbol
113
+ background
114
+ token graph.value.symbol
115
+ style
116
+ selector
117
+ type link-node
118
+ value-type undefined
119
+ background
120
+ token graph.value.undefined
121
+ style
122
+ selector
123
+ type link-node
124
+ value-type promise
125
+ background
126
+ token graph.value.promise
127
+ style
128
+ selector
129
+ type link-node
130
+ value-type boolean
131
+ background
132
+ token graph.value.boolean
133
+ style
134
+ selector
135
+ type link-node
136
+ value-type string
137
+ background
138
+ token graph.value.string
139
+ style
140
+ selector
141
+ type link-node
142
+ value-type number
143
+ background
144
+ token graph.value.number
145
+ style
146
+ selector
147
+ type link-node
148
+ value-type bigint
149
+ background
150
+ token graph.value.bigint
151
+ style
152
+ selector
153
+ type link-node
154
+ value-type set
155
+ background
156
+ token graph.value.set
@@ -0,0 +1,86 @@
1
+ deepcase-classic: theme
2
+ extends base
3
+ token chat.text '#3A3A3A'
4
+ token chat.sidebar '#EDF2F7'
5
+ token chat.bubble.in '#EDF2F7'
6
+ token chat.bubble.in.text '#3A3A3A'
7
+ token chat.bubble.out '#0080FF'
8
+ token chat.bubble.out.text '#000000'
9
+ token chat.edge '#3A3A3A'
10
+ token color.primary '#0080FF'
11
+ token color.on-primary '#000000'
12
+ token color.surface '#EDF2F7'
13
+ token color.on-surface '#3A3A3A'
14
+ token color.on-surface-variant
15
+ token color.on-surface
16
+ token color.outline '#3A3A3A'
17
+ token motion.duration.short 150ms
18
+ token color.background
19
+ token color.surface
20
+ token color.surface-modal '#EBF8FF'
21
+ token graph.edge '#727278'
22
+ token graph.node '#0080FF'
23
+ token graph.label
24
+ token color.on-surface
25
+ mode dark
26
+ token chat.text '#EBF8FF'
27
+ token chat.sidebar '#141214'
28
+ token chat.bubble.in '#141214'
29
+ token chat.bubble.in.text '#EBF8FF'
30
+ token chat.bubble.out '#0080FF'
31
+ token chat.bubble.out.text '#000000'
32
+ token chat.edge '#EBF8FF'
33
+ token color.primary '#0080FF'
34
+ token color.on-primary '#000000'
35
+ token color.surface '#141214'
36
+ token color.on-surface '#EBF8FF'
37
+ token color.on-surface-variant
38
+ token color.on-surface
39
+ token color.outline '#EBF8FF'
40
+ token motion.duration.short 150ms
41
+ token color.background
42
+ token color.surface
43
+ token color.surface-modal '#19202B'
44
+ token graph.edge '#727278'
45
+ token graph.node '#0080FF'
46
+ token graph.label
47
+ token color.on-surface
48
+ mode high-contrast
49
+ token chat.text '#000000'
50
+ token chat.sidebar '#FFFFFF'
51
+ token chat.bubble.in '#FFFFFF'
52
+ token chat.bubble.in.text '#000000'
53
+ token chat.bubble.out '#000000'
54
+ token chat.bubble.out.text '#FFFFFF'
55
+ token chat.edge '#000000'
56
+ token color.primary '#000000'
57
+ token color.on-primary '#FFFFFF'
58
+ token color.surface '#FFFFFF'
59
+ token color.on-surface '#000000'
60
+ token color.on-surface-variant
61
+ token color.on-surface
62
+ token color.outline '#000000'
63
+ token motion.duration.short 150ms
64
+ motion reduced
65
+ token motion.duration.short 0ms
66
+ token effect.glow 0
67
+ token effect.scanline 0
68
+ token effect.flicker 0
69
+ style
70
+ selector
71
+ type graph-canvas
72
+ background
73
+ token color.background
74
+ style
75
+ selector
76
+ type link-edge
77
+ stroke
78
+ token graph.edge
79
+ arrow triangle
80
+ style
81
+ selector
82
+ type link-node
83
+ background
84
+ token graph.node
85
+ color
86
+ token graph.label
@@ -0,0 +1,87 @@
1
+ deepcase-dark: theme
2
+ extends base
3
+ token chat.text '#EBF8FF'
4
+ token chat.sidebar '#141214'
5
+ token chat.bubble.in '#141214'
6
+ token chat.bubble.in.text '#EBF8FF'
7
+ token chat.bubble.out '#0080FF'
8
+ token chat.bubble.out.text '#000000'
9
+ token chat.edge '#EBF8FF'
10
+ token color.primary '#0080FF'
11
+ token color.on-primary '#000000'
12
+ token color.surface '#141214'
13
+ token color.on-surface '#EBF8FF'
14
+ token color.on-surface-variant
15
+ token color.on-surface
16
+ token color.outline '#EBF8FF'
17
+ token motion.duration.short 150ms
18
+ token color.background
19
+ token color.surface
20
+ token color.surface-modal '#19202B'
21
+ token graph.edge '#727278'
22
+ token graph.node '#0080FF'
23
+ token graph.label
24
+ token color.on-surface
25
+ mode dark
26
+ token chat.text '#EBF8FF'
27
+ token chat.sidebar '#141214'
28
+ token chat.bubble.in '#141214'
29
+ token chat.bubble.in.text '#EBF8FF'
30
+ token chat.bubble.out '#0080FF'
31
+ token chat.bubble.out.text '#000000'
32
+ token chat.edge '#EBF8FF'
33
+ token color.primary '#0080FF'
34
+ token color.on-primary '#000000'
35
+ token color.surface '#141214'
36
+ token color.on-surface '#EBF8FF'
37
+ token color.on-surface-variant
38
+ token color.on-surface
39
+ token color.outline '#EBF8FF'
40
+ token motion.duration.short 150ms
41
+ token color.background
42
+ token color.surface
43
+ token color.surface-modal '#19202B'
44
+ token graph.edge '#727278'
45
+ token graph.node '#0080FF'
46
+ token graph.label
47
+ token color.on-surface
48
+ mode high-contrast
49
+ token chat.text '#000000'
50
+ token chat.sidebar '#FFFFFF'
51
+ token chat.bubble.in '#FFFFFF'
52
+ token chat.bubble.in.text '#000000'
53
+ token chat.bubble.out '#000000'
54
+ token chat.bubble.out.text '#FFFFFF'
55
+ token chat.edge '#000000'
56
+ token color.primary '#000000'
57
+ token color.on-primary '#FFFFFF'
58
+ token color.surface '#FFFFFF'
59
+ token color.on-surface '#000000'
60
+ token color.on-surface-variant
61
+ token color.on-surface
62
+ token color.outline '#000000'
63
+ token motion.duration.short 150ms
64
+ motion reduced
65
+ token motion.duration.short 0ms
66
+ token effect.glow 0
67
+ token effect.scanline 0
68
+ token effect.flicker 0
69
+ menu radial
70
+ style
71
+ selector
72
+ type graph-canvas
73
+ background
74
+ token color.background
75
+ style
76
+ selector
77
+ type link-edge
78
+ stroke
79
+ token graph.edge
80
+ arrow triangle
81
+ style
82
+ selector
83
+ type link-node
84
+ background
85
+ token graph.node
86
+ color
87
+ token graph.label
@@ -0,0 +1,63 @@
1
+ classic-chrome: stack
2
+ direction vertical
3
+ gap 8px
4
+ theme deepcase-classic
5
+ control-row: stack
6
+ direction horizontal
7
+ wrap true
8
+ auth-group: button-group
9
+ label Authentication
10
+ auth: button
11
+ label 'auth 376'
12
+ auth-clear: button
13
+ label 'Clear authentication'
14
+ space-group: button-group
15
+ label Space
16
+ space: button
17
+ label 'space 182'
18
+ space-clear: button
19
+ label 'Clear space'
20
+ container-group: button-group
21
+ label Container
22
+ container: button
23
+ label 'container 182'
24
+ container-clear: button
25
+ label 'Clear container'
26
+ token-group: button-group
27
+ label Tokens
28
+ copy-token: button
29
+ label 'copy token'
30
+ paste-token: button
31
+ label 'paste token'
32
+ editor-group: button-group
33
+ label Tools
34
+ gql: button
35
+ label gql
36
+ editor: button
37
+ label editor
38
+ packager: button
39
+ label packager
40
+ variant filled
41
+ switch-row: stack
42
+ direction horizontal
43
+ wrap true
44
+ autofocus: switch
45
+ label autofocus
46
+ checked true
47
+ focus: switch
48
+ label focus
49
+ debug: switch
50
+ label debug
51
+ types: switch
52
+ label types
53
+ promises: switch
54
+ label promises
55
+ traveler: switch
56
+ label traveler
57
+ breadcrumbs: switch
58
+ label breadcrumbs
59
+ search: text-field
60
+ label 'Search links'
61
+ placeholder Search
62
+ graph: graph-canvas
63
+ version: text '0.1.0-beta.2'