@tangle-network/agent-app 0.51.5 → 0.51.7
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.
- package/dist/{DesignCanvasEditor-ZHKJIDOB.js → DesignCanvasEditor-Z6UUPJKS.js} +3 -3
- package/dist/chat-routes/index.js +4 -4
- package/dist/{chunk-KU5YAGLB.js → chunk-2YSXWBBL.js} +2 -2
- package/dist/chunk-C4V2LIUC.js +150 -0
- package/dist/chunk-C4V2LIUC.js.map +1 -0
- package/dist/{chunk-CBRYWGUO.js → chunk-D3OYEEHO.js} +2 -2
- package/dist/{chunk-CBRYWGUO.js.map → chunk-D3OYEEHO.js.map} +1 -1
- package/dist/{chunk-2PDKWV2S.js → chunk-E4SBLZRW.js} +2 -2
- package/dist/{chunk-PF3AZD5G.js → chunk-EYTU3Z7T.js} +4 -4
- package/dist/{chunk-SYIV74NB.js → chunk-KGUC7S72.js} +2 -2
- package/dist/{chunk-IYLPQKAH.js → chunk-SOGWOBFF.js} +2 -2
- package/dist/{chunk-QGSVF6DZ.js → chunk-ZVNPAJ7Z.js} +18 -8
- package/dist/chunk-ZVNPAJ7Z.js.map +1 -0
- package/dist/design-canvas-react/index.js +3 -3
- package/dist/design-canvas-react/lazy.js +1 -1
- package/dist/preset-cloudflare/index.js +2 -2
- package/dist/sandbox/index.js +4 -4
- package/dist/theme/brand.generated.d.ts +91 -0
- package/dist/theme/index.d.ts +1 -1
- package/dist/theme/index.js +1 -1
- package/dist/theme/tailwind-preset.d.ts +13 -17
- package/dist/theme/tailwind-preset.js +24 -64
- package/dist/theme/tailwind-preset.js.map +1 -1
- package/dist/theme/theme.d.ts +3 -15
- package/dist/theme/tokens.css +1051 -608
- package/dist/theme-contract/cli.js +1 -1
- package/dist/theme-contract/index.js +1 -1
- package/dist/tools/index.js +4 -4
- package/dist/work-product/index.js +2 -2
- package/package.json +7 -4
- package/dist/chunk-Q2QKEV6J.js +0 -144
- package/dist/chunk-Q2QKEV6J.js.map +0 -1
- package/dist/chunk-QGSVF6DZ.js.map +0 -1
- /package/dist/{DesignCanvasEditor-ZHKJIDOB.js.map → DesignCanvasEditor-Z6UUPJKS.js.map} +0 -0
- /package/dist/{chunk-KU5YAGLB.js.map → chunk-2YSXWBBL.js.map} +0 -0
- /package/dist/{chunk-2PDKWV2S.js.map → chunk-E4SBLZRW.js.map} +0 -0
- /package/dist/{chunk-PF3AZD5G.js.map → chunk-EYTU3Z7T.js.map} +0 -0
- /package/dist/{chunk-SYIV74NB.js.map → chunk-KGUC7S72.js.map} +0 -0
- /package/dist/{chunk-IYLPQKAH.js.map → chunk-SOGWOBFF.js.map} +0 -0
package/dist/theme/tokens.css
CHANGED
|
@@ -1,566 +1,1071 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
* Dark mode: set `data-theme="dark"` (or class `dark`) on a parent element.
|
|
7
|
-
*
|
|
8
|
-
* Two vocabularies resolve to ONE set of channel triples:
|
|
9
|
-
* - shadcn semantic names (--card, --foreground, --muted-foreground, …) —
|
|
10
|
-
* consumed by web-react via Tailwind classes (bg-card, text-foreground).
|
|
11
|
-
* Wire them with the Tailwind preset: import '@tangle-network/agent-app/tailwind-preset'.
|
|
12
|
-
* - canvas/sequences alias names (--bg-input, --text-primary, …) — full
|
|
13
|
-
* colors consumed directly via Tailwind arbitrary values (bg-[var(--bg-input)]).
|
|
14
|
-
* These need no Tailwind config; tokens.css alone is enough.
|
|
15
|
-
*
|
|
16
|
-
* The aliases reference the triples, so redefining only the triples in the dark
|
|
17
|
-
* scope re-themes both vocabularies through the cascade.
|
|
18
|
-
*
|
|
19
|
-
* Neutrals are authored on ONE oklch ramp (`--neutral-*`, below) and the shadcn
|
|
20
|
-
* triples point at it. Structural reference: Cabinet (MIT) — see
|
|
21
|
-
* docs/design-tokens.md for the decisions and what we did differently.
|
|
2
|
+
* Agent App's light-default compatibility entry, not a palette authoring site.
|
|
3
|
+
* Brand owns shared colors, radius, typography, motion and shadows. The build
|
|
4
|
+
* inlines these imports so the public ./styles export has no runtime peer or
|
|
5
|
+
* bundler-specific import requirement. Do not stack Brand's dark-default entry.
|
|
22
6
|
*/
|
|
7
|
+
@layer theme, base, components, utilities;
|
|
8
|
+
@layer theme{/* GENERATED by scripts/gen-compat.mjs. Do not edit.
|
|
9
|
+
* Source: tokens.css + named-themes.css
|
|
10
|
+
* SHA-256: aa20f555957578963e2ea8f89a097a40576e564dd23e45f7412035de163ca11e
|
|
11
|
+
* Light-default compatibility; all explicit modes remain canonical.
|
|
12
|
+
*/
|
|
13
|
+
:where(:root),
|
|
14
|
+
[data-sandbox-ui],
|
|
15
|
+
[data-sandbox-theme="vault"],
|
|
16
|
+
[data-sandbox-theme="dawn"],
|
|
17
|
+
[data-theme="dark"],
|
|
18
|
+
[data-theme="light"],
|
|
19
|
+
[data-theme="aubergine"],
|
|
20
|
+
[data-theme="aubergine-light"],
|
|
21
|
+
[data-theme="arena"],
|
|
22
|
+
[data-theme="arena-light"],
|
|
23
|
+
[data-theme="tangle-dark"],
|
|
24
|
+
[data-theme="tangle-light"],
|
|
25
|
+
.light,
|
|
26
|
+
.dark {
|
|
27
|
+
color-scheme: dark;
|
|
28
|
+
--md3-surface: #161616;
|
|
29
|
+
--md3-surface-dim: #101010;
|
|
30
|
+
--md3-surface-bright: #3b3b3b;
|
|
31
|
+
--md3-surface-container-lowest: #101010;
|
|
32
|
+
--md3-surface-container-low: #242424;
|
|
33
|
+
--md3-surface-container: #303030;
|
|
34
|
+
--md3-surface-container-high: #353535;
|
|
35
|
+
--md3-surface-container-highest: #3b3b3b;
|
|
36
|
+
--md3-surface-variant: #353535;
|
|
37
|
+
--md3-on-surface: #e6e6e6;
|
|
38
|
+
--md3-on-surface-variant: #b5b5b5;
|
|
39
|
+
--md3-primary: #A5B4FC;
|
|
40
|
+
--md3-primary-dim: #7C6CF6;
|
|
41
|
+
--md3-primary-container: #4C3FC5;
|
|
42
|
+
--md3-on-primary: #ffffff;
|
|
43
|
+
--md3-on-primary-container: #E0E7FF;
|
|
44
|
+
--md3-primary-fixed: #A5AAFC;
|
|
45
|
+
--md3-primary-fixed-dim: #818CF8;
|
|
46
|
+
--md3-secondary: #C7D2FE;
|
|
47
|
+
--md3-secondary-dim: #A5B4FC;
|
|
48
|
+
--md3-secondary-container: #312E81;
|
|
49
|
+
--md3-on-secondary: #E8E5FF;
|
|
50
|
+
--md3-on-secondary-container: #E8E5FF;
|
|
51
|
+
--md3-tertiary: #10B981;
|
|
52
|
+
--md3-tertiary-container: var(--surface-success-bg);
|
|
53
|
+
--md3-outline: #8e8e8e;
|
|
54
|
+
--md3-outline-variant: #4c4c4c;
|
|
55
|
+
--md3-error: #ff5277;
|
|
56
|
+
--md3-error-dim: #eb2855;
|
|
57
|
+
--md3-error-container: #82042b;
|
|
58
|
+
--md3-on-error: #ffffff;
|
|
59
|
+
--md3-on-error-container: #ffbdf2;
|
|
60
|
+
--md3-inverse-surface: #fdfdfd;
|
|
61
|
+
--md3-inverse-primary: #4C3FC5;
|
|
62
|
+
--md3-inverse-on-surface: #000000;
|
|
63
|
+
--md3-surface-tint: #A5B4FC;
|
|
64
|
+
--hsl-background: 0 0% 8.6275%;
|
|
65
|
+
--hsl-foreground: 0 0% 90.1961%;
|
|
66
|
+
--hsl-card: 0 0% 18.8235%;
|
|
67
|
+
--hsl-card-foreground: 0 0% 90.1961%;
|
|
68
|
+
--hsl-popover: 0 0% 20.7843%;
|
|
69
|
+
--hsl-popover-foreground: 0 0% 90.1961%;
|
|
70
|
+
--hsl-primary: 246 54% 51%;
|
|
71
|
+
--hsl-primary-foreground: 0 0% 100%;
|
|
72
|
+
--hsl-secondary: 0 0% 20.7843%;
|
|
73
|
+
--hsl-secondary-foreground: 0 0% 90.1961%;
|
|
74
|
+
--hsl-muted: 0 0% 20.7843%;
|
|
75
|
+
--hsl-muted-foreground: 0 0% 70.9804%;
|
|
76
|
+
--hsl-accent: 0 0% 20.7843%;
|
|
77
|
+
--hsl-accent-foreground: 0 0% 90.1961%;
|
|
78
|
+
--hsl-destructive: 348 74% 48%;
|
|
79
|
+
--hsl-destructive-foreground: 0 0% 100%;
|
|
80
|
+
--hsl-border: 0 0% 29.8039%;
|
|
81
|
+
--hsl-input: 0 0% 12.1569%;
|
|
82
|
+
--hsl-ring: 233 100% 87%;
|
|
83
|
+
--hsl-success: 160 84% 39%;
|
|
84
|
+
--hsl-warning: 40 94% 56%;
|
|
85
|
+
--hsl-info: 200 88% 56%;
|
|
86
|
+
--background: var(--hsl-background);
|
|
87
|
+
--foreground: var(--hsl-foreground);
|
|
88
|
+
--card: var(--hsl-card);
|
|
89
|
+
--card-foreground: var(--hsl-card-foreground);
|
|
90
|
+
--popover: var(--hsl-popover);
|
|
91
|
+
--popover-foreground: var(--hsl-popover-foreground);
|
|
92
|
+
--primary: var(--hsl-primary);
|
|
93
|
+
--primary-foreground: var(--hsl-primary-foreground);
|
|
94
|
+
--secondary: var(--hsl-secondary);
|
|
95
|
+
--secondary-foreground: var(--hsl-secondary-foreground);
|
|
96
|
+
--muted: var(--hsl-muted);
|
|
97
|
+
--muted-foreground: var(--hsl-muted-foreground);
|
|
98
|
+
--accent: var(--hsl-accent);
|
|
99
|
+
--accent-foreground: var(--hsl-accent-foreground);
|
|
100
|
+
--destructive: var(--hsl-destructive);
|
|
101
|
+
--destructive-foreground: var(--hsl-destructive-foreground);
|
|
102
|
+
--border: var(--hsl-border);
|
|
103
|
+
--input: var(--hsl-muted-foreground);
|
|
104
|
+
--ring: var(--hsl-ring);
|
|
105
|
+
--success: var(--hsl-success);
|
|
106
|
+
--warning: var(--hsl-warning);
|
|
107
|
+
--error: var(--hsl-destructive);
|
|
108
|
+
--info: var(--hsl-info);
|
|
109
|
+
--sidebar-background: 0 0% 6.2745%;
|
|
110
|
+
--sidebar-foreground: 0 0% 90.1961%;
|
|
111
|
+
--sidebar-primary: 246 54% 51%;
|
|
112
|
+
--sidebar-primary-foreground: 0 0% 100%;
|
|
113
|
+
--sidebar-accent: 0 0% 20.7843%;
|
|
114
|
+
--sidebar-accent-foreground: 0 0% 90.1961%;
|
|
115
|
+
--sidebar-border: 0 0% 29.8039%;
|
|
116
|
+
--sidebar-ring: 233 100% 87%;
|
|
117
|
+
--depth-1: #161616;
|
|
118
|
+
--depth-2: #303030;
|
|
119
|
+
--depth-3: #353535;
|
|
120
|
+
--depth-4: #3b3b3b;
|
|
121
|
+
--status-running: #10B981;
|
|
122
|
+
--status-creating: #A5B4FC;
|
|
123
|
+
--status-stopped: #FFB800;
|
|
124
|
+
--status-warm: #FF8A4C;
|
|
125
|
+
--status-cold: #4AABFF;
|
|
126
|
+
--status-error: #FF4D6D;
|
|
127
|
+
--status-deleted: #6B7094;
|
|
128
|
+
--surface-success-bg: #2f5146;
|
|
129
|
+
--surface-success-border: #3c7760;
|
|
130
|
+
--surface-success-text: #5ed7a4;
|
|
131
|
+
--surface-warning-bg: #6a402c;
|
|
132
|
+
--surface-warning-border: #916436;
|
|
133
|
+
--surface-warning-text: #f4c14f;
|
|
134
|
+
--surface-danger-bg: #733b36;
|
|
135
|
+
--surface-danger-border: #9a5b56;
|
|
136
|
+
--surface-danger-text: #ffada9;
|
|
137
|
+
--surface-info-bg: #2d4e67;
|
|
138
|
+
--surface-info-border: #3d7292;
|
|
139
|
+
--surface-info-text: #67cdff;
|
|
140
|
+
--surface-teal-bg: #042f2e;
|
|
141
|
+
--surface-teal-border: #134e4a;
|
|
142
|
+
--surface-teal-text: #2dd4bf;
|
|
143
|
+
--surface-violet-bg: #1e1b4b;
|
|
144
|
+
--surface-violet-border: #3730a3;
|
|
145
|
+
--surface-violet-text: #B8B2F5;
|
|
146
|
+
--surface-orange-bg: #431407;
|
|
147
|
+
--surface-orange-border: #7c2d12;
|
|
148
|
+
--surface-orange-text: #fb923c;
|
|
149
|
+
--run-mix-succeeded: #76edb9;
|
|
150
|
+
--run-mix-waiting: #e9b642;
|
|
151
|
+
--run-mix-failed: #e1918e;
|
|
152
|
+
--run-mix-in-flight: #2d9bca;
|
|
153
|
+
--run-mix-cancelled: #767d90;
|
|
154
|
+
--surface-neutral-bg: var(--depth-3);
|
|
155
|
+
--surface-neutral-border: var(--border-subtle);
|
|
156
|
+
--surface-neutral-text: var(--text-muted);
|
|
157
|
+
--glass-bg: var(--depth-2);
|
|
158
|
+
--glass-bg-strong: var(--depth-3);
|
|
159
|
+
--glass-border: var(--border-subtle);
|
|
160
|
+
--glass-border-hover: var(--border-default);
|
|
161
|
+
--glass-blur: 0px;
|
|
162
|
+
--mesh-teal: transparent;
|
|
163
|
+
--mesh-violet: transparent;
|
|
164
|
+
--mesh-blue: transparent;
|
|
165
|
+
--tangle-gradient: linear-gradient(135deg, #4C3FC5, #A5B4FC);
|
|
166
|
+
--tangle-gradient-text: linear-gradient(135deg, #C7D2FE, #A5B4FC);
|
|
167
|
+
--accent-gradient-strong: linear-gradient(135deg, #4C3FC5, #7C6CF6);
|
|
168
|
+
--accent-surface-soft: rgba(165, 180, 252, 0.07);
|
|
169
|
+
--accent-surface-strong: rgba(76, 63, 197, 0.30);
|
|
170
|
+
--accent-text: #A5B4FC;
|
|
171
|
+
--bg-root: #161616;
|
|
172
|
+
--bg-dark: var(--depth-1);
|
|
173
|
+
--bg-card: var(--depth-2);
|
|
174
|
+
--bg-elevated: var(--depth-4);
|
|
175
|
+
--bg-section: var(--depth-1);
|
|
176
|
+
--bg-input: hsl(var(--hsl-input));
|
|
177
|
+
--bg-hover: rgba(165, 180, 252, 0.07);
|
|
178
|
+
--bg-selection: rgba(124, 108, 246, 0.28);
|
|
179
|
+
--text-primary: #e6e6e6;
|
|
180
|
+
--text-secondary: #c7c7c7;
|
|
181
|
+
--text-muted: #b5b5b5;
|
|
182
|
+
--text-dim: #a5a5a5;
|
|
183
|
+
--brand-primary: #7C6CF6;
|
|
184
|
+
--brand-strong: #2E2A5E;
|
|
185
|
+
--brand-strong-text: #ffffff;
|
|
186
|
+
--brand-strong-text-muted: rgba(255, 255, 255, 0.7);
|
|
187
|
+
--brand-strong-text-dim: rgba(255, 255, 255, 0.5);
|
|
188
|
+
--brand-cool: #818CF8;
|
|
189
|
+
--brand-glow: #A5AAFC;
|
|
190
|
+
--brand-purple: #C7D2FE;
|
|
191
|
+
--brand-vibrant: #6366F1;
|
|
192
|
+
--brand-emerald: #10B981;
|
|
193
|
+
--border-subtle: rgba(255, 255, 255, 0.10);
|
|
194
|
+
--border-default: rgba(255, 255, 255, 0.16);
|
|
195
|
+
--border-hover: rgba(255, 255, 255, 0.28);
|
|
196
|
+
--border-accent: rgba(129, 140, 248, 0.35);
|
|
197
|
+
--border-accent-hover: rgba(129, 140, 248, 0.50);
|
|
198
|
+
--btn-primary-bg: #4C3FC5;
|
|
199
|
+
--btn-primary-hover: #5A50D6;
|
|
200
|
+
--btn-primary-text: #ffffff;
|
|
201
|
+
--btn-cta-bg: #4C3FC5;
|
|
202
|
+
--btn-cta-text: #FFFFFF;
|
|
203
|
+
--code-keyword: #A5AAFC;
|
|
204
|
+
--code-string: #34D399;
|
|
205
|
+
--code-function: #6D9FFF;
|
|
206
|
+
--code-number: #FFB347;
|
|
207
|
+
--code-success: #10B981;
|
|
208
|
+
--code-comment: #606294;
|
|
209
|
+
--code-error: #FF4D6D;
|
|
210
|
+
--shadow-card: 0 1px 2px rgba(0, 0, 0, 0.3);
|
|
211
|
+
--shadow-dropdown: 0 8px 30px rgba(0, 0, 0, 0.45);
|
|
212
|
+
--shadow-glow: none;
|
|
213
|
+
--shadow-accent: 0 1px 2px rgba(0, 0, 0, 0.3);
|
|
214
|
+
--shadow-overlay: 0 2px 6px hsl(var(--hsl-foreground) / 0.1),
|
|
215
|
+
0 16px 40px hsl(var(--hsl-foreground) / 0.16);
|
|
216
|
+
--shadow-status-running: none;
|
|
217
|
+
--shadow-status-creating: none;
|
|
218
|
+
--shadow-status-error: none;
|
|
219
|
+
--radius-sm: 6px;
|
|
220
|
+
--radius-md: 8px;
|
|
221
|
+
--radius-lg: 10px;
|
|
222
|
+
--radius-xl: 12px;
|
|
223
|
+
--radius-pill: 999px;
|
|
224
|
+
--radius-full: 999px;
|
|
225
|
+
--radius-composer: 26px;
|
|
226
|
+
--control-height: 2.25rem;
|
|
227
|
+
--panel-padding: 1rem;
|
|
228
|
+
--content-max-width: 80rem;
|
|
229
|
+
--font-size-xs: 0.6875rem;
|
|
230
|
+
--font-size-sm: 0.75rem;
|
|
231
|
+
--font-size-base: 0.9375rem;
|
|
232
|
+
--font-size-lg: 1rem;
|
|
233
|
+
--font-size-xl: 1.25rem;
|
|
234
|
+
--font-size-2xl: 1.5rem;
|
|
235
|
+
--font-size-3xl: 1.875rem;
|
|
236
|
+
--font-size-4xl: 2.25rem;
|
|
237
|
+
--font-size-hero: clamp(2rem, 1.2rem + 3.2vw, 3rem);
|
|
238
|
+
--font-size-display: clamp(2.5rem, 1.1rem + 5vw, 4rem);
|
|
239
|
+
--line-height-tight: 1.3;
|
|
240
|
+
--line-height-base: 1.6;
|
|
241
|
+
--line-height-relaxed: 1.75;
|
|
242
|
+
--line-height-display: 1.05;
|
|
243
|
+
--line-height-heading: 1.15;
|
|
244
|
+
--tracking-tight: -0.02em;
|
|
245
|
+
--tracking-snug: -0.01em;
|
|
246
|
+
--tracking-wide: 0.08em;
|
|
247
|
+
--avatar-size: 2rem;
|
|
248
|
+
--timeline-dot-size: 0.625rem;
|
|
249
|
+
--indicator-dot-size: 0.25rem;
|
|
250
|
+
--code-padding-x: 0.75rem;
|
|
251
|
+
--code-padding-y: 0.625rem;
|
|
252
|
+
--code-font-size: 0.8125rem;
|
|
253
|
+
--code-line-height: 1.5;
|
|
254
|
+
--chat-message-px: 0.875rem;
|
|
255
|
+
--chat-message-py: 0.5rem;
|
|
256
|
+
--chat-input-py: 0.625rem;
|
|
257
|
+
--card-padding: 1.25rem;
|
|
258
|
+
--tool-card-px: 0.75rem;
|
|
259
|
+
--tool-card-py: 0.5rem;
|
|
260
|
+
--tool-icon-size: 1.75rem;
|
|
261
|
+
--code-header-bg: hsl(var(--hsl-background));
|
|
262
|
+
--syntax-comment: #8b8fbc;
|
|
263
|
+
--syntax-keyword: #A78FFF;
|
|
264
|
+
--syntax-string: #10b981;
|
|
265
|
+
--syntax-function: #6D9FFF;
|
|
266
|
+
--syntax-number: #FFB347;
|
|
267
|
+
--syntax-meta: #8263FF;
|
|
268
|
+
--syntax-error: #FF4D6D;
|
|
269
|
+
--syntax-variable: #C4C0D8;
|
|
270
|
+
--syntax-foreground: #E8E6F6;
|
|
271
|
+
--duration-instant: 90ms;
|
|
272
|
+
--duration-fast: 150ms;
|
|
273
|
+
--duration-base: 240ms;
|
|
274
|
+
--duration-slow: 360ms;
|
|
275
|
+
--duration-stream: 420ms;
|
|
276
|
+
--duration-arrive: 600ms;
|
|
277
|
+
--ease-standard: cubic-bezier(0.2, 0.8, 0.2, 1);
|
|
278
|
+
--ease-entrance: cubic-bezier(0.22, 1, 0.36, 1);
|
|
279
|
+
--ease-exit: cubic-bezier(0.4, 0, 1, 1);
|
|
280
|
+
--ease-expo: cubic-bezier(0.23, 1, 0.32, 1);
|
|
281
|
+
--motion-control: var(--duration-fast) var(--ease-standard);
|
|
282
|
+
--motion-surface: var(--duration-base) var(--ease-entrance);
|
|
283
|
+
--motion-dismiss: var(--duration-instant) var(--ease-exit);
|
|
284
|
+
--motion-stream: var(--duration-stream) var(--ease-expo);
|
|
285
|
+
--motion-arrive: var(--duration-arrive) var(--ease-expo);
|
|
286
|
+
--stagger-step: 50ms;
|
|
287
|
+
--stagger-index: 0;
|
|
288
|
+
--arrive-distance: 8px;
|
|
289
|
+
--stream-blur: 4px;
|
|
290
|
+
--transition-fast: 0.1s ease;
|
|
291
|
+
--transition-default: 0.16s ease;
|
|
292
|
+
--transition-medium: 0.24s ease;
|
|
293
|
+
--font-sans: "Inter", "Geist", ui-sans-serif, system-ui, -apple-system, sans-serif;
|
|
294
|
+
--font-display: "Inter", "Geist", sans-serif;
|
|
295
|
+
--font-mono: "Geist Mono", "JetBrains Mono", ui-monospace, monospace;
|
|
296
|
+
}
|
|
297
|
+
[data-sandbox-theme="vault"]:where(:not(.dark)),
|
|
298
|
+
[data-sandbox-theme="dawn"]:where(:not(.dark)),
|
|
299
|
+
[data-theme="light"],
|
|
300
|
+
[data-theme="aubergine-light"],
|
|
301
|
+
[data-theme="arena-light"],
|
|
302
|
+
[data-theme="tangle-light"],
|
|
303
|
+
.light,
|
|
304
|
+
:where(:root) {
|
|
305
|
+
color-scheme: light;
|
|
306
|
+
--code-header-bg: color-mix(in srgb, hsl(var(--hsl-muted)) 50%, transparent);
|
|
307
|
+
--syntax-foreground: #24292f;
|
|
308
|
+
--syntax-comment: #57606a;
|
|
309
|
+
--syntax-keyword: #6d28d9;
|
|
310
|
+
--syntax-string: #047857;
|
|
311
|
+
--syntax-function: #1d4ed8;
|
|
312
|
+
--syntax-number: #92400e;
|
|
313
|
+
--syntax-meta: #7c3aed;
|
|
314
|
+
--syntax-variable: #24292f;
|
|
315
|
+
--syntax-error: #b91c1c;
|
|
316
|
+
--md3-surface: #eaeaea;
|
|
317
|
+
--md3-surface-dim: #dadada;
|
|
318
|
+
--md3-surface-bright: #ffffff;
|
|
319
|
+
--md3-surface-container-lowest: #ffffff;
|
|
320
|
+
--md3-surface-container-low: #f7f7f7;
|
|
321
|
+
--md3-surface-container: #ffffff;
|
|
322
|
+
--md3-surface-container-high: #f2f2f2;
|
|
323
|
+
--md3-surface-container-highest: #ffffff;
|
|
324
|
+
--md3-surface-variant: #f2f2f2;
|
|
325
|
+
--md3-on-surface: #2d2d2d;
|
|
326
|
+
--md3-on-surface-variant: #4c4c4c;
|
|
327
|
+
--md3-primary: #3E349E;
|
|
328
|
+
--md3-primary-dim: #352B88;
|
|
329
|
+
--md3-primary-container: #352B88;
|
|
330
|
+
--md3-on-primary: #ffffff;
|
|
331
|
+
--md3-on-primary-container: #9B93F0;
|
|
332
|
+
--md3-primary-fixed: #E8E5FF;
|
|
333
|
+
--md3-primary-fixed-dim: #C5C0F0;
|
|
334
|
+
--md3-secondary: #524A78;
|
|
335
|
+
--md3-secondary-dim: #3E3660;
|
|
336
|
+
--md3-secondary-container: #E8E5FF;
|
|
337
|
+
--md3-on-secondary: #ffffff;
|
|
338
|
+
--md3-on-secondary-container: #524A78;
|
|
339
|
+
--md3-tertiary: #065F46;
|
|
340
|
+
--md3-tertiary-container: #D1FAE5;
|
|
341
|
+
--md3-outline: #787878;
|
|
342
|
+
--md3-outline-variant: #d0d0d0;
|
|
343
|
+
--md3-error: #ba1a1a;
|
|
344
|
+
--md3-error-dim: #93000a;
|
|
345
|
+
--md3-error-container: #ffdad6;
|
|
346
|
+
--md3-on-error: #ffffff;
|
|
347
|
+
--md3-on-error-container: #93000a;
|
|
348
|
+
--md3-inverse-surface: #2e2e3e;
|
|
349
|
+
--md3-inverse-primary: #A5AAFC;
|
|
350
|
+
--md3-inverse-on-surface: #f0f1f4;
|
|
351
|
+
--md3-surface-tint: #6366F1;
|
|
352
|
+
--hsl-background: 0 0% 91.7647%;
|
|
353
|
+
--hsl-foreground: 0 0% 17.6471%;
|
|
354
|
+
--hsl-card: 0 0% 100%;
|
|
355
|
+
--hsl-card-foreground: 0 0% 17.6471%;
|
|
356
|
+
--hsl-popover: 0 0% 100%;
|
|
357
|
+
--hsl-popover-foreground: 0 0% 17.6471%;
|
|
358
|
+
--hsl-primary: 246 54% 51%;
|
|
359
|
+
--hsl-primary-foreground: 0 0% 100%;
|
|
360
|
+
--hsl-secondary: 0 0% 94.902%;
|
|
361
|
+
--hsl-secondary-foreground: 0 0% 17.6471%;
|
|
362
|
+
--hsl-muted: 0 0% 94.902%;
|
|
363
|
+
--hsl-muted-foreground: 0 0% 29.8039%;
|
|
364
|
+
--hsl-accent: 0 0% 94.902%;
|
|
365
|
+
--hsl-accent-foreground: 0 0% 17.6471%;
|
|
366
|
+
--hsl-destructive: 0 72% 41%;
|
|
367
|
+
--hsl-destructive-foreground: 0 0% 100%;
|
|
368
|
+
--hsl-border: 0 0% 81.5686%;
|
|
369
|
+
--hsl-input: 0 0% 96.0784%;
|
|
370
|
+
--hsl-ring: 246 54% 51%;
|
|
371
|
+
--hsl-success: 160 84% 30%;
|
|
372
|
+
--hsl-warning: 41 96% 50%;
|
|
373
|
+
--hsl-info: 212 80% 50%;
|
|
374
|
+
--depth-1: #eaeaea;
|
|
375
|
+
--depth-2: #ffffff;
|
|
376
|
+
--depth-3: #f2f2f2;
|
|
377
|
+
--depth-4: #ffffff;
|
|
378
|
+
--status-running: #059669;
|
|
379
|
+
--status-creating: #3E349E;
|
|
380
|
+
--status-stopped: #B45309;
|
|
381
|
+
--status-warm: #C05621;
|
|
382
|
+
--status-cold: #1D6FA4;
|
|
383
|
+
--status-error: #ba1a1a;
|
|
384
|
+
--status-deleted: #6B6B82;
|
|
385
|
+
--glass-bg: var(--depth-2);
|
|
386
|
+
--glass-bg-strong: var(--depth-1);
|
|
387
|
+
--glass-border: var(--border-subtle);
|
|
388
|
+
--glass-border-hover: var(--border-default);
|
|
389
|
+
--surface-success-bg: #ecfdf5;
|
|
390
|
+
--surface-success-border: #a7f3d0;
|
|
391
|
+
--surface-success-text: #047857;
|
|
392
|
+
--surface-warning-bg: #fffbeb;
|
|
393
|
+
--surface-warning-border: #fde68a;
|
|
394
|
+
--surface-warning-text: #ab4f09;
|
|
395
|
+
--surface-danger-bg: #fff1f2;
|
|
396
|
+
--surface-danger-border: #fecdd3;
|
|
397
|
+
--surface-danger-text: #b91c1c;
|
|
398
|
+
--surface-info-bg: #f0f9ff;
|
|
399
|
+
--surface-info-border: #bae6fd;
|
|
400
|
+
--surface-info-text: #0369a1;
|
|
401
|
+
--surface-teal-bg: #f0fdfa;
|
|
402
|
+
--surface-teal-border: #99f6e4;
|
|
403
|
+
--surface-teal-text: #0f766e;
|
|
404
|
+
--surface-violet-bg: #F0EEFF;
|
|
405
|
+
--surface-violet-border: #C5C0F0;
|
|
406
|
+
--surface-violet-text: #3E349E;
|
|
407
|
+
--surface-orange-bg: #fff7ed;
|
|
408
|
+
--surface-orange-border: #fed7aa;
|
|
409
|
+
--surface-orange-text: #c2410c;
|
|
410
|
+
--run-mix-succeeded: #3c9b78;
|
|
411
|
+
--run-mix-waiting: #c16227;
|
|
412
|
+
--run-mix-failed: #cd342f;
|
|
413
|
+
--run-mix-in-flight: #00679e;
|
|
414
|
+
--run-mix-cancelled: #515367;
|
|
415
|
+
--surface-neutral-bg: var(--depth-3);
|
|
416
|
+
--surface-neutral-border: var(--border-subtle);
|
|
417
|
+
--surface-neutral-text: var(--text-muted);
|
|
418
|
+
--sidebar-background: 0 0% 100%;
|
|
419
|
+
--sidebar-foreground: 0 0% 17.6471%;
|
|
420
|
+
--sidebar-primary: 246 54% 51%;
|
|
421
|
+
--sidebar-primary-foreground: 0 0% 100%;
|
|
422
|
+
--sidebar-accent: 0 0% 94.902%;
|
|
423
|
+
--sidebar-accent-foreground: 0 0% 17.6471%;
|
|
424
|
+
--sidebar-border: 0 0% 81.5686%;
|
|
425
|
+
--sidebar-ring: 246 54% 51%;
|
|
426
|
+
--mesh-teal: transparent;
|
|
427
|
+
--mesh-violet: transparent;
|
|
428
|
+
--mesh-blue: transparent;
|
|
429
|
+
--bg-root: #eaeaea;
|
|
430
|
+
--bg-dark: var(--depth-1);
|
|
431
|
+
--bg-card: var(--depth-2);
|
|
432
|
+
--bg-elevated: var(--depth-4);
|
|
433
|
+
--bg-section: var(--depth-1);
|
|
434
|
+
--bg-input: hsl(var(--hsl-input));
|
|
435
|
+
--bg-hover: rgba(76, 63, 198, 0.06);
|
|
436
|
+
--bg-selection: rgba(76, 63, 198, 0.16);
|
|
437
|
+
--text-primary: #2d2d2d;
|
|
438
|
+
--text-secondary: #3f3f3f;
|
|
439
|
+
--text-muted: #4c4c4c;
|
|
440
|
+
--text-dim: #686868;
|
|
441
|
+
--brand-primary: #6366F1;
|
|
442
|
+
--brand-strong: #2E2A5E;
|
|
443
|
+
--brand-strong-text: #ffffff;
|
|
444
|
+
--brand-strong-text-muted: rgba(255, 255, 255, 0.7);
|
|
445
|
+
--brand-strong-text-dim: rgba(255, 255, 255, 0.5);
|
|
446
|
+
--brand-cool: #818CF8;
|
|
447
|
+
--brand-glow: #A5AAFC;
|
|
448
|
+
--brand-purple: #6366F1;
|
|
449
|
+
--brand-vibrant: #6366F1;
|
|
450
|
+
--brand-emerald: #059669;
|
|
451
|
+
--border-subtle: rgba(0, 0, 0, 0.10);
|
|
452
|
+
--border-default: rgba(0, 0, 0, 0.14);
|
|
453
|
+
--border-hover: rgba(0, 0, 0, 0.24);
|
|
454
|
+
--border-accent: rgba(91, 78, 212, 0.18);
|
|
455
|
+
--border-accent-hover: rgba(91, 78, 212, 0.35);
|
|
456
|
+
--btn-primary-bg: #4C3FC5;
|
|
457
|
+
--btn-primary-hover: #5A50D6;
|
|
458
|
+
--btn-primary-text: #ffffff;
|
|
459
|
+
--btn-cta-bg: #4C3FC5;
|
|
460
|
+
--btn-cta-text: #ffffff;
|
|
461
|
+
--code-keyword: #3E349E;
|
|
462
|
+
--code-string: #059669;
|
|
463
|
+
--code-function: #352B88;
|
|
464
|
+
--code-number: #B45309;
|
|
465
|
+
--code-success: #059669;
|
|
466
|
+
--code-comment: #6B6E8A;
|
|
467
|
+
--code-error: #ba1a1a;
|
|
468
|
+
--shadow-card: 0 1px 2px rgba(25, 28, 36, 0.06);
|
|
469
|
+
--shadow-dropdown: 0 8px 30px rgba(25, 28, 36, 0.10);
|
|
470
|
+
--shadow-glow: none;
|
|
471
|
+
--shadow-accent: 0 1px 2px rgba(25, 28, 36, 0.06);
|
|
472
|
+
--tangle-gradient: linear-gradient(135deg, #4F46E5, #5B4ED4);
|
|
473
|
+
--tangle-gradient-text: linear-gradient(135deg, #4F46E5, #5B4ED4);
|
|
474
|
+
--accent-gradient-strong: linear-gradient(135deg, #4F46E5, #5B4ED4);
|
|
475
|
+
--accent-surface-soft: rgba(76, 63, 198, 0.05);
|
|
476
|
+
--accent-surface-strong: rgba(76, 63, 198, 0.13);
|
|
477
|
+
--accent-text: #5047eb;
|
|
478
|
+
--font-sans: "Inter", "Geist", ui-sans-serif, system-ui, -apple-system, sans-serif;
|
|
479
|
+
--font-display: "Inter", "Geist", sans-serif;
|
|
480
|
+
--font-mono: "Geist Mono", "JetBrains Mono", ui-monospace, monospace;
|
|
481
|
+
--radius-sm: 6px;
|
|
482
|
+
--radius-md: 8px;
|
|
483
|
+
--radius-lg: 10px;
|
|
484
|
+
--radius-xl: 12px;
|
|
485
|
+
--radius-pill: 999px;
|
|
486
|
+
--radius-full: 999px;
|
|
487
|
+
--radius-composer: 26px;
|
|
488
|
+
}
|
|
489
|
+
:where(:root),
|
|
490
|
+
.dark,
|
|
491
|
+
.light,
|
|
492
|
+
[data-sandbox-ui],
|
|
493
|
+
[data-sandbox-theme],
|
|
494
|
+
[data-theme] {
|
|
495
|
+
--focus-border: hsl(var(--hsl-ring) / 0.8);
|
|
496
|
+
--focus-halo: hsl(var(--hsl-ring) / 0.18);
|
|
497
|
+
--focus-border-danger: color-mix(in srgb, var(--surface-danger-text) 80%, transparent);
|
|
498
|
+
--focus-halo-danger: color-mix(in srgb, var(--surface-danger-text) 18%, transparent);
|
|
499
|
+
--border-strong: color-mix(in srgb, hsl(var(--hsl-border)), hsl(var(--hsl-foreground)) 20%);
|
|
500
|
+
}
|
|
501
|
+
:where(:root),
|
|
502
|
+
.dark,
|
|
503
|
+
.light,
|
|
504
|
+
[data-sandbox-ui],
|
|
505
|
+
[data-sandbox-theme],
|
|
506
|
+
[data-theme] {
|
|
507
|
+
--chart-ink: var(--text-primary);
|
|
508
|
+
--chart-ink-muted: var(--text-dim);
|
|
509
|
+
--chart-muted: var(--md3-outline);
|
|
510
|
+
--chart-grid: var(--md3-surface-container-high);
|
|
511
|
+
--chart-rule: var(--md3-outline-variant);
|
|
512
|
+
--chart-shade: var(--bg-hover);
|
|
513
|
+
--chart-accent: var(--brand-cool);
|
|
514
|
+
--chart-tier-c: #4a4a95;
|
|
515
|
+
--chart-tier-b: #5b5bd6;
|
|
516
|
+
--chart-tier-a: #8b87f0;
|
|
517
|
+
--chart-tier-s: #b1a9ff;
|
|
518
|
+
}
|
|
519
|
+
[data-sandbox-theme="vault"]:where(:not(.dark)),
|
|
520
|
+
[data-sandbox-theme="dawn"]:where(:not(.dark)),
|
|
521
|
+
[data-theme="light"],
|
|
522
|
+
.light,
|
|
523
|
+
[data-theme$="-light"],
|
|
524
|
+
:where(:root) {
|
|
525
|
+
--chart-accent: hsl(var(--hsl-primary));
|
|
526
|
+
--chart-tier-c: #9b9ef0;
|
|
527
|
+
--chart-tier-b: #7c7fe3;
|
|
528
|
+
--chart-tier-a: #5b5bd6;
|
|
529
|
+
--chart-tier-s: #272962;
|
|
530
|
+
}
|
|
531
|
+
@media (prefers-reduced-motion: reduce) {
|
|
532
|
+
:where(:root),
|
|
533
|
+
.dark,
|
|
534
|
+
.light,
|
|
535
|
+
[data-sandbox-ui],
|
|
536
|
+
[data-sandbox-theme],
|
|
537
|
+
[data-theme] {
|
|
538
|
+
--duration-instant: 0ms;
|
|
539
|
+
--duration-fast: 0ms;
|
|
540
|
+
--duration-base: 0ms;
|
|
541
|
+
--duration-slow: 0ms;
|
|
542
|
+
--duration-stream: 0ms;
|
|
543
|
+
--duration-arrive: 0ms;
|
|
544
|
+
--stagger-step: 0ms;
|
|
545
|
+
--motion-control: var(--duration-fast) var(--ease-standard);
|
|
546
|
+
--motion-surface: var(--duration-base) var(--ease-entrance);
|
|
547
|
+
--motion-dismiss: var(--duration-instant) var(--ease-exit);
|
|
548
|
+
--motion-stream: var(--duration-stream) var(--ease-expo);
|
|
549
|
+
--motion-arrive: var(--duration-arrive) var(--ease-expo);
|
|
550
|
+
}
|
|
551
|
+
}
|
|
552
|
+
:where(:root),
|
|
553
|
+
.dark,
|
|
554
|
+
.light,
|
|
555
|
+
[data-sandbox-ui],
|
|
556
|
+
[data-sandbox-theme],
|
|
557
|
+
[data-theme] {
|
|
558
|
+
--text-display: var(--font-size-display);
|
|
559
|
+
--text-hero: var(--font-size-hero);
|
|
560
|
+
--text-page: var(--font-size-3xl);
|
|
561
|
+
--text-section: var(--font-size-xl);
|
|
562
|
+
--text-eyebrow: var(--font-size-sm);
|
|
563
|
+
--color-depth-1: var(--depth-1);
|
|
564
|
+
--color-depth-2: var(--depth-2);
|
|
565
|
+
--color-depth-3: var(--depth-3);
|
|
566
|
+
--color-depth-4: var(--depth-4);
|
|
567
|
+
--color-background: hsl(var(--background));
|
|
568
|
+
--color-foreground: hsl(var(--foreground));
|
|
569
|
+
--color-card: hsl(var(--card));
|
|
570
|
+
--color-card-foreground: hsl(var(--card-foreground));
|
|
571
|
+
--color-popover: hsl(var(--popover));
|
|
572
|
+
--color-popover-foreground: hsl(var(--popover-foreground));
|
|
573
|
+
--color-primary: hsl(var(--primary));
|
|
574
|
+
--color-primary-foreground: hsl(var(--primary-foreground));
|
|
575
|
+
--color-secondary: hsl(var(--secondary));
|
|
576
|
+
--color-secondary-foreground: hsl(var(--secondary-foreground));
|
|
577
|
+
--color-muted: hsl(var(--muted));
|
|
578
|
+
--color-muted-foreground: hsl(var(--muted-foreground));
|
|
579
|
+
--color-accent: hsl(var(--accent));
|
|
580
|
+
--color-accent-foreground: hsl(var(--accent-foreground));
|
|
581
|
+
--color-destructive: hsl(var(--destructive));
|
|
582
|
+
--color-destructive-foreground: hsl(var(--destructive-foreground));
|
|
583
|
+
--color-border: hsl(var(--border));
|
|
584
|
+
--color-input: hsl(var(--input));
|
|
585
|
+
--color-ring: hsl(var(--ring));
|
|
586
|
+
--color-surface-container-lowest: var(--md3-surface-container-lowest);
|
|
587
|
+
--color-surface-container-low: var(--md3-surface-container-low);
|
|
588
|
+
--color-surface-container: var(--md3-surface-container);
|
|
589
|
+
--color-surface-container-high: var(--md3-surface-container-high);
|
|
590
|
+
--color-surface-container-highest: var(--md3-surface-container-highest);
|
|
591
|
+
--color-fg: var(--text-primary);
|
|
592
|
+
--color-fg-muted: var(--text-muted);
|
|
593
|
+
--color-fg-dim: var(--text-dim);
|
|
594
|
+
}
|
|
595
|
+
[data-theme="aubergine-light"],
|
|
596
|
+
[data-theme="arena-light"],
|
|
597
|
+
[data-theme="tangle-light"] {
|
|
598
|
+
--hsl-secondary-foreground: 0 0% 10%;
|
|
599
|
+
--surface-neutral-text: #4b5563;
|
|
600
|
+
}
|
|
601
|
+
[data-theme="aubergine"] {
|
|
602
|
+
--hsl-background: 258 44% 12%;
|
|
603
|
+
--hsl-foreground: 258 50% 97%;
|
|
604
|
+
--hsl-card: 258 40% 20%;
|
|
605
|
+
--hsl-card-foreground: 258 50% 97%;
|
|
606
|
+
--hsl-popover: 258 40% 24%;
|
|
607
|
+
--hsl-popover-foreground: 258 50% 97%;
|
|
608
|
+
--hsl-primary: 250 100% 76%;
|
|
609
|
+
--hsl-primary-foreground: 258 45% 10%;
|
|
610
|
+
--hsl-secondary: 258 38% 17%;
|
|
611
|
+
--hsl-muted: 258 38% 17%;
|
|
612
|
+
--hsl-muted-foreground: 258 26% 70%;
|
|
613
|
+
--hsl-accent: 258 40% 24%;
|
|
614
|
+
--hsl-border: 258 32% 30%;
|
|
615
|
+
--hsl-input: 258 38% 17%;
|
|
616
|
+
--hsl-ring: 250 100% 76%;
|
|
617
|
+
--depth-1: #1a1230;
|
|
618
|
+
--depth-2: #241a42;
|
|
619
|
+
--depth-3: #2f2253;
|
|
620
|
+
--depth-4: #3d2d68;
|
|
621
|
+
--bg-root: #1a1230;
|
|
622
|
+
--bg-card: var(--depth-3);
|
|
623
|
+
--bg-input: var(--depth-2);
|
|
624
|
+
--md3-surface-container-lowest: #150e28;
|
|
625
|
+
--md3-surface-container-low: #241a42;
|
|
626
|
+
--md3-surface-container: #2a1f4c;
|
|
627
|
+
--md3-surface-container-high: #2f2253;
|
|
628
|
+
--md3-surface-container-highest: #3d2d68;
|
|
629
|
+
--md3-outline-variant: #463571;
|
|
630
|
+
--border-subtle: rgba(183,157,255,0.12);
|
|
631
|
+
--border-default: rgba(183,157,255,0.22);
|
|
632
|
+
--border-hover: rgba(183,157,255,0.40);
|
|
633
|
+
--accent-text: #c4b0ff;
|
|
634
|
+
--brand-primary: #8f8bff;
|
|
635
|
+
--brand-glow: #c4b0ff;
|
|
636
|
+
--text-primary: #f4f1fd;
|
|
637
|
+
--text-secondary: #cec4e8;
|
|
638
|
+
--text-muted: #a99fc8;
|
|
639
|
+
--text-dim: #786d99;
|
|
640
|
+
}
|
|
641
|
+
[data-theme="aubergine-light"] {
|
|
642
|
+
--hsl-background: 258 60% 96%;
|
|
643
|
+
--hsl-foreground: 258 45% 11%;
|
|
644
|
+
--hsl-card: 0 0% 100%;
|
|
645
|
+
--hsl-card-foreground: 258 45% 11%;
|
|
646
|
+
--hsl-popover: 0 0% 100%;
|
|
647
|
+
--hsl-popover-foreground: 258 45% 11%;
|
|
648
|
+
--hsl-primary: 258 70% 50%;
|
|
649
|
+
--hsl-primary-foreground: 0 0% 100%;
|
|
650
|
+
--hsl-secondary: 258 45% 92%;
|
|
651
|
+
--hsl-muted: 258 45% 92%;
|
|
652
|
+
--hsl-muted-foreground: 258 18% 42%;
|
|
653
|
+
--hsl-accent: 258 45% 92%;
|
|
654
|
+
--hsl-border: 258 30% 88%;
|
|
655
|
+
--hsl-input: 258 30% 88%;
|
|
656
|
+
--hsl-ring: 258 70% 50%;
|
|
657
|
+
--depth-1: #f4f1fc;
|
|
658
|
+
--depth-2: #ece6f8;
|
|
659
|
+
--depth-3: #ffffff;
|
|
660
|
+
--depth-4: #ffffff;
|
|
661
|
+
--bg-root: #f4f1fc;
|
|
662
|
+
--bg-card: #ffffff;
|
|
663
|
+
--bg-input: #ece6f8;
|
|
664
|
+
--md3-surface-container-lowest: #ffffff;
|
|
665
|
+
--md3-surface-container-low: #faf8fe;
|
|
666
|
+
--md3-surface-container: #f4f1fc;
|
|
667
|
+
--md3-surface-container-high: #ece6f8;
|
|
668
|
+
--md3-surface-container-highest: #e4dcf4;
|
|
669
|
+
--md3-outline-variant: #e0d8f0;
|
|
670
|
+
--border-subtle: rgba(60,32,110,0.10);
|
|
671
|
+
--border-default: rgba(60,32,110,0.16);
|
|
672
|
+
--border-hover: rgba(60,32,110,0.30);
|
|
673
|
+
--accent-text: #6d28d9;
|
|
674
|
+
--brand-primary: #6d28d9;
|
|
675
|
+
--brand-glow: #8b5cf6;
|
|
676
|
+
--text-primary: #160f22;
|
|
677
|
+
--text-secondary: #3f3460;
|
|
678
|
+
--text-muted: #6c6289;
|
|
679
|
+
--text-dim: #8a82a6;
|
|
680
|
+
}
|
|
681
|
+
[data-theme="arena"] {
|
|
682
|
+
--hsl-background: 160 16% 6%;
|
|
683
|
+
--hsl-foreground: 150 20% 96%;
|
|
684
|
+
--hsl-card: 158 14% 12%;
|
|
685
|
+
--hsl-card-foreground: 150 20% 96%;
|
|
686
|
+
--hsl-popover: 158 13% 16%;
|
|
687
|
+
--hsl-popover-foreground: 150 20% 96%;
|
|
688
|
+
--hsl-primary: 160 84% 39%;
|
|
689
|
+
--hsl-primary-foreground: 160 60% 8%;
|
|
690
|
+
--hsl-secondary: 158 12% 12%;
|
|
691
|
+
--hsl-muted: 158 12% 12%;
|
|
692
|
+
--hsl-muted-foreground: 152 12% 62%;
|
|
693
|
+
--hsl-accent: 158 14% 14%;
|
|
694
|
+
--hsl-border: 158 14% 18%;
|
|
695
|
+
--hsl-input: 158 12% 12%;
|
|
696
|
+
--hsl-ring: 160 84% 45%;
|
|
697
|
+
--depth-1: #0a0f0c;
|
|
698
|
+
--depth-2: #131b16;
|
|
699
|
+
--depth-3: #1b261f;
|
|
700
|
+
--depth-4: #233328;
|
|
701
|
+
--bg-root: #0a0f0c;
|
|
702
|
+
--bg-card: var(--depth-3);
|
|
703
|
+
--bg-input: var(--depth-2);
|
|
704
|
+
--md3-surface-container-lowest: #070b08;
|
|
705
|
+
--md3-surface-container-low: #131b16;
|
|
706
|
+
--md3-surface-container: #182019;
|
|
707
|
+
--md3-surface-container-high: #1b261f;
|
|
708
|
+
--md3-surface-container-highest: #233328;
|
|
709
|
+
--md3-outline-variant: #2a3a31;
|
|
710
|
+
--border-subtle: rgba(52,211,153,0.10);
|
|
711
|
+
--border-default: rgba(52,211,153,0.18);
|
|
712
|
+
--border-hover: rgba(52,211,153,0.32);
|
|
713
|
+
--accent-text: #34d399;
|
|
714
|
+
--brand-primary: #10b981;
|
|
715
|
+
--brand-glow: #34d399;
|
|
716
|
+
--text-primary: #ecfdf5;
|
|
717
|
+
--text-secondary: #c2e8d6;
|
|
718
|
+
--text-muted: #8fb6a3;
|
|
719
|
+
--text-dim: #5f8472;
|
|
720
|
+
}
|
|
721
|
+
[data-theme="arena-light"] {
|
|
722
|
+
--hsl-background: 150 30% 96%;
|
|
723
|
+
--hsl-foreground: 158 30% 10%;
|
|
724
|
+
--hsl-card: 0 0% 100%;
|
|
725
|
+
--hsl-card-foreground: 158 30% 10%;
|
|
726
|
+
--hsl-popover: 0 0% 100%;
|
|
727
|
+
--hsl-popover-foreground: 158 30% 10%;
|
|
728
|
+
--hsl-primary: 160 84% 27%;
|
|
729
|
+
--hsl-primary-foreground: 0 0% 100%;
|
|
730
|
+
--hsl-secondary: 150 25% 92%;
|
|
731
|
+
--hsl-muted: 150 25% 92%;
|
|
732
|
+
--hsl-muted-foreground: 158 14% 40%;
|
|
733
|
+
--hsl-accent: 150 25% 92%;
|
|
734
|
+
--hsl-border: 150 20% 86%;
|
|
735
|
+
--hsl-input: 150 20% 86%;
|
|
736
|
+
--hsl-ring: 160 84% 30%;
|
|
737
|
+
--depth-1: #f0f6f2;
|
|
738
|
+
--depth-2: #e6f0ea;
|
|
739
|
+
--depth-3: #ffffff;
|
|
740
|
+
--depth-4: #ffffff;
|
|
741
|
+
--bg-root: #f0f6f2;
|
|
742
|
+
--bg-card: #ffffff;
|
|
743
|
+
--bg-input: #e6f0ea;
|
|
744
|
+
--md3-surface-container-lowest: #ffffff;
|
|
745
|
+
--md3-surface-container-low: #f6fbf8;
|
|
746
|
+
--md3-surface-container: #f0f6f2;
|
|
747
|
+
--md3-surface-container-high: #e6f0ea;
|
|
748
|
+
--md3-surface-container-highest: #dcebe2;
|
|
749
|
+
--md3-outline-variant: #d7e8de;
|
|
750
|
+
--border-subtle: rgba(6,95,70,0.10);
|
|
751
|
+
--border-default: rgba(6,95,70,0.16);
|
|
752
|
+
--border-hover: rgba(6,95,70,0.30);
|
|
753
|
+
--accent-text: #047857;
|
|
754
|
+
--brand-primary: #059669;
|
|
755
|
+
--brand-glow: #10b981;
|
|
756
|
+
--text-primary: #06231a;
|
|
757
|
+
--text-secondary: #285048;
|
|
758
|
+
--text-muted: #5f8472;
|
|
759
|
+
--text-dim: #82a699;
|
|
760
|
+
}
|
|
761
|
+
[data-theme="tangle-dark"] {
|
|
762
|
+
--hsl-background: 0 0% 8.6275%;
|
|
763
|
+
--hsl-foreground: 0 0% 90.1961%;
|
|
764
|
+
--hsl-card: 0 0% 18.8235%;
|
|
765
|
+
--hsl-card-foreground: 0 0% 90.1961%;
|
|
766
|
+
--hsl-popover: 0 0% 20.7843%;
|
|
767
|
+
--hsl-popover-foreground: 0 0% 90.1961%;
|
|
768
|
+
--hsl-primary: 246 54% 51%;
|
|
769
|
+
--hsl-primary-foreground: 0 0% 100%;
|
|
770
|
+
--hsl-secondary: 0 0% 20.7843%;
|
|
771
|
+
--hsl-secondary-foreground: 0 0% 90.1961%;
|
|
772
|
+
--hsl-muted: 0 0% 20.7843%;
|
|
773
|
+
--hsl-muted-foreground: 0 0% 70.9804%;
|
|
774
|
+
--hsl-accent: 0 0% 20.7843%;
|
|
775
|
+
--hsl-accent-foreground: 0 0% 90.1961%;
|
|
776
|
+
--hsl-destructive: 348 74% 48%;
|
|
777
|
+
--hsl-destructive-foreground: 0 0% 100%;
|
|
778
|
+
--hsl-border: 0 0% 29.8039%;
|
|
779
|
+
--hsl-input: 0 0% 12.1569%;
|
|
780
|
+
--hsl-ring: 233 100% 87%;
|
|
781
|
+
--depth-1: #161616;
|
|
782
|
+
--depth-2: #303030;
|
|
783
|
+
--depth-3: #353535;
|
|
784
|
+
--depth-4: #3b3b3b;
|
|
785
|
+
--bg-root: #161616;
|
|
786
|
+
--bg-card: var(--depth-2);
|
|
787
|
+
--bg-input: hsl(var(--hsl-input));
|
|
788
|
+
--md3-surface-container-lowest: #101010;
|
|
789
|
+
--md3-surface-container-low: #242424;
|
|
790
|
+
--md3-surface-container: #303030;
|
|
791
|
+
--md3-surface-container-high: #353535;
|
|
792
|
+
--md3-surface-container-highest: #3b3b3b;
|
|
793
|
+
--md3-outline-variant: #4c4c4c;
|
|
794
|
+
--border-subtle: rgba(255, 255, 255, 0.10);
|
|
795
|
+
--border-default: rgba(255, 255, 255, 0.16);
|
|
796
|
+
--border-hover: rgba(255, 255, 255, 0.28);
|
|
797
|
+
--accent-text: #A5B4FC;
|
|
798
|
+
--brand-primary: #7C6CF6;
|
|
799
|
+
--brand-glow: #A5AAFC;
|
|
800
|
+
--text-primary: #e6e6e6;
|
|
801
|
+
--text-secondary: #c7c7c7;
|
|
802
|
+
--text-muted: #b5b5b5;
|
|
803
|
+
--text-dim: #a5a5a5;
|
|
804
|
+
}
|
|
805
|
+
[data-theme="tangle-light"] {
|
|
806
|
+
--hsl-background: 240 33% 98%;
|
|
807
|
+
--hsl-foreground: 245 32% 14%;
|
|
808
|
+
--hsl-card: 0 0% 100%;
|
|
809
|
+
--hsl-card-foreground: 245 32% 14%;
|
|
810
|
+
--hsl-popover: 0 0% 100%;
|
|
811
|
+
--hsl-popover-foreground: 245 32% 14%;
|
|
812
|
+
--hsl-primary: 239 84% 60%;
|
|
813
|
+
--hsl-primary-foreground: 0 0% 100%;
|
|
814
|
+
--hsl-secondary: 240 30% 95%;
|
|
815
|
+
--hsl-muted: 240 28% 95%;
|
|
816
|
+
--hsl-muted-foreground: 240 8% 42%;
|
|
817
|
+
--hsl-accent: 240 30% 95%;
|
|
818
|
+
--hsl-border: 240 20% 90%;
|
|
819
|
+
--hsl-input: 240 20% 90%;
|
|
820
|
+
--hsl-ring: 239 84% 60%;
|
|
821
|
+
--depth-1: #f4f4f9;
|
|
822
|
+
--depth-2: #edecf4;
|
|
823
|
+
--depth-3: #ffffff;
|
|
824
|
+
--depth-4: #ffffff;
|
|
825
|
+
--bg-root: #f4f4f9;
|
|
826
|
+
--bg-card: #ffffff;
|
|
827
|
+
--bg-input: #edecf4;
|
|
828
|
+
--md3-surface-container-lowest: #ffffff;
|
|
829
|
+
--md3-surface-container-low: #f8f8fc;
|
|
830
|
+
--md3-surface-container: #f4f4f9;
|
|
831
|
+
--md3-surface-container-high: #edecf4;
|
|
832
|
+
--md3-surface-container-highest: #e5e4ee;
|
|
833
|
+
--md3-outline-variant: #e2e1ec;
|
|
834
|
+
--border-subtle: rgba(20,20,40,0.08);
|
|
835
|
+
--border-default: rgba(20,20,40,0.14);
|
|
836
|
+
--border-hover: rgba(20,20,40,0.26);
|
|
837
|
+
--accent-text: #4f46e5;
|
|
838
|
+
--brand-primary: #6366f1;
|
|
839
|
+
--brand-glow: #818cf8;
|
|
840
|
+
--text-primary: #15131f;
|
|
841
|
+
--text-secondary: #3f3a52;
|
|
842
|
+
--text-muted: #6a6680;
|
|
843
|
+
--text-dim: #9490a6;
|
|
844
|
+
}
|
|
845
|
+
.dark[data-theme="intelligence"] {
|
|
846
|
+
--md3-surface: #0d0a10;
|
|
847
|
+
--md3-surface-dim: #0a080d;
|
|
848
|
+
--md3-surface-bright: #2e2936;
|
|
849
|
+
--md3-surface-container-lowest: #070509;
|
|
850
|
+
--md3-surface-container-low: #100d15;
|
|
851
|
+
--md3-surface-container: #14111a;
|
|
852
|
+
--md3-surface-container-high: #1b1821;
|
|
853
|
+
--md3-surface-container-highest: #24202b;
|
|
854
|
+
--md3-surface-variant: #24202b;
|
|
855
|
+
--md3-on-surface-variant: #aaa6bb;
|
|
856
|
+
--hsl-background: 262 24% 5%;
|
|
857
|
+
--hsl-card: 262 19% 11%;
|
|
858
|
+
--hsl-popover: 260 16% 13%;
|
|
859
|
+
--hsl-secondary: 262 15% 18%;
|
|
860
|
+
--hsl-muted: 262 17% 15%;
|
|
861
|
+
--hsl-muted-foreground: 255 12% 62%;
|
|
862
|
+
--hsl-accent: 262 15% 20%;
|
|
863
|
+
--hsl-border: 262 12% 28%;
|
|
864
|
+
--hsl-input: 260 14% 16%;
|
|
865
|
+
--sidebar-background: 264 26% 4%;
|
|
866
|
+
--sidebar-accent: 262 16% 16%;
|
|
867
|
+
--sidebar-border: 262 12% 13%;
|
|
868
|
+
--depth-1: #0e0b13;
|
|
869
|
+
--depth-2: #16131c;
|
|
870
|
+
--depth-3: #201c28;
|
|
871
|
+
--depth-4: #2a2533;
|
|
872
|
+
--bg-elevated: hsl(262 17% 15%);
|
|
873
|
+
--bg-section: hsl(262 22% 7%);
|
|
874
|
+
--bg-root: radial-gradient(ellipse 70% 50% at 20% 0%, rgba(129, 99, 241, 0.08), transparent),
|
|
875
|
+
radial-gradient(ellipse 50% 40% at 80% 10%, rgba(129, 140, 248, 0.06), transparent),
|
|
876
|
+
linear-gradient(180deg, var(--depth-1), #0d0a12 100%);
|
|
877
|
+
--border-subtle: rgba(120, 108, 158, 0.1);
|
|
878
|
+
--border-default: rgba(120, 108, 158, 0.18);
|
|
879
|
+
--border-hover: rgba(120, 108, 158, 0.28);
|
|
880
|
+
}
|
|
881
|
+
}
|
|
882
|
+
@layer theme{/* GENERATED from @tangle-network/brand/styles/legacy-light.css
|
|
883
|
+
* SHA-256: ebbcc4fd742c1b1b7f7b64f0fbcfb3d356ecedbde531e58bc221f78f96012f3f
|
|
884
|
+
* Run node src/theme/build.mjs --write; do not edit colors or ratios here. */
|
|
885
|
+
:where(:root),
|
|
886
|
+
[data-sandbox-ui],
|
|
887
|
+
[data-sandbox-theme="vault"],
|
|
888
|
+
[data-sandbox-theme="dawn"],
|
|
889
|
+
[data-theme="dark"],
|
|
890
|
+
[data-theme="light"],
|
|
891
|
+
[data-theme="aubergine"],
|
|
892
|
+
[data-theme="aubergine-light"],
|
|
893
|
+
[data-theme="arena"],
|
|
894
|
+
[data-theme="arena-light"],
|
|
895
|
+
[data-theme="tangle-dark"],
|
|
896
|
+
[data-theme="tangle-light"],
|
|
897
|
+
.light,
|
|
898
|
+
.dark {
|
|
899
|
+
--agent-app-accent-hsl: 229.6552 93.5484% 81.7647%;
|
|
900
|
+
--agent-app-accent-foreground-hsl: 0 0% 0%;
|
|
901
|
+
--agent-app-success-hsl: 154.7107 60.199% 60.5882%;
|
|
902
|
+
--agent-app-success-foreground-hsl: 0 0% 0%;
|
|
903
|
+
--agent-app-danger-hsl: 2.7907 100% 83.1373%;
|
|
904
|
+
--agent-app-danger-foreground-hsl: 0 0% 0%;
|
|
905
|
+
--agent-app-warning-text-hsl: 41.4545 88.2353% 63.3333%;
|
|
906
|
+
--agent-app-warning-foreground-hsl: 0 0% 0%;
|
|
907
|
+
--agent-app-radius-lg: 10px;
|
|
908
|
+
--agent-app-radius-sm-factor: 0.6;
|
|
909
|
+
--agent-app-radius-md-factor: 0.8;
|
|
910
|
+
--agent-app-radius-xl-factor: 1.2
|
|
911
|
+
}
|
|
912
|
+
[data-sandbox-theme="vault"]:where(:not(.dark)),
|
|
913
|
+
[data-sandbox-theme="dawn"]:where(:not(.dark)),
|
|
914
|
+
[data-theme="light"],
|
|
915
|
+
[data-theme="aubergine-light"],
|
|
916
|
+
[data-theme="arena-light"],
|
|
917
|
+
[data-theme="tangle-light"],
|
|
918
|
+
.light,
|
|
919
|
+
:where(:root) {
|
|
920
|
+
--agent-app-accent-hsl: 243.2927 80.3922% 60%;
|
|
921
|
+
--agent-app-accent-foreground-hsl: 0 0% 100%;
|
|
922
|
+
--agent-app-success-hsl: 162.931 93.5484% 24.3137%;
|
|
923
|
+
--agent-app-success-foreground-hsl: 0 0% 100%;
|
|
924
|
+
--agent-app-danger-hsl: 0 73.7089% 41.7647%;
|
|
925
|
+
--agent-app-danger-foreground-hsl: 0 0% 100%;
|
|
926
|
+
--agent-app-warning-text-hsl: 25.9259 90% 35.2941%;
|
|
927
|
+
--agent-app-warning-foreground-hsl: 0 0% 0%;
|
|
928
|
+
--agent-app-radius-lg: 10px;
|
|
929
|
+
--agent-app-radius-sm-factor: 0.6;
|
|
930
|
+
--agent-app-radius-md-factor: 0.8;
|
|
931
|
+
--agent-app-radius-xl-factor: 1.2
|
|
932
|
+
}
|
|
933
|
+
[data-theme="aubergine"] {
|
|
934
|
+
--agent-app-accent-hsl: 255.1899 100% 84.5098%;
|
|
935
|
+
--agent-app-accent-foreground-hsl: 0 0% 0%
|
|
936
|
+
}
|
|
937
|
+
[data-theme="aubergine-light"] {
|
|
938
|
+
--agent-app-accent-hsl: 263.3898 69.9605% 50.3922%;
|
|
939
|
+
--agent-app-accent-foreground-hsl: 0 0% 100%
|
|
940
|
+
}
|
|
941
|
+
[data-theme="arena"] {
|
|
942
|
+
--agent-app-accent-hsl: 158.1132 64.3725% 51.5686%;
|
|
943
|
+
--agent-app-accent-foreground-hsl: 0 0% 0%
|
|
944
|
+
}
|
|
945
|
+
[data-theme="arena-light"] {
|
|
946
|
+
--agent-app-accent-hsl: 162.931 93.5484% 24.3137%;
|
|
947
|
+
--agent-app-accent-foreground-hsl: 0 0% 100%
|
|
948
|
+
}
|
|
949
|
+
[data-theme="tangle-dark"] {
|
|
950
|
+
--agent-app-accent-hsl: 229.6552 93.5484% 81.7647%;
|
|
951
|
+
--agent-app-accent-foreground-hsl: 0 0% 0%
|
|
952
|
+
}
|
|
953
|
+
[data-theme="tangle-light"] {
|
|
954
|
+
--agent-app-accent-hsl: 243.3962 75.3555% 58.6275%;
|
|
955
|
+
--agent-app-accent-foreground-hsl: 0 0% 100%
|
|
956
|
+
}
|
|
957
|
+
}
|
|
23
958
|
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
nearest integer (`--neutral-94` is L 0.945), so the rule stays checkable
|
|
30
|
-
rather than conventional. Chroma comes in TWO bands, because the two ends
|
|
31
|
-
of the ladder do different work:
|
|
32
|
-
|
|
33
|
-
dark band L ≤ 0.4 — the dark theme's surface ladder: chroma
|
|
34
|
-
0.014–0.018 at hue 280, falling as L rises. The deep
|
|
35
|
-
surfaces carry the deliberate cool cast; the border stop
|
|
36
|
-
carries least, so a hairline reads as an edge, not a tint.
|
|
37
|
-
The lightness steps here are deliberately SMALL — at the
|
|
38
|
-
bottom of sRGB, rungs 0.03 apart measure 1.05:1, which is
|
|
39
|
-
physically imperceptible, so this band's separation comes
|
|
40
|
-
from the whole stack (fill step + border tier + shadow),
|
|
41
|
-
not from any single rung.
|
|
42
|
-
light band L ≥ 0.8 — chroma 0.004–0.008 at hue 280: the tinted-canvas
|
|
43
|
-
values from the elevation audit. The mid stops (49, 70 —
|
|
44
|
-
text, not surfaces) keep the legacy 0.004 at hue 286; at
|
|
45
|
-
that chroma the 6° hue difference is below what sRGB shows.
|
|
46
|
-
|
|
47
|
-
HSL saturation is not chroma, which is why the `-hsl` mirrors wander in
|
|
48
|
-
S% while the oklch sources hold their bands: the ramp this replaced
|
|
49
|
-
carried a nominal "S 5–7%" throughout that produced 0.0014 chroma at
|
|
50
|
-
L 0.976 and 0.0154 at L 0.478 — visibly gaining blue as it darkened.
|
|
51
|
-
|
|
52
|
-
The terminal stop is chroma 0 because sRGB admits no chroma at L 1.
|
|
53
|
-
|
|
54
|
-
Each stop ships TWICE, and the pair is the whole compatibility story:
|
|
55
|
-
--neutral-NN the oklch value — the SOURCE, what new work reads
|
|
56
|
-
--neutral-NN-hsl the same colour as an "H S% L%" channel triple
|
|
57
|
-
A pinned consumer's `hsl(var(--border))` must keep resolving, and CSS
|
|
58
|
-
cannot convert oklch to a bare channel triple, so the triple is a mirror
|
|
59
|
-
rather than a derivation. tests/theme/tokens-contract.test.ts converts
|
|
60
|
-
every oklch stop to HSL and fails if its mirror has drifted, so the two
|
|
61
|
-
forms cannot disagree without a red test. */
|
|
62
|
-
/* dark band — the dark theme's surface ladder, bottom up: canvas-backdrop,
|
|
63
|
-
background, input (recessed), card, secondary/muted/accent, popover,
|
|
64
|
-
border. The first three RETUNE the stops the light theme's ink also reads;
|
|
65
|
-
the top four are new rungs. Steps bg→card→secondary→popover measure
|
|
66
|
-
1.19/1.14/1.09 (card→popover 1.24) — ChatGPT-class steps at brand chroma:
|
|
67
|
-
visible on real displays, not just on the reference monitor. */
|
|
68
|
-
--neutral-16: oklch(0.16 0.018 280);
|
|
69
|
-
--neutral-16-hsl: 234.9 28.5% 6.4%;
|
|
70
|
-
--neutral-19: oklch(0.19 0.018 280);
|
|
71
|
-
--neutral-19-hsl: 234.5 21.2% 9%;
|
|
72
|
-
--neutral-22: oklch(0.215 0.018 280);
|
|
73
|
-
--neutral-22-hsl: 234.2 17.6% 11.3%;
|
|
74
|
-
--neutral-26: oklch(0.26 0.017 280);
|
|
75
|
-
--neutral-26-hsl: 233.8 12.9% 15.4%;
|
|
76
|
-
--neutral-30: oklch(0.3 0.017 280);
|
|
77
|
-
--neutral-30-hsl: 233.7 10.7% 19.3%;
|
|
78
|
-
--neutral-32: oklch(0.32 0.016 280);
|
|
79
|
-
--neutral-32-hsl: 233.6 9.3% 21.2%;
|
|
80
|
-
--neutral-36: oklch(0.365 0.014 280);
|
|
81
|
-
--neutral-36-hsl: 233.4 7% 25.6%;
|
|
82
|
-
/* mid stops — text, both themes */
|
|
83
|
-
--neutral-49: oklch(0.49 0.004 286);
|
|
84
|
-
--neutral-49-hsl: 239.7 1.3% 38.2%;
|
|
85
|
-
--neutral-70: oklch(0.7 0.004 286);
|
|
86
|
-
--neutral-70-hsl: 239.6 1.5% 62.5%;
|
|
87
|
-
/* light band — the light theme's surfaces, bottom up: border/input,
|
|
88
|
-
canvas-backdrop, background, secondary/muted/accent, terminal white. */
|
|
89
|
-
--neutral-85: oklch(0.85 0.0079 280);
|
|
90
|
-
--neutral-85-hsl: 233.1 6.8% 81.4%;
|
|
91
|
-
--neutral-92: oklch(0.925 0.0069 280);
|
|
92
|
-
--neutral-92-hsl: 233.1 12.5% 90.9%;
|
|
93
|
-
--neutral-94: oklch(0.945 0.0059 280);
|
|
94
|
-
--neutral-94-hsl: 233.2 14.8% 93.4%;
|
|
95
|
-
--neutral-96: oklch(0.965 0.0049 280);
|
|
96
|
-
--neutral-96-hsl: 233.2 19.9% 95.9%;
|
|
97
|
-
--neutral-100: oklch(1 0 0);
|
|
98
|
-
--neutral-100-hsl: 0 0% 100%;
|
|
99
|
-
|
|
100
|
-
/* shadcn channel triples — "H S% L%", consumed as hsl(var(--name)).
|
|
101
|
-
Neutrals point at a ramp stop; the brand hues (primary/destructive/status)
|
|
102
|
-
keep their measured HSL, because moving them would move agent-app off
|
|
103
|
-
@tangle-network/brand (Tangle Quiet) and off the status colours that were
|
|
104
|
-
tuned for AA as TEXT. agent-app keeps its own light-default /
|
|
105
|
-
[data-theme="dark"] scope model (brand is dark-default), so /theme stays
|
|
106
|
-
dependency-free — only the values are shared, not the cascade. */
|
|
107
|
-
--background: var(--neutral-94-hsl);
|
|
108
|
-
--foreground: var(--neutral-16-hsl);
|
|
109
|
-
--card: var(--neutral-100-hsl);
|
|
110
|
-
--card-foreground: var(--neutral-16-hsl);
|
|
111
|
-
--popover: var(--neutral-100-hsl);
|
|
112
|
-
--popover-foreground: var(--neutral-16-hsl);
|
|
113
|
-
--primary: 245 62% 57%;
|
|
114
|
-
--primary-foreground: var(--neutral-100-hsl);
|
|
115
|
-
--secondary: var(--neutral-96-hsl);
|
|
116
|
-
--secondary-foreground: var(--neutral-22-hsl);
|
|
117
|
-
--muted: var(--neutral-96-hsl);
|
|
118
|
-
--muted-foreground: var(--neutral-49-hsl);
|
|
119
|
-
--accent: var(--neutral-96-hsl);
|
|
120
|
-
--accent-foreground: var(--neutral-22-hsl);
|
|
121
|
-
--destructive: 0 72% 41%;
|
|
122
|
-
--destructive-foreground: var(--neutral-100-hsl);
|
|
123
|
-
--border: var(--neutral-85-hsl);
|
|
124
|
-
--input: var(--neutral-85-hsl);
|
|
125
|
-
--ring: 245 62% 57%;
|
|
126
|
-
/* status colors — brand hues (teal/gold/red), but lightness kept dark enough
|
|
127
|
-
to clear WCAG AA when used AS TEXT on tinted chips. Brand's own status
|
|
128
|
-
accents are dot/surface colors and are not text-contrast-tuned. */
|
|
129
|
-
--success: 160 84% 26%;
|
|
130
|
-
--success-foreground: 0 0% 100%;
|
|
131
|
-
--warning: 41 96% 38%;
|
|
132
|
-
--warning-foreground: 38 92% 12%;
|
|
133
|
-
/* Warning as TEXT on a warning-TINTED surface (the approval card's
|
|
134
|
-
`bg-warning/[0.06]`), which is a different surface from the solid gold chip
|
|
135
|
-
`--warning-foreground` is paired with — and the reason that pairing cannot
|
|
136
|
-
serve both. Measured on the shipped approval card: no single lightness
|
|
137
|
-
clears AA in both themes, because the tint tracks the page. On the light
|
|
138
|
-
page the tint composites to rgb(233,230,227) and the ramp needs L <= 27%
|
|
139
|
-
(L 28% is 4.43:1); on the dark page rgb(32,29,29) it needs L >= 36%
|
|
140
|
-
(L 34% is 4.06:1). So this token re-themes where `--warning` and
|
|
141
|
-
`--warning-foreground` deliberately do not. 27% / 56% are the values with
|
|
142
|
-
margin either side of those knees: 4.69:1 light, 9.12:1 dark. */
|
|
143
|
-
--warning-strong: 41 96% 27%;
|
|
144
|
-
|
|
145
|
-
/* canvas/sequences aliases — full colors, resolve to the triples above */
|
|
146
|
-
--bg-input: hsl(var(--card));
|
|
147
|
-
--text-primary: hsl(var(--foreground));
|
|
148
|
-
--text-secondary: hsl(var(--secondary-foreground));
|
|
149
|
-
--text-muted: hsl(var(--muted-foreground));
|
|
150
|
-
--text-danger: hsl(var(--destructive));
|
|
151
|
-
--text-warning: hsl(var(--warning));
|
|
152
|
-
--border-default: hsl(var(--border));
|
|
153
|
-
--brand-primary: hsl(var(--primary));
|
|
154
|
-
--editor-selection-background: hsl(var(--primary));
|
|
155
|
-
--editor-selection-foreground: hsl(var(--background));
|
|
156
|
-
|
|
157
|
-
/* MD3 bridge — sandbox-ui chat/composer components (AgentComposer and its
|
|
158
|
-
pickers) are authored against the brand MD3 surface ladder + accent tokens.
|
|
159
|
-
Map them onto the shadcn triples here so those components theme from this
|
|
160
|
-
same source in any agent-app shell. Full colors via the triples, so the dark
|
|
161
|
-
scope re-themes them through the cascade. The `surface-container*` Tailwind
|
|
162
|
-
utilities are wired separately in the preset. */
|
|
163
|
-
--md3-outline-variant: hsl(var(--border));
|
|
164
|
-
--md3-surface-container-low: hsl(var(--card));
|
|
165
|
-
/* `--md3-surface-container` (the canonical run-row fill) joins low on `card`:
|
|
166
|
-
the brand ladder's low/container distinction compresses onto the shadcn
|
|
167
|
-
ladder here, exactly as the preset's `surface-container*` mapping does. */
|
|
168
|
-
--md3-surface-container: hsl(var(--card));
|
|
169
|
-
--accent-surface-soft: hsl(var(--accent));
|
|
170
|
-
--accent-text: hsl(var(--accent-foreground));
|
|
171
|
-
--status-error: hsl(var(--destructive));
|
|
172
|
-
/* Status text on a tint (the run-row status dots + collapsed error line) —
|
|
173
|
-
full colors via the triples, so the dark scope re-themes them too. */
|
|
174
|
-
--surface-success-text: hsl(var(--success));
|
|
175
|
-
--surface-danger-text: hsl(var(--destructive));
|
|
176
|
-
|
|
177
|
-
/* canvas-only surfaces (not part of the shadcn vocabulary). Name matches the
|
|
178
|
-
`--canvas-backdrop` the design-canvas Workspace references (with a #1a1a1a
|
|
179
|
-
fallback). Two ramp stops BELOW the page, so elevation reads the right way
|
|
180
|
-
up: canvas under page, white card lifted above both. */
|
|
181
|
-
--canvas-backdrop: hsl(var(--neutral-92-hsl));
|
|
182
|
-
|
|
183
|
-
/* Keyboard focus ring. Resolves through `--ring`, so the dark scope re-themes
|
|
184
|
-
it by the same cascade every other token here uses. */
|
|
185
|
-
--focus-ring-width: 2px;
|
|
186
|
-
--focus-ring-offset: 2px;
|
|
187
|
-
--focus-ring-color: hsl(var(--ring));
|
|
188
|
-
|
|
189
|
-
/* ── Radius ──────────────────────────────────────────────────────────────
|
|
190
|
-
One root, every step a multiplier of it, so a product re-proportions its
|
|
191
|
-
whole chrome by changing ONE number. `--radius-md` keeps its shipped
|
|
192
|
-
0.5rem exactly (0.625 x 0.8), which is what pins the root at 0.625rem:
|
|
193
|
-
gtm-agent consumes `--radius-md` for its composer send button, and the
|
|
194
|
-
sandbox-ui MD3 components bridged above read it too.
|
|
195
|
-
|
|
196
|
-
The root is `--radius-base`, NOT `--radius`, and that is deliberate. Half
|
|
197
|
-
the fleet already owns `--radius` (tax-agent sets 0.5rem, legal-agent
|
|
198
|
-
0.625rem) inside `@layer base`, while this file is linked UNLAYERED — an
|
|
199
|
-
unlayered declaration beats any layered one, so shipping `--radius` here
|
|
200
|
-
would silently seize a token products already drive their own scales from.
|
|
201
|
-
A product that wants its root to drive this ladder opts in with one line:
|
|
202
|
-
`--radius-base: var(--radius)`. */
|
|
203
|
-
--radius-base: 0.625rem;
|
|
204
|
-
--radius-sm: calc(var(--radius-base) * 0.6); /* 0.375rem — 6px */
|
|
205
|
-
--radius-md: calc(var(--radius-base) * 0.8); /* 0.5rem — 8px */
|
|
206
|
-
--radius-lg: var(--radius-base); /* 0.625rem — 10px */
|
|
207
|
-
--radius-xl: calc(var(--radius-base) * 1.4); /* 0.875rem — 14px */
|
|
208
|
-
--radius-2xl: calc(var(--radius-base) * 1.8); /* 1.125rem — 18px */
|
|
209
|
-
--radius-3xl: calc(var(--radius-base) * 2.2); /* 1.375rem — 22px */
|
|
210
|
-
|
|
211
|
-
/* ── Motion ──────────────────────────────────────────────────────────────
|
|
212
|
-
Four durations and three curves, paired into the three composites a
|
|
213
|
-
component actually reaches for. Before these, 64 transitions in this
|
|
214
|
-
package ran on Tailwind's implicit 150 ms / default curve with no named
|
|
215
|
-
intent — nothing was WRONG, but nothing was decidable either.
|
|
216
|
-
|
|
217
|
-
The durations are a x1.5-ish ladder rather than round numbers, because
|
|
218
|
-
what a user perceives is the ratio: 90 reads as instant, 150 as a
|
|
219
|
-
response, 240 as a movement you can follow, 360 as a surface travelling.
|
|
220
|
-
|
|
221
|
-
instant a control acknowledging a pointer (hover/active colour)
|
|
222
|
-
fast a state change on a control already on screen
|
|
223
|
-
base a surface arriving or leaving (popover, panel, disclosure)
|
|
224
|
-
slow a full-height surface travelling (drawer, sheet, sidebar)
|
|
225
|
-
|
|
226
|
-
`fast` is 150 ms on purpose: it is what those 64 transitions already run
|
|
227
|
-
at, so adopting the token is a rename, never a retune.
|
|
228
|
-
|
|
229
|
-
Curves: entrances decelerate hard and land softly; state changes
|
|
230
|
-
decelerate normally; exits ACCELERATE away, because a user who dismissed
|
|
231
|
-
something is done with it and should not wait for it to glide out. */
|
|
232
|
-
--duration-instant: 90ms;
|
|
233
|
-
--duration-fast: 150ms;
|
|
234
|
-
--duration-base: 240ms;
|
|
235
|
-
--duration-slow: 360ms;
|
|
236
|
-
--ease-standard: cubic-bezier(0.2, 0.8, 0.2, 1);
|
|
237
|
-
--ease-entrance: cubic-bezier(0.22, 1, 0.36, 1);
|
|
238
|
-
--ease-exit: cubic-bezier(0.4, 0, 1, 1);
|
|
239
|
-
/* Drop-in duration+easing pairs: `transition: background-color var(--motion-control)`. */
|
|
240
|
-
--motion-control: var(--duration-fast) var(--ease-standard);
|
|
241
|
-
--motion-surface: var(--duration-base) var(--ease-entrance);
|
|
242
|
-
--motion-dismiss: var(--duration-instant) var(--ease-exit);
|
|
243
|
-
|
|
244
|
-
/* ── Entrance choreography ───────────────────────────────────────────────
|
|
245
|
-
The durations above answer "how fast does an existing thing change".
|
|
246
|
-
These answer "how does a thing that was not there ARRIVE", which is most
|
|
247
|
-
of what an agent surface does: text streams in, rows appear as work
|
|
248
|
-
completes, a trace expands, a pending label waits.
|
|
249
|
-
|
|
250
|
-
Shipping the ladder without these is why this package had FOUR durations,
|
|
251
|
-
THREE curves, and ZERO keyframes on `/web-react` — every arrival was a
|
|
252
|
-
pop, which reads as cheap no matter how correct the colours are.
|
|
253
|
-
|
|
254
|
-
`--motion-stream` is longer than `base` on purpose: streamed text arrives
|
|
255
|
-
continuously, so each chunk overlaps its neighbours and a fast curve makes
|
|
256
|
-
the paragraph flicker. `--motion-arrive` is the row/card entrance and is
|
|
257
|
-
meant to be staggered by index (see `--stagger-step`). */
|
|
258
|
-
--duration-stream: 420ms;
|
|
259
|
-
--duration-arrive: 600ms;
|
|
260
|
-
--ease-expo: cubic-bezier(0.23, 1, 0.32, 1);
|
|
261
|
-
--motion-stream: var(--duration-stream) var(--ease-expo);
|
|
262
|
-
--motion-arrive: var(--duration-arrive) var(--ease-expo);
|
|
263
|
-
/* Per-item delay in a staggered group. 5 items = 200ms tail, which stays
|
|
264
|
-
under the 250ms an interface can add before it reads as latency. */
|
|
265
|
-
--stagger-step: 50ms;
|
|
266
|
-
/* Position in a staggered group, overridden PER ELEMENT by the caller. It is
|
|
267
|
-
declared here with a zero default rather than read through a `var()`
|
|
268
|
-
fallback so the file never references a token it does not define — an
|
|
269
|
-
undefined `var()` resolves to nothing and paints silently, which is the
|
|
270
|
-
failure the token contract exists to catch. */
|
|
271
|
-
--stagger-index: 0;
|
|
272
|
-
/* How far an arriving surface travels, and how far a streamed chunk resolves
|
|
273
|
-
from. Both are small: motion that announces itself is motion you notice
|
|
274
|
-
twice. */
|
|
275
|
-
--arrive-distance: 8px;
|
|
276
|
-
--stream-blur: 4px;
|
|
277
|
-
|
|
278
|
-
/* ── Border tiers ────────────────────────────────────────────────────────
|
|
279
|
-
Three strengths of the SAME border colour, because a divider inside a
|
|
280
|
-
panel and the edge of a card floated on the page are not the same line,
|
|
281
|
-
and shipping one strength for both is what makes a UI read boxy.
|
|
282
|
-
|
|
283
|
-
--border-soft dividers and de-emphasised edges — the tier the
|
|
284
|
-
`border-border` utility maps to, so all 151 of this
|
|
285
|
-
package's usages move together
|
|
286
|
-
--card-edge a container that must read as a container
|
|
287
|
-
hsl(--border) full strength: form-field edges (`--input`), and any
|
|
288
|
-
edge a component deliberately emphasises
|
|
289
|
-
|
|
290
|
-
LIGHT is 40% / 60%. A 1px hairline, contrast of the composited line
|
|
291
|
-
against the surface it sits on, rendered and read back by
|
|
292
|
-
playground/scripts/token-render.mjs:
|
|
959
|
+
@layer theme {
|
|
960
|
+
:where(:root) {
|
|
961
|
+
/* Preserve the legacy host scaling hook without declaring host --radius. */
|
|
962
|
+
--radius-base: var(--agent-app-radius-lg);
|
|
963
|
+
}
|
|
293
964
|
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
965
|
+
:where(:root),
|
|
966
|
+
.dark,
|
|
967
|
+
.light,
|
|
968
|
+
[data-theme],
|
|
969
|
+
[data-sandbox-theme],
|
|
970
|
+
[data-sandbox-ui] {
|
|
971
|
+
/* Legacy primary/success/destructive also paint TEXT, unlike Brand's
|
|
972
|
+
solid-control/dot roles. The checked projection converts Brand's text
|
|
973
|
+
roles to HSL channels and chooses a canonical black/white solid label.
|
|
974
|
+
Brand's --hsl-* and --surface-* remain available, unchanged. */
|
|
975
|
+
--primary: var(--agent-app-accent-hsl);
|
|
976
|
+
--primary-foreground: var(--agent-app-accent-foreground-hsl);
|
|
977
|
+
--success: var(--agent-app-success-hsl);
|
|
978
|
+
--success-foreground: var(--agent-app-success-foreground-hsl);
|
|
979
|
+
--destructive: var(--agent-app-danger-hsl);
|
|
980
|
+
--destructive-foreground: var(--agent-app-danger-foreground-hsl);
|
|
981
|
+
--warning-foreground: var(--agent-app-warning-foreground-hsl);
|
|
982
|
+
--warning-strong: var(--agent-app-warning-text-hsl);
|
|
299
983
|
|
|
300
|
-
|
|
301
|
-
package's dividers sit, while the white card's fill step does the
|
|
302
|
-
containing; 60% is far enough above it (1.309 vs 1.198) to read as a
|
|
303
|
-
DIFFERENT decision, short of the 1.584 that reads as a box.
|
|
984
|
+
}
|
|
304
985
|
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
986
|
+
:where(:root), .dark, .light, [data-theme], [data-sandbox-theme],
|
|
987
|
+
[data-sandbox-ui], [data-agent-app-theme] {
|
|
988
|
+
/* Preserve the channel -> full-color compatibility path for host overrides.
|
|
989
|
+
Re-resolve at EACH boundary: inherited custom properties are already
|
|
990
|
+
computed. Never map --bg-input to --input or --card. Brand owns its fill. */
|
|
991
|
+
--text-primary: hsl(var(--foreground));
|
|
992
|
+
--text-secondary: hsl(var(--secondary-foreground));
|
|
993
|
+
--text-muted: hsl(var(--muted-foreground));
|
|
994
|
+
--text-danger: hsl(var(--destructive));
|
|
995
|
+
--text-warning: hsl(var(--warning-strong));
|
|
996
|
+
--brand-primary: hsl(var(--primary));
|
|
997
|
+
--editor-selection-background: hsl(var(--primary));
|
|
998
|
+
--editor-selection-foreground: hsl(var(--primary-foreground));
|
|
999
|
+
--canvas-backdrop: var(--md3-surface-dim);
|
|
311
1000
|
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
1001
|
+
/* Old app names, canonical role decisions. Keep the MD3 surface ladder
|
|
1002
|
+
intact: card/container/high/highest are not interchangeable. */
|
|
1003
|
+
--border-soft: var(--border-subtle);
|
|
1004
|
+
--card-edge: var(--border-default);
|
|
1005
|
+
--shadow-raised: var(--shadow-card);
|
|
1006
|
+
--focus-ring-width: 2px;
|
|
1007
|
+
--focus-ring-offset: 2px;
|
|
1008
|
+
--focus-ring-color: hsl(var(--ring));
|
|
316
1009
|
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
--border-soft: color-mix(in oklch, hsl(var(--border)) 40%, transparent);
|
|
326
|
-
--card-edge: color-mix(in oklch, hsl(var(--border)) 60%, transparent);
|
|
1010
|
+
/* Ratios are generated from Brand's current radius roles, not authored here.
|
|
1011
|
+
The two extra legacy names are composition adapters, not a second scale. */
|
|
1012
|
+
--radius-sm: calc(var(--radius-base) * var(--agent-app-radius-sm-factor));
|
|
1013
|
+
--radius-md: calc(var(--radius-base) * var(--agent-app-radius-md-factor));
|
|
1014
|
+
--radius-lg: var(--radius-base);
|
|
1015
|
+
--radius-xl: calc(var(--radius-base) * var(--agent-app-radius-xl-factor));
|
|
1016
|
+
--radius-2xl: calc(var(--radius-lg) + var(--radius-md));
|
|
1017
|
+
--radius-3xl: calc(var(--radius-xl) + var(--radius-lg));
|
|
327
1018
|
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
floating-composer values (src/web-react/chat-composer.tsx) unchanged;
|
|
332
|
-
`--shadow-overlay` is the higher lift for popovers and dialogs. Dark
|
|
333
|
-
doubles the alpha — the same shadow over a near-black surface reads at
|
|
334
|
-
roughly half its light-theme strength, so the dark theme compensates at
|
|
335
|
-
the token, not at every component. */
|
|
336
|
-
--shadow-raised: 0 1px 2px hsl(var(--foreground) / 0.05), 0 12px 28px hsl(var(--foreground) / 0.07);
|
|
337
|
-
--shadow-overlay: 0 2px 6px hsl(var(--foreground) / 0.06), 0 16px 40px hsl(var(--foreground) / 0.1);
|
|
1019
|
+
/* A studio notice, not a shared palette role. */
|
|
1020
|
+
--studio-notice-bg: color-mix(in srgb, hsl(var(--primary)) 8%, hsl(var(--card)));
|
|
1021
|
+
}
|
|
338
1022
|
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
card read as no tint at all. */
|
|
344
|
-
--studio-notice-bg: color-mix(in srgb, hsl(var(--primary)) 8%, hsl(var(--card)));
|
|
1023
|
+
.dark,
|
|
1024
|
+
[data-theme='dark'] {
|
|
1025
|
+
--studio-notice-bg: color-mix(in srgb, hsl(var(--primary)) 15%, hsl(var(--card)));
|
|
1026
|
+
}
|
|
345
1027
|
}
|
|
346
1028
|
|
|
347
|
-
|
|
348
|
-
* The keyboard-focus floor.
|
|
349
|
-
*
|
|
350
|
-
* Every interactive element is keyboard-visible by DEFAULT, so a component has
|
|
351
|
-
* to opt out on purpose rather than by omission. Before this rule an element
|
|
352
|
-
* that declared no focus style fell back to the browser's own ring — measured
|
|
353
|
-
* `rgb(16, 16, 16)` in BOTH themes, before these theme scopes set native `color-scheme`,
|
|
354
|
-
* which is 1.03:1 against the dark canvas backdrop `rgb(19, 19, 21)`. Visible in
|
|
355
|
-
* light, effectively absent in dark, on 30 of the 176 focusable elements the
|
|
356
|
-
* playground audit reaches.
|
|
357
|
-
*
|
|
358
|
-
* Specificity is deliberately left at one pseudo-class, and that is the whole
|
|
359
|
-
* contract:
|
|
360
|
-
*
|
|
361
|
-
* - It applies wherever nothing else declares a focus style — the gap above.
|
|
362
|
-
* - It LOSES to `.focus\:outline-none:focus` and `.focus-visible\:ring-*`
|
|
363
|
-
* (two compound selectors), so a component with a deliberate custom ring is
|
|
364
|
-
* untouched and no consumer gets a doubled ring from upgrading.
|
|
365
|
-
* - It TIES with a bare `.outline-none` utility, which means source order
|
|
366
|
-
* decides and the floor cannot be relied on to win. That is not a hole left
|
|
367
|
-
* open: a bare `outline-none` with no replacement is a defect this package
|
|
368
|
-
* fixes at the component and `tests/theme/focus-floor.test.ts` keeps fixed.
|
|
369
|
-
* CSS cannot distinguish a deliberate opt-out from a forgotten one, so the
|
|
370
|
-
* guard that can is a test, not a stronger selector.
|
|
371
|
-
*
|
|
372
|
-
* An outline, not a `ring-*` box-shadow, because an outline is not painted by
|
|
373
|
-
* the element's own background/shadow stack — it cannot be covered by a sibling
|
|
374
|
-
* and it needs no `ring-offset-color` matched to whatever surface it sits on.
|
|
375
|
-
*
|
|
376
|
-
* The rule lives in `@layer base` for the same contract. Tailwind v4 hosts put
|
|
377
|
-
* every utility in `@layer utilities`, and an UNLAYERED rule beats ANY layered
|
|
378
|
-
* one regardless of specificity — measured in the playground, where the bare
|
|
379
|
-
* floor out-painted even `.focus\:outline-none:focus` and painted a second
|
|
380
|
-
* strong outline inside the composer card's own ring. In v4's declared order
|
|
381
|
-
* (`theme, base, components, utilities`) base sits under utilities, and in
|
|
382
|
-
* unlayered v3 hosts an unlayered utility beats a layered floor, so the
|
|
383
|
-
* opt-out above wins in both and the specificity ladder in this comment is
|
|
384
|
-
* no longer hostage to stylesheet import order.
|
|
385
|
-
*/
|
|
1029
|
+
/* Existing focus contract: host utilities can opt out; no unlayered floor. */
|
|
386
1030
|
@layer base {
|
|
387
1031
|
:focus-visible {
|
|
388
1032
|
outline: var(--focus-ring-width) solid var(--focus-ring-color);
|
|
389
1033
|
outline-offset: var(--focus-ring-offset);
|
|
390
1034
|
}
|
|
391
|
-
|
|
392
|
-
/* The composer card owns keyboard feedback through its themeable ring. */
|
|
393
1035
|
[data-composer-input]:focus-visible {
|
|
394
1036
|
outline: none;
|
|
395
1037
|
}
|
|
396
1038
|
}
|
|
397
1039
|
|
|
398
|
-
|
|
399
|
-
.dark {
|
|
400
|
-
color-scheme: dark;
|
|
401
|
-
/* The ramp is NOT redefined here — both themes read the same `--neutral-*`
|
|
402
|
-
ladder and only differ in which stop each role picks.
|
|
403
|
-
`--warning-foreground` (dark text on a solid gold chip) is theme-invariant
|
|
404
|
-
and is therefore absent, not omitted: the cascade already carries it. */
|
|
405
|
-
--background: var(--neutral-19-hsl);
|
|
406
|
-
--foreground: var(--neutral-94-hsl);
|
|
407
|
-
--card: var(--neutral-26-hsl);
|
|
408
|
-
--card-foreground: var(--neutral-94-hsl);
|
|
409
|
-
--popover: var(--neutral-32-hsl);
|
|
410
|
-
--popover-foreground: var(--neutral-94-hsl);
|
|
411
|
-
/* 74% L (brand's #818CF8 intent) so primary clears AA as TEXT on a primary/10
|
|
412
|
-
tint in dark. That lightness is also why the foreground has to INVERT here:
|
|
413
|
-
the light theme's white-on-indigo is 6.01:1, but the same white on this
|
|
414
|
-
74%-L lavender rgb(137,137,245) is 3.02:1 — measured failing on the
|
|
415
|
-
"Approve & run" button. A dark foreground on the same fill is 6.27:1, so
|
|
416
|
-
the solid button reads in both themes and the tint keeps its AA as text. */
|
|
417
|
-
--primary: 239 84% 74%;
|
|
418
|
-
--primary-foreground: var(--neutral-16-hsl);
|
|
419
|
-
--secondary: var(--neutral-30-hsl);
|
|
420
|
-
--secondary-foreground: var(--neutral-94-hsl);
|
|
421
|
-
--muted: var(--neutral-30-hsl);
|
|
422
|
-
--muted-foreground: var(--neutral-70-hsl);
|
|
423
|
-
--accent: var(--neutral-30-hsl);
|
|
424
|
-
--accent-foreground: var(--neutral-94-hsl);
|
|
425
|
-
--destructive: 348 90% 68%;
|
|
426
|
-
--destructive-foreground: var(--neutral-22-hsl);
|
|
427
|
-
/* @see the :root declaration — this is the tier that re-themes. */
|
|
428
|
-
--warning-strong: 40 94% 56%;
|
|
429
|
-
--border: var(--neutral-36-hsl);
|
|
430
|
-
--input: var(--neutral-22-hsl);
|
|
431
|
-
--ring: 239 84% 74%;
|
|
432
|
-
--success: 160 70% 52%;
|
|
433
|
-
--success-foreground: 160 84% 10%;
|
|
434
|
-
--warning: 40 94% 56%;
|
|
435
|
-
|
|
436
|
-
--canvas-backdrop: hsl(var(--neutral-16-hsl));
|
|
437
|
-
|
|
438
|
-
/* The dark tiers, re-joined. The border is now strong enough (L 0.365) that
|
|
439
|
-
softening leaves a visible line — see the measurement in the :root block:
|
|
440
|
-
60% reads 1.265 on the card, where the old border at FULL strength read
|
|
441
|
-
1.158. Dark runs the same three tiers as light, one step stronger. */
|
|
442
|
-
/* Dark subtle tier at 40%: interpolating the dark measurement table, it sits
|
|
443
|
-
above the 1.07 hairline floor yet clearly below soft's 1.320 — the same
|
|
444
|
-
one-step-down relationship the light tiers keep. */
|
|
445
|
-
--border-subtle: color-mix(in oklch, hsl(var(--border)) 40%, transparent);
|
|
446
|
-
--border-soft: color-mix(in oklch, hsl(var(--border)) 60%, transparent);
|
|
447
|
-
--card-edge: color-mix(in oklch, hsl(var(--border)) 80%, transparent);
|
|
448
|
-
|
|
449
|
-
/* Doubled alphas against the near-black surfaces — @see :root. */
|
|
450
|
-
--shadow-raised: 0 1px 2px hsl(var(--foreground) / 0.14), 0 12px 28px hsl(var(--foreground) / 0.22);
|
|
451
|
-
--shadow-overlay: 0 2px 6px hsl(var(--foreground) / 0.12), 0 16px 40px hsl(var(--foreground) / 0.2);
|
|
452
|
-
|
|
453
|
-
/* Studio composer — @see :root. The notice chip's mixes are stronger,
|
|
454
|
-
because 8% of a tint over a near-black card is not a tint. */
|
|
455
|
-
--studio-notice-bg: color-mix(in srgb, hsl(var(--primary)) 15%, hsl(var(--card)));
|
|
456
|
-
}
|
|
457
|
-
|
|
458
|
-
/**
|
|
459
|
-
* Entrance keyframes and the classes that ride them.
|
|
460
|
-
*
|
|
461
|
-
* They live in this file, not in a component, because a product already
|
|
462
|
-
* imports this stylesheet and because a keyframe defined inside a bundled
|
|
463
|
-
* component is a keyframe a precompiled consumer does not get — the same gap
|
|
464
|
-
* that shipped a picker with no text tier.
|
|
465
|
-
*
|
|
466
|
-
* Every duration below is a TOKEN, which is what makes the reduced-motion
|
|
467
|
-
* block underneath cover them without a second media query.
|
|
468
|
-
*/
|
|
469
|
-
|
|
470
|
-
/* Streamed text: each chunk resolves out of a small blur instead of popping
|
|
471
|
-
in. This is the single most visible difference between a chat that feels
|
|
472
|
-
alive and one that feels like a log being appended to. */
|
|
1040
|
+
/* Agent arrival/stream semantics remain app-owned. Timing comes from Brand. */
|
|
473
1041
|
@keyframes agent-stream-in {
|
|
474
|
-
from {
|
|
475
|
-
|
|
476
|
-
filter: blur(var(--stream-blur));
|
|
477
|
-
}
|
|
478
|
-
to {
|
|
479
|
-
opacity: 1;
|
|
480
|
-
filter: blur(0);
|
|
481
|
-
}
|
|
1042
|
+
from { opacity: 0; filter: blur(var(--stream-blur)); }
|
|
1043
|
+
to { opacity: 1; filter: blur(0); }
|
|
482
1044
|
}
|
|
483
|
-
|
|
484
|
-
/* A row, card or chip that was not there a moment ago. Travels a short
|
|
485
|
-
distance so the eye is told WHERE it came from. */
|
|
486
1045
|
@keyframes agent-arrive {
|
|
487
|
-
from {
|
|
488
|
-
|
|
489
|
-
transform: translateY(var(--arrive-distance));
|
|
490
|
-
}
|
|
491
|
-
to {
|
|
492
|
-
opacity: 1;
|
|
493
|
-
transform: none;
|
|
494
|
-
}
|
|
1046
|
+
from { opacity: 0; transform: translateY(var(--arrive-distance)); }
|
|
1047
|
+
to { opacity: 1; transform: none; }
|
|
495
1048
|
}
|
|
496
|
-
|
|
497
|
-
/* A control appearing in place — a chip, a badge, a menu row. No travel,
|
|
498
|
-
because it did not come from anywhere. */
|
|
499
1049
|
@keyframes agent-pop-in {
|
|
500
|
-
from {
|
|
501
|
-
|
|
502
|
-
transform: scale(0.96);
|
|
503
|
-
}
|
|
504
|
-
to {
|
|
505
|
-
opacity: 1;
|
|
506
|
-
transform: none;
|
|
507
|
-
}
|
|
1050
|
+
from { opacity: 0; transform: scale(0.96); }
|
|
1051
|
+
to { opacity: 1; transform: none; }
|
|
508
1052
|
}
|
|
509
|
-
|
|
510
|
-
/* The insertion caret at the end of streaming text. A hard step blink, not a
|
|
511
|
-
fade: a caret that eases is a caret that reads as a loading placeholder. */
|
|
512
1053
|
@keyframes agent-caret {
|
|
513
|
-
0%,
|
|
514
|
-
|
|
515
|
-
opacity: 1;
|
|
516
|
-
}
|
|
517
|
-
50%,
|
|
518
|
-
100% {
|
|
519
|
-
opacity: 0;
|
|
520
|
-
}
|
|
1054
|
+
0%, 49% { opacity: 1; }
|
|
1055
|
+
50%, 100% { opacity: 0; }
|
|
521
1056
|
}
|
|
522
|
-
|
|
523
|
-
/* A label that is WAITING. The sweep is what separates "the agent is working"
|
|
524
|
-
from "the interface is stuck": a static label cannot tell you which. */
|
|
525
1057
|
@keyframes agent-shimmer {
|
|
526
|
-
from {
|
|
527
|
-
|
|
528
|
-
}
|
|
529
|
-
to {
|
|
530
|
-
background-position: -50% center;
|
|
531
|
-
}
|
|
1058
|
+
from { background-position: 150% center; }
|
|
1059
|
+
to { background-position: -50% center; }
|
|
532
1060
|
}
|
|
533
|
-
|
|
534
|
-
.agent-stream-in {
|
|
535
|
-
animation: agent-stream-in var(--motion-stream) both;
|
|
536
|
-
}
|
|
537
|
-
|
|
1061
|
+
.agent-stream-in { animation: agent-stream-in var(--motion-stream) both; }
|
|
538
1062
|
.agent-arrive {
|
|
539
1063
|
animation: agent-arrive var(--motion-arrive) both;
|
|
540
|
-
}
|
|
541
|
-
|
|
542
|
-
.agent-pop-in {
|
|
543
|
-
animation: agent-pop-in var(--motion-control) both;
|
|
544
|
-
}
|
|
545
|
-
|
|
546
|
-
/* Stagger by index: set `--stagger-index` and a group arrives as a sequence
|
|
547
|
-
rather than as a flash. Capped at 8 so a 200-row list does not open with a
|
|
548
|
-
10-second cascade — past the cap every row shares the last delay. */
|
|
549
|
-
.agent-arrive {
|
|
550
1064
|
animation-delay: calc(min(var(--stagger-index), 8) * var(--stagger-step));
|
|
551
1065
|
}
|
|
552
|
-
|
|
553
|
-
/* The waiting label. `background-clip: text` over a moving gradient, so the
|
|
554
|
-
shimmer runs THROUGH the glyphs rather than behind them. Marked essential:
|
|
555
|
-
it is the only signal that work is still in flight. Its reduced-motion
|
|
556
|
-
answer is at the bottom of this file, with the floor it opts out of. */
|
|
1066
|
+
.agent-pop-in { animation: agent-pop-in var(--motion-control) both; }
|
|
557
1067
|
.agent-shimmer {
|
|
558
|
-
background: linear-gradient(
|
|
559
|
-
90deg,
|
|
560
|
-
hsl(var(--muted-foreground)) 0%,
|
|
561
|
-
hsl(var(--foreground)) 45%,
|
|
562
|
-
hsl(var(--muted-foreground)) 60%
|
|
563
|
-
);
|
|
1068
|
+
background: linear-gradient(90deg, hsl(var(--muted-foreground)) 0%, hsl(var(--foreground)) 45%, hsl(var(--muted-foreground)) 60%);
|
|
564
1069
|
background-size: 250% auto;
|
|
565
1070
|
background-clip: text;
|
|
566
1071
|
-webkit-background-clip: text;
|
|
@@ -568,83 +1073,31 @@
|
|
|
568
1073
|
animation: agent-shimmer 1.4s linear infinite;
|
|
569
1074
|
}
|
|
570
1075
|
|
|
571
|
-
/**
|
|
572
|
-
* Reduced motion, at the token layer and at the floor.
|
|
573
|
-
*
|
|
574
|
-
* Two rules, because they cover two different populations. Collapsing the
|
|
575
|
-
* duration TOKENS is what makes motion built on this system honour the
|
|
576
|
-
* preference for free — a component that wrote `var(--motion-surface)` needs no
|
|
577
|
-
* media query of its own, and gets no chance to forget one. The universal rule
|
|
578
|
-
* under it is the floor for everything that predates the tokens: 64 transitions
|
|
579
|
-
* in this package run on Tailwind's implicit duration, and a consumer's own
|
|
580
|
-
* components run on theirs. Neither reads a token, so neither would be reached.
|
|
581
|
-
*
|
|
582
|
-
* 1ms rather than 0: a zero-duration transition fires no `transitionend`, and
|
|
583
|
-
* any component that awaits one to unmount or advance a state machine hangs
|
|
584
|
-
* forever. 1ms is imperceptible AND still fires.
|
|
585
|
-
*
|
|
586
|
-
* The floor uses `!important` where the `:focus-visible` floor deliberately did
|
|
587
|
-
* not, and the asymmetry is the point. Focus styling is a design decision a
|
|
588
|
-
* component is entitled to make differently. Reduced motion is not a design
|
|
589
|
-
* decision — it is an explicit request from the person using the product, and a
|
|
590
|
-
* component overriding it is a defect, not a preference. Motion that genuinely
|
|
591
|
-
* carries meaning (a determinate progress indicator, a live-status pulse) opts
|
|
592
|
-
* out by declaring `data-motion="essential"`; the exclusion covers that element
|
|
593
|
-
* and its subtree, and `:where()` keeps the selector at zero specificity so a
|
|
594
|
-
* consumer's own `!important` can still win.
|
|
595
|
-
*
|
|
596
|
-
* `essential` is an exemption from the BLANKET rule, not a licence to keep
|
|
597
|
-
* running. It exists because collapsing a meaning-carrying animation to a 1ms
|
|
598
|
-
* flash destroys the meaning, so the element gets to answer for itself — and it
|
|
599
|
-
* then OWES that answer. An element with no end condition owes it most, which
|
|
600
|
-
* is why `.agent-shimmer` states its own below: the sweep stops, and what it
|
|
601
|
-
* was saying is re-stated as a static difference the reader can still see.
|
|
602
|
-
*/
|
|
603
1076
|
@media (prefers-reduced-motion: reduce) {
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
1077
|
+
@layer theme {
|
|
1078
|
+
:where(:root), .dark, .light, [data-theme], [data-sandbox-theme],
|
|
1079
|
+
[data-sandbox-ui], [data-agent-app-theme] {
|
|
1080
|
+
/* Compatibility policy, not a new timing scale: the existing app
|
|
1081
|
+
transitionend contract needs a nonzero duration, including islands. */
|
|
1082
|
+
--duration-instant: 1ms;
|
|
1083
|
+
--duration-fast: 1ms;
|
|
1084
|
+
--duration-base: 1ms;
|
|
1085
|
+
--duration-slow: 1ms;
|
|
1086
|
+
--duration-stream: 1ms;
|
|
1087
|
+
--duration-arrive: 1ms;
|
|
1088
|
+
--stagger-step: 0ms;
|
|
1089
|
+
--motion-control: var(--duration-fast) var(--ease-standard);
|
|
1090
|
+
--motion-surface: var(--duration-base) var(--ease-entrance);
|
|
1091
|
+
--motion-dismiss: var(--duration-instant) var(--ease-exit);
|
|
1092
|
+
--motion-stream: var(--duration-stream) var(--ease-expo);
|
|
1093
|
+
--motion-arrive: var(--duration-arrive) var(--ease-expo);
|
|
1094
|
+
}
|
|
614
1095
|
}
|
|
615
|
-
|
|
616
1096
|
*:where(:not([data-motion='essential'], [data-motion='essential'] *)) {
|
|
617
1097
|
animation-duration: 1ms !important;
|
|
618
1098
|
animation-iteration-count: 1 !important;
|
|
619
1099
|
transition-duration: 1ms !important;
|
|
620
1100
|
}
|
|
621
|
-
|
|
622
|
-
/* The waiting label's own answer. It is `data-motion="essential"` because the
|
|
623
|
-
sweep is the ONLY thing separating an agent that is working from one that
|
|
624
|
-
is stuck, so the floor above must not collapse it — but an INFINITE
|
|
625
|
-
animation is exactly what someone asking for reduced motion is asking to be
|
|
626
|
-
rid of, and running it anyway because the element declared itself essential
|
|
627
|
-
is the override this file calls a defect.
|
|
628
|
-
|
|
629
|
-
So the meaning is carried without the motion. The sweep stops and the
|
|
630
|
-
gradient comes off (it exists only to be moved), which puts the glyphs back
|
|
631
|
-
under `color` instead of leaving them transparent windows onto it.
|
|
632
|
-
|
|
633
|
-
The DOTTED RULE is the discriminator, and it is the only one. Measured in
|
|
634
|
-
Chromium under `prefers-reduced-motion: reduce`, light and dark: the live
|
|
635
|
-
label computes `text-decoration: underline dotted` where a settled label
|
|
636
|
-
beside it computes `none`, and the two resolve to the SAME color and the
|
|
637
|
-
same weight. That is by construction — `color: inherit` hands the label
|
|
638
|
-
whatever its context already uses, and the settled label shares that
|
|
639
|
-
context. In `mission-activity`'s lane both tool names read rgb(12,12,21)
|
|
640
|
-
light / rgb(236,236,241) dark; in the chat trace toggle "Thinking · 12s"
|
|
641
|
-
and "Thought for 12s" both read rgb(96,96,99) light / rgb(158,158,160)
|
|
642
|
-
dark, because that button is `text-muted-foreground`. So the reader tells
|
|
643
|
-
in-flight from done by the rule under the word, from a still frame — not by
|
|
644
|
-
tone and not by weight.
|
|
645
|
-
|
|
646
|
-
Not `content: '…'` or any other generated text: this element's text is read
|
|
647
|
-
by a screen reader, and adding pseudo-content changes what is announced. */
|
|
648
1101
|
.agent-shimmer {
|
|
649
1102
|
animation: none;
|
|
650
1103
|
background: none;
|
|
@@ -654,20 +1107,10 @@
|
|
|
654
1107
|
text-decoration: underline dotted currentColor;
|
|
655
1108
|
text-underline-offset: 3px;
|
|
656
1109
|
}
|
|
657
|
-
|
|
658
|
-
html {
|
|
659
|
-
scroll-behavior: auto !important;
|
|
660
|
-
}
|
|
1110
|
+
html { scroll-behavior: auto !important; }
|
|
661
1111
|
}
|
|
662
|
-
|
|
663
1112
|
.agent-app-edit-selection::selection {
|
|
664
1113
|
background: var(--editor-selection-background);
|
|
665
1114
|
color: var(--editor-selection-foreground);
|
|
666
1115
|
}
|
|
667
|
-
|
|
668
|
-
/* A product-supplied Markdown renderer may carry its own base text utility.
|
|
669
|
-
* Message size is a ChatMessages contract, so the rendered copy must inherit
|
|
670
|
-
* that choice while headings and inline code can still scale with em units. */
|
|
671
|
-
.agent-app-message-copy > * {
|
|
672
|
-
font-size: inherit;
|
|
673
|
-
}
|
|
1116
|
+
.agent-app-message-copy > * { font-size: inherit; }
|