@oaiz/app-kit 0.0.0-stage → 0.1.4128
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/LICENSE +21 -0
- package/README.md +143 -2
- package/THIRD_PARTY_NOTICES.md +76 -0
- package/package.json +139 -4
- package/registry.json +1847 -0
- package/src/components/activity-timeline.tsx +227 -0
- package/src/components/app-shell.tsx +622 -0
- package/src/components/bar-list.tsx +47 -0
- package/src/components/board.tsx +700 -0
- package/src/components/calendar-view.tsx +1388 -0
- package/src/components/card-grid.tsx +462 -0
- package/src/components/charts.tsx +701 -0
- package/src/components/chat-markdown.tsx +230 -0
- package/src/components/chat-panel.tsx +760 -0
- package/src/components/code-editor.tsx +276 -0
- package/src/components/collection-controls.tsx +226 -0
- package/src/components/command-palette.tsx +403 -0
- package/src/components/confirm-action.tsx +123 -0
- package/src/components/data-table.tsx +821 -0
- package/src/components/date-input.tsx +429 -0
- package/src/components/empty-state.tsx +31 -0
- package/src/components/error-state.tsx +37 -0
- package/src/components/file-upload.tsx +595 -0
- package/src/components/filter-bar.tsx +415 -0
- package/src/components/grouped-picker.tsx +250 -0
- package/src/components/line-items.tsx +601 -0
- package/src/components/list-view.tsx +491 -0
- package/src/components/metrics.tsx +53 -0
- package/src/components/page-header.tsx +33 -0
- package/src/components/property-picker.tsx +546 -0
- package/src/components/record-detail.tsx +416 -0
- package/src/components/record-form.tsx +295 -0
- package/src/components/record-name.tsx +85 -0
- package/src/components/save-bar.tsx +142 -0
- package/src/components/sign-in.tsx +179 -0
- package/src/components/split-view.tsx +128 -0
- package/src/components/status-dot.tsx +56 -0
- package/src/components/stepper.tsx +153 -0
- package/src/components/text-diff-model.ts +111 -0
- package/src/components/text-diff.tsx +98 -0
- package/src/components/time-zone-picker.tsx +69 -0
- package/src/components/ui/accordion.tsx +138 -0
- package/src/components/ui/alert-dialog.tsx +67 -0
- package/src/components/ui/alert.tsx +65 -0
- package/src/components/ui/avatar-group.tsx +119 -0
- package/src/components/ui/avatar.tsx +55 -0
- package/src/components/ui/badge.tsx +59 -0
- package/src/components/ui/bottom-navigation.tsx +102 -0
- package/src/components/ui/breadcrumb.tsx +117 -0
- package/src/components/ui/button.tsx +71 -0
- package/src/components/ui/card.tsx +95 -0
- package/src/components/ui/checkbox.tsx +31 -0
- package/src/components/ui/collapsible.tsx +27 -0
- package/src/components/ui/context-menu.tsx +270 -0
- package/src/components/ui/count-up.tsx +136 -0
- package/src/components/ui/detail-disclosure-section.tsx +109 -0
- package/src/components/ui/dialog.tsx +157 -0
- package/src/components/ui/dropdown-menu.tsx +273 -0
- package/src/components/ui/form-field.tsx +155 -0
- package/src/components/ui/heading.tsx +126 -0
- package/src/components/ui/hover-card.tsx +45 -0
- package/src/components/ui/input.tsx +50 -0
- package/src/components/ui/label.tsx +30 -0
- package/src/components/ui/orb-spinner.tsx +238 -0
- package/src/components/ui/popover.tsx +59 -0
- package/src/components/ui/progress-ring.tsx +125 -0
- package/src/components/ui/progress.tsx +38 -0
- package/src/components/ui/radio-group.tsx +124 -0
- package/src/components/ui/resizable.tsx +48 -0
- package/src/components/ui/scroll-fade.tsx +98 -0
- package/src/components/ui/segmented-control.tsx +70 -0
- package/src/components/ui/select.tsx +230 -0
- package/src/components/ui/separator.tsx +29 -0
- package/src/components/ui/sheet.tsx +170 -0
- package/src/components/ui/shimmer-text.tsx +87 -0
- package/src/components/ui/shortcut.tsx +39 -0
- package/src/components/ui/skeleton.tsx +15 -0
- package/src/components/ui/slider.tsx +48 -0
- package/src/components/ui/switch.tsx +44 -0
- package/src/components/ui/table.tsx +119 -0
- package/src/components/ui/tabs.tsx +80 -0
- package/src/components/ui/text.tsx +93 -0
- package/src/components/ui/textarea.tsx +51 -0
- package/src/components/ui/toast.tsx +141 -0
- package/src/components/ui/toaster.tsx +40 -0
- package/src/components/ui/tooltip.tsx +38 -0
- package/src/components/ui/top-banner.tsx +108 -0
- package/src/components/ui/tree-view.tsx +215 -0
- package/src/components/ui/use-toast.tsx +184 -0
- package/src/components/ui/voice-orb.tsx +252 -0
- package/src/hooks/oaiz-chat.tsx +530 -0
- package/src/hooks/oaiz-data.tsx +617 -0
- package/src/hooks/oaiz-session.tsx +63 -0
- package/src/hooks/use-arrivals.ts +19 -0
- package/src/hooks/use-breakpoint.ts +100 -0
- package/src/hooks/use-media-query.ts +36 -0
- package/src/hooks/use-theme.ts +67 -0
- package/src/hooks/use-url-state.ts +77 -0
- package/src/lib/breakpoints.ts +81 -0
- package/src/lib/csp-nonce.ts +15 -0
- package/src/lib/format.ts +291 -0
- package/src/lib/speech-level.ts +118 -0
- package/src/lib/utils.ts +109 -0
- package/src/styles/oaiz/app.css +21 -0
- package/src/styles/oaiz/scrollbars.css +20 -0
- package/src/styles/oaiz/tokens.css +952 -0
- package/src/styles/oaiz/voice-orb.css +39 -0
|
@@ -0,0 +1,952 @@
|
|
|
1
|
+
/* ============================================================================
|
|
2
|
+
OAIZ DESIGN TOKENS — single source of truth
|
|
3
|
+
|
|
4
|
+
Every colour, radius, font, motion, elevation and layout token, plus the
|
|
5
|
+
base/utility layers shared by the OAIZ web apps. Every stylesheet that needs
|
|
6
|
+
a token imports this file, so a token is defined once and cannot drift
|
|
7
|
+
between them.
|
|
8
|
+
|
|
9
|
+
Colour formats: OKLCH for product shades; fixed HSL/hex for brand marks. Three tiers: primitive -> semantic -> component.
|
|
10
|
+
Dark mode is class-based (`.dark`), never the OS preference.
|
|
11
|
+
|
|
12
|
+
Contrast: values here are checked against WCAG AA, and the exemptions are
|
|
13
|
+
commented inline with their reasoning. The design tokens story renders this
|
|
14
|
+
file live with a measured ratio per token — change a colour and check that
|
|
15
|
+
story before shipping it.
|
|
16
|
+
============================================================================ */
|
|
17
|
+
|
|
18
|
+
@import './scrollbars.css';
|
|
19
|
+
@import './voice-orb.css';
|
|
20
|
+
|
|
21
|
+
/* The application controls dark mode with the `dark` class. Do not use the
|
|
22
|
+
operating system color preference for `dark:` utilities. */
|
|
23
|
+
@custom-variant dark (&:where(.dark, .dark *));
|
|
24
|
+
|
|
25
|
+
/* Restore pre-4.3.3 font stack (Tailwind 4.3.3 PR #20318 replaced
|
|
26
|
+
system-ui with explicit platform fonts, changing rendering everywhere). */
|
|
27
|
+
@theme {
|
|
28
|
+
--font-sans:
|
|
29
|
+
ui-sans-serif, system-ui, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji',
|
|
30
|
+
'Segoe UI Symbol', 'Noto Color Emoji';
|
|
31
|
+
--font-inter:
|
|
32
|
+
'Inter Variable', 'Inter', ui-sans-serif, system-ui, sans-serif,
|
|
33
|
+
'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
|
|
34
|
+
|
|
35
|
+
/* Compact status labels. */
|
|
36
|
+
--text-2xs: 0.625rem;
|
|
37
|
+
--text-2xs--line-height: 1.4;
|
|
38
|
+
|
|
39
|
+
/* Responsive Breakpoints */
|
|
40
|
+
--breakpoint-mobile: 40rem; /* 640px: single column / mobile drawer */
|
|
41
|
+
--breakpoint-half: 56.25rem; /* 900px: half page / split screen */
|
|
42
|
+
--breakpoint-normal: 75rem; /* 1200px: standard desktop */
|
|
43
|
+
--breakpoint-ultrawide: 96rem; /* 1536px: ultrawide monitors */
|
|
44
|
+
|
|
45
|
+
/* Tailwind's own sm/md/lg/xl/2xl are cleared. Carrying both vocabularies is
|
|
46
|
+
what let `--breakpoint-xl` quietly mean 1200px here against Tailwind's
|
|
47
|
+
1280px, and it split every responsive decision across two ramps that
|
|
48
|
+
describe different layouts. The product tiers above are the only ones. */
|
|
49
|
+
--breakpoint-sm: initial;
|
|
50
|
+
--breakpoint-md: initial;
|
|
51
|
+
--breakpoint-lg: initial;
|
|
52
|
+
--breakpoint-xl: initial;
|
|
53
|
+
--breakpoint-2xl: initial;
|
|
54
|
+
|
|
55
|
+
/* Border Radius. Three steps plus `rounded-full`; --radius-md is the base
|
|
56
|
+
and the other two derive from it, so retuning the corner rounding is a
|
|
57
|
+
one-line change here. `--radius-full` is deliberately absent: Tailwind's
|
|
58
|
+
own `calc(infinity * 1px)` rounds correctly at any element size, which a
|
|
59
|
+
fixed pixel value does not.
|
|
60
|
+
|
|
61
|
+
sm 6px chips, inline code, small tags
|
|
62
|
+
md 8px the default — buttons, inputs, cards, menus
|
|
63
|
+
lg 12px panels, dialogs, canvas nodes
|
|
64
|
+
|
|
65
|
+
Tailwind's other radius keys are cleared so `rounded`, `rounded-xs`,
|
|
66
|
+
`rounded-xl` and the rest cannot silently reintroduce a fourth step. Note
|
|
67
|
+
these are not Tailwind's values: the scale is shifted up one notch from its
|
|
68
|
+
4/6/8. A genuine one-off corner still has `rounded-[…]`. */
|
|
69
|
+
--radius-md: 0.5rem;
|
|
70
|
+
--radius-sm: calc(var(--radius-md) - 0.125rem);
|
|
71
|
+
--radius-lg: calc(var(--radius-md) + 0.25rem);
|
|
72
|
+
--radius: initial;
|
|
73
|
+
--radius-xs: initial;
|
|
74
|
+
--radius-xl: initial;
|
|
75
|
+
--radius-2xl: initial;
|
|
76
|
+
--radius-3xl: initial;
|
|
77
|
+
--radius-4xl: initial;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
/* ============================================================================
|
|
81
|
+
PRIMITIVE COLOR SCALE
|
|
82
|
+
|
|
83
|
+
Fixed OKLCH shades shared by both themes
|
|
84
|
+
Named for WHAT they are (color + shade)
|
|
85
|
+
============================================================================ */
|
|
86
|
+
|
|
87
|
+
:root {
|
|
88
|
+
/* ============================================================================
|
|
89
|
+
5-STEP OKLCH PRIMITIVE PALETTE
|
|
90
|
+
|
|
91
|
+
Shared step lightness; colored families share step chroma.
|
|
92
|
+
Each family keeps a constant hue; zinc uses neutral chroma:
|
|
93
|
+
Step 1: Surface / Tint (L=0.965, subtle background)
|
|
94
|
+
Step 2: Muted / Hover (L=0.890, hover state / secondary surface)
|
|
95
|
+
Step 3: Border / Focus (L=0.620)
|
|
96
|
+
Step 4: Solid / Action (L=0.480)
|
|
97
|
+
Step 5: High-Contrast Text (L=0.340)
|
|
98
|
+
============================================================================ */
|
|
99
|
+
--palette-white: oklch(1 0 0);
|
|
100
|
+
|
|
101
|
+
--palette-zinc-1: oklch(0.965 0.001 260);
|
|
102
|
+
--palette-zinc-2: oklch(0.89 0.003 260);
|
|
103
|
+
--palette-zinc-3: oklch(0.62 0.007 260);
|
|
104
|
+
--palette-zinc-4: oklch(0.48 0.01 260);
|
|
105
|
+
--palette-zinc-5: oklch(0.34 0.005 260);
|
|
106
|
+
|
|
107
|
+
--palette-blue-1: oklch(0.965 0.015 255);
|
|
108
|
+
--palette-blue-2: oklch(0.89 0.045 255);
|
|
109
|
+
--palette-blue-3: oklch(0.62 0.115 255);
|
|
110
|
+
--palette-blue-4: oklch(0.48 0.095 255);
|
|
111
|
+
--palette-blue-5: oklch(0.34 0.055 255);
|
|
112
|
+
|
|
113
|
+
--palette-purple-1: oklch(0.965 0.015 295);
|
|
114
|
+
--palette-purple-2: oklch(0.89 0.045 295);
|
|
115
|
+
--palette-purple-3: oklch(0.62 0.115 295);
|
|
116
|
+
--palette-purple-4: oklch(0.48 0.095 295);
|
|
117
|
+
--palette-purple-5: oklch(0.34 0.055 295);
|
|
118
|
+
|
|
119
|
+
--palette-green-1: oklch(0.965 0.015 145);
|
|
120
|
+
--palette-green-2: oklch(0.89 0.045 145);
|
|
121
|
+
--palette-green-3: oklch(0.62 0.115 145);
|
|
122
|
+
--palette-green-4: oklch(0.48 0.095 145);
|
|
123
|
+
--palette-green-5: oklch(0.34 0.055 145);
|
|
124
|
+
|
|
125
|
+
--palette-red-1: oklch(0.965 0.015 27);
|
|
126
|
+
--palette-red-2: oklch(0.89 0.045 27);
|
|
127
|
+
--palette-red-3: oklch(0.62 0.115 27);
|
|
128
|
+
--palette-red-4: oklch(0.48 0.095 27);
|
|
129
|
+
--palette-red-5: oklch(0.34 0.055 27);
|
|
130
|
+
|
|
131
|
+
--palette-amber-1: oklch(0.965 0.015 85);
|
|
132
|
+
--palette-amber-2: oklch(0.89 0.045 85);
|
|
133
|
+
--palette-amber-3: oklch(0.62 0.115 85);
|
|
134
|
+
--palette-amber-4: oklch(0.48 0.095 85);
|
|
135
|
+
--palette-amber-5: oklch(0.34 0.055 85);
|
|
136
|
+
|
|
137
|
+
--palette-orange-1: oklch(0.965 0.015 50);
|
|
138
|
+
--palette-orange-2: oklch(0.89 0.045 50);
|
|
139
|
+
--palette-orange-3: oklch(0.62 0.115 50);
|
|
140
|
+
--palette-orange-4: oklch(0.48 0.095 50);
|
|
141
|
+
--palette-orange-5: oklch(0.34 0.055 50);
|
|
142
|
+
|
|
143
|
+
/* Semantic role mappings (light theme) */
|
|
144
|
+
/* Neutral roles share anchors; interaction surfaces derive from the scale. */
|
|
145
|
+
--role-background: var(--palette-white);
|
|
146
|
+
--role-foreground: var(--palette-zinc-5);
|
|
147
|
+
--role-primary: var(--palette-zinc-5);
|
|
148
|
+
--role-primary-foreground: var(--palette-zinc-1);
|
|
149
|
+
--role-secondary: color-mix(
|
|
150
|
+
in oklch,
|
|
151
|
+
var(--palette-zinc-1) 80%,
|
|
152
|
+
var(--palette-zinc-2)
|
|
153
|
+
);
|
|
154
|
+
--role-muted-foreground: var(--palette-zinc-4);
|
|
155
|
+
--role-text-shimmer-base: var(--role-foreground);
|
|
156
|
+
--role-text-shimmer-highlight: color-mix(
|
|
157
|
+
in oklch,
|
|
158
|
+
var(--role-muted-foreground) 92%,
|
|
159
|
+
var(--palette-white)
|
|
160
|
+
);
|
|
161
|
+
--role-border: color-mix(
|
|
162
|
+
in oklch,
|
|
163
|
+
var(--palette-zinc-1) 70%,
|
|
164
|
+
var(--palette-zinc-3)
|
|
165
|
+
);
|
|
166
|
+
--role-input-fill: var(--role-secondary);
|
|
167
|
+
--role-input-fill-hover: color-mix(
|
|
168
|
+
in oklch,
|
|
169
|
+
var(--palette-zinc-1) 55%,
|
|
170
|
+
var(--palette-zinc-2)
|
|
171
|
+
);
|
|
172
|
+
--role-surface-hover: color-mix(
|
|
173
|
+
in oklab,
|
|
174
|
+
var(--palette-amber-1) 70%,
|
|
175
|
+
var(--palette-zinc-2)
|
|
176
|
+
);
|
|
177
|
+
--role-sidebar: var(--role-background);
|
|
178
|
+
--role-sidebar-foreground: var(--role-muted-foreground);
|
|
179
|
+
--role-sidebar-primary: var(--role-primary);
|
|
180
|
+
--role-sidebar-primary-foreground: var(--role-primary-foreground);
|
|
181
|
+
--role-sidebar-accent: var(--role-secondary);
|
|
182
|
+
--role-sidebar-accent-foreground: var(--role-foreground);
|
|
183
|
+
--role-sidebar-border: var(--role-border);
|
|
184
|
+
--role-sidebar-ring: var(--role-muted-foreground);
|
|
185
|
+
--role-sidebar-selected: var(--role-surface-hover);
|
|
186
|
+
--role-sidebar-selected-pressed: color-mix(
|
|
187
|
+
in oklab,
|
|
188
|
+
var(--role-surface-hover) 70%,
|
|
189
|
+
var(--palette-zinc-2)
|
|
190
|
+
);
|
|
191
|
+
--role-nav-rail: color-mix(
|
|
192
|
+
in oklab,
|
|
193
|
+
var(--palette-zinc-1) 80%,
|
|
194
|
+
var(--palette-amber-1)
|
|
195
|
+
);
|
|
196
|
+
--role-library-preview: var(--role-nav-rail);
|
|
197
|
+
|
|
198
|
+
/* Status pills sit between pale feedback surfaces and solid actions. */
|
|
199
|
+
--role-badge-success: color-mix(
|
|
200
|
+
in oklch,
|
|
201
|
+
var(--palette-green-2) 75%,
|
|
202
|
+
var(--palette-green-3)
|
|
203
|
+
);
|
|
204
|
+
--role-badge-success-foreground: var(--palette-green-5);
|
|
205
|
+
--role-badge-warning: color-mix(
|
|
206
|
+
in oklch,
|
|
207
|
+
var(--palette-amber-2) 75%,
|
|
208
|
+
var(--palette-amber-3)
|
|
209
|
+
);
|
|
210
|
+
--role-badge-warning-foreground: var(--palette-amber-5);
|
|
211
|
+
--role-badge-neutral: color-mix(
|
|
212
|
+
in oklch,
|
|
213
|
+
var(--palette-zinc-2) 75%,
|
|
214
|
+
var(--palette-zinc-3)
|
|
215
|
+
);
|
|
216
|
+
--role-badge-neutral-foreground: var(--palette-zinc-5);
|
|
217
|
+
|
|
218
|
+
/* Soft feedback pairs reverse with the theme; solid pairs retain light ink. */
|
|
219
|
+
--role-info-bg: var(--palette-blue-1);
|
|
220
|
+
--role-info-text: var(--palette-blue-5);
|
|
221
|
+
--role-success-bg-subtle: var(--palette-green-1);
|
|
222
|
+
--role-success-text: var(--palette-green-5);
|
|
223
|
+
--role-destructive-bg-subtle: var(--palette-red-1);
|
|
224
|
+
--role-destructive-text: var(--palette-red-4);
|
|
225
|
+
--role-warning-bg-subtle: var(--palette-amber-1);
|
|
226
|
+
--role-warning-text: var(--palette-amber-5);
|
|
227
|
+
--role-knowledge-bg: var(--palette-amber-1);
|
|
228
|
+
--role-knowledge-text: var(--palette-amber-5);
|
|
229
|
+
--role-recording: var(--palette-red-5);
|
|
230
|
+
--role-version-compare: var(--palette-orange-5);
|
|
231
|
+
|
|
232
|
+
/* Parser roles share four inks, independent of feedback semantics. */
|
|
233
|
+
--role-code-key-text: var(--palette-red-4);
|
|
234
|
+
--role-code-string-text: var(--palette-green-4);
|
|
235
|
+
--role-code-number-text: var(--role-code-key-text);
|
|
236
|
+
--role-code-boolean-text: var(--role-code-key-text);
|
|
237
|
+
--role-code-null-text: var(--palette-purple-4);
|
|
238
|
+
--role-code-punctuation-text: var(--palette-blue-4);
|
|
239
|
+
|
|
240
|
+
/* Brand marks keep their fixed physical colors. */
|
|
241
|
+
--role-brand-ocean: hsl(208 100% 45%);
|
|
242
|
+
--role-logo-yellow: hsl(47 100% 51%);
|
|
243
|
+
--role-logo-petal: #d1529d;
|
|
244
|
+
|
|
245
|
+
/* The flower loading mark keeps its artwork colors in both themes. */
|
|
246
|
+
--role-orb-blue: #308aea;
|
|
247
|
+
--role-orb-lime: #9fdf40;
|
|
248
|
+
--role-orb-green: #75bf0c;
|
|
249
|
+
--role-orb-lime-bright: #9ae530;
|
|
250
|
+
--role-orb-gold: #ebc550;
|
|
251
|
+
--role-orb-blue-muted: #6193b3;
|
|
252
|
+
--role-orb-cream: #f3d588;
|
|
253
|
+
--role-orb-red: #ea3030;
|
|
254
|
+
--role-orb-orange: #ea7730;
|
|
255
|
+
--role-orb-amber: #eab830;
|
|
256
|
+
--role-orb-center-light: #fff471;
|
|
257
|
+
--role-orb-center: #ffeb00;
|
|
258
|
+
|
|
259
|
+
/* Motion Primitives — the raw millisecond scale the semantic
|
|
260
|
+
`--transition-duration-*` tokens below are built from. */
|
|
261
|
+
--duration-150: 150ms;
|
|
262
|
+
--duration-200: 200ms;
|
|
263
|
+
--duration-300: 300ms;
|
|
264
|
+
--duration-350: 350ms;
|
|
265
|
+
--duration-500: 500ms;
|
|
266
|
+
|
|
267
|
+
/* Elevation tint (Light Mode)
|
|
268
|
+
|
|
269
|
+
Shadow *geometry* lives in the `@theme` block below and is identical in
|
|
270
|
+
both themes; only the ink changes. Splitting them this way is what lets a
|
|
271
|
+
shadow respond to `.dark` at all: an `@theme` value is baked into the
|
|
272
|
+
utility at build time, so `.dark { --shadow-md: ... }` would never be
|
|
273
|
+
read. Indirecting through a colour keeps the utility theme-reactive and
|
|
274
|
+
keeps Tailwind's `--tw-shadow-color` hook intact, so `shadow-primary/20`
|
|
275
|
+
and friends still tint the shadow. */
|
|
276
|
+
--shadow-tint-weak: rgb(0 0 0 / 0.05);
|
|
277
|
+
--shadow-tint: rgb(0 0 0 / 0.1);
|
|
278
|
+
--shadow-tint-strong: rgb(0 0 0 / 0.25);
|
|
279
|
+
|
|
280
|
+
/* Layout Dimensions */
|
|
281
|
+
--layout-header-height: 3rem;
|
|
282
|
+
--layout-sidebar-width: 16rem;
|
|
283
|
+
--layout-sidebar-collapsed: 3rem;
|
|
284
|
+
--layout-container-max: 96rem;
|
|
285
|
+
|
|
286
|
+
/* Touch Targets (Ergonomics) */
|
|
287
|
+
--touch-target-min: 2.75rem; /* 44px - WCAG 2.5.5 / Apple HIG minimum */
|
|
288
|
+
--touch-target-compact: 2.25rem; /* 36px - dense touch target */
|
|
289
|
+
--touch-target-comfortable: 3rem; /* 48px - comfortable touch target (Android) */
|
|
290
|
+
|
|
291
|
+
/* Safe Area Insets (Mobile viewport) */
|
|
292
|
+
--safe-area-top: env(safe-area-inset-top, 0px);
|
|
293
|
+
--safe-area-right: env(safe-area-inset-right, 0px);
|
|
294
|
+
--safe-area-bottom: env(safe-area-inset-bottom, 0px);
|
|
295
|
+
--safe-area-left: env(safe-area-inset-left, 0px);
|
|
296
|
+
|
|
297
|
+
/* Mobile Shell Heights */
|
|
298
|
+
--mobile-header-height: 3.5rem;
|
|
299
|
+
--mobile-nav-height: 4rem;
|
|
300
|
+
|
|
301
|
+
/* The page gutter steps up with the viewport. It is a primitive rather than
|
|
302
|
+
a literal in `@theme` so it stays reactive: `--spacing-page` below points
|
|
303
|
+
at it, the `*-page` utilities emit `var(--spacing-page)`, and redefining
|
|
304
|
+
this one value under a media query retunes every `px-page` on the page.
|
|
305
|
+
Same trick as `--shadow-tint-*` for dark mode. */
|
|
306
|
+
--layout-page-gutter: 1rem;
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
/* --breakpoint-half */
|
|
310
|
+
@media (min-width: 56.25rem) {
|
|
311
|
+
:root {
|
|
312
|
+
--layout-page-gutter: 1.5rem;
|
|
313
|
+
}
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
/* --breakpoint-normal */
|
|
317
|
+
@media (min-width: 75rem) {
|
|
318
|
+
:root {
|
|
319
|
+
--layout-page-gutter: 2rem;
|
|
320
|
+
}
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
/* ============================================================================
|
|
324
|
+
MOTION, ELEVATION AND LAYOUT SCALES
|
|
325
|
+
|
|
326
|
+
Plain `@theme`, not `@theme inline`. These values are theme-independent, and
|
|
327
|
+
a non-inline entry is emitted as a real custom property *and* referenced by
|
|
328
|
+
the utility that uses it — which keeps the design tokens story able to
|
|
329
|
+
read every one of them back out of the CSSOM. An `inline` entry is folded
|
|
330
|
+
into the utility and can then be dropped from the stylesheet entirely.
|
|
331
|
+
|
|
332
|
+
The shadow geometry matches Tailwind's own scale exactly, so no existing
|
|
333
|
+
`shadow-*` call site changes appearance in light mode; the only edit is the
|
|
334
|
+
colour, indirected through `--shadow-tint-*` so `.dark` can deepen it.
|
|
335
|
+
Because that colour is a `var()` rather than a literal, Tailwind still wraps
|
|
336
|
+
it as `var(--tw-shadow-color, var(--shadow-tint))`, so colour modifiers like
|
|
337
|
+
`shadow-primary/20` keep tinting the shadow.
|
|
338
|
+
============================================================================ */
|
|
339
|
+
|
|
340
|
+
@theme {
|
|
341
|
+
/* Durations — `duration-fast`, `duration-normal`, `duration-slow`,
|
|
342
|
+
`duration-slower`, `duration-spring`. */
|
|
343
|
+
--transition-duration-fast: var(--duration-150);
|
|
344
|
+
--transition-duration-normal: var(--duration-200);
|
|
345
|
+
--transition-duration-slow: var(--duration-300);
|
|
346
|
+
--transition-duration-spring: var(--duration-350);
|
|
347
|
+
--transition-duration-slower: var(--duration-500);
|
|
348
|
+
|
|
349
|
+
/* Easings. `--ease-move` is Tailwind's `ease-in-out` curve under a name that
|
|
350
|
+
says what it is for: state changes on something already on screen (colour,
|
|
351
|
+
opacity, transform). `--ease-enter` and `--ease-exit` are the asymmetric
|
|
352
|
+
pair for things arriving on and leaving the screen. `--ease-spring` provides
|
|
353
|
+
an iOS-style spring overshoot curve for tactile arrivals. */
|
|
354
|
+
--ease-enter: cubic-bezier(0.16, 1, 0.3, 1);
|
|
355
|
+
--ease-exit: cubic-bezier(0.7, 0, 0.84, 0);
|
|
356
|
+
--ease-move: cubic-bezier(0.4, 0, 0.2, 1);
|
|
357
|
+
--ease-spring: cubic-bezier(0.16, 1.2, 0.3, 1);
|
|
358
|
+
|
|
359
|
+
/* Looping animations — `animate-float` gently bobs a transient hint so the
|
|
360
|
+
eye finds it. Reduced motion stops it with every other animation. */
|
|
361
|
+
--animate-float: oaiz-float 1.6s var(--ease-move) infinite;
|
|
362
|
+
|
|
363
|
+
/* Elevation */
|
|
364
|
+
--shadow-2xs: 0 1px var(--shadow-tint-weak);
|
|
365
|
+
--shadow-xs: 0 1px 2px 0 var(--shadow-tint-weak);
|
|
366
|
+
--shadow-sm:
|
|
367
|
+
0 1px 3px 0 var(--shadow-tint), 0 1px 2px -1px var(--shadow-tint);
|
|
368
|
+
--shadow-md:
|
|
369
|
+
0 4px 6px -1px var(--shadow-tint), 0 2px 4px -2px var(--shadow-tint);
|
|
370
|
+
--shadow-lg:
|
|
371
|
+
0 10px 15px -3px var(--shadow-tint), 0 4px 6px -4px var(--shadow-tint);
|
|
372
|
+
--shadow-xl:
|
|
373
|
+
0 20px 25px -5px var(--shadow-tint), 0 8px 10px -6px var(--shadow-tint);
|
|
374
|
+
--shadow-2xl: 0 25px 50px -12px var(--shadow-tint-strong);
|
|
375
|
+
|
|
376
|
+
/* Layout — `h-header`, `w-sidebar`, `w-sidebar-collapsed`. */
|
|
377
|
+
--spacing-header: var(--layout-header-height);
|
|
378
|
+
--spacing-sidebar: var(--layout-sidebar-width);
|
|
379
|
+
--spacing-sidebar-collapsed: var(--layout-sidebar-collapsed);
|
|
380
|
+
|
|
381
|
+
/* Spacing roles. Five defaults answering "how far apart?" without having to
|
|
382
|
+
pick a number, plus the page gutter. They land in the `--spacing-*`
|
|
383
|
+
namespace, so every spacing utility can reach them: `gap-inline`,
|
|
384
|
+
`space-y-stack`, `mb-section`, `p-inset`, `px-panel`, `px-page`.
|
|
385
|
+
|
|
386
|
+
Reach for the role first. Drop to a raw step (`gap-1`, `p-4`) only when a
|
|
387
|
+
specific piece of UI genuinely needs to be tighter or looser than its
|
|
388
|
+
role, and stay on the scale when you do: 0.5, 1, 1.5, 2, 3, 4, 6, 8.
|
|
389
|
+
Anything else (`p-2.5`, `gap-5`, `mt-7`) is off-scale — round to a
|
|
390
|
+
neighbour.
|
|
391
|
+
|
|
392
|
+
inline 8px gap between items sitting in a row
|
|
393
|
+
stack 16px gap or margin-bottom between stacked components
|
|
394
|
+
panel 20px horizontal content gutter inside a side panel
|
|
395
|
+
section 32px between major regions of a page
|
|
396
|
+
inset 12px padding inside a card, row or menu
|
|
397
|
+
page 16px page gutter; 24px from `half`, 32px from `normal` */
|
|
398
|
+
--spacing-inline: 0.5rem;
|
|
399
|
+
--spacing-stack: 1rem;
|
|
400
|
+
--spacing-panel: 1.25rem;
|
|
401
|
+
--spacing-section: 2rem;
|
|
402
|
+
--spacing-inset: 0.75rem;
|
|
403
|
+
--spacing-page: var(--layout-page-gutter);
|
|
404
|
+
--spacing-chat-message-gap: 2rem;
|
|
405
|
+
}
|
|
406
|
+
|
|
407
|
+
/* ============================================================================
|
|
408
|
+
SEMANTIC TOKENS (shadcn/ui compatibility)
|
|
409
|
+
|
|
410
|
+
Define semantic tokens that reference @theme primitives
|
|
411
|
+
Tailwind v4 auto-generates utilities: bg-background, text-foreground, etc.
|
|
412
|
+
Using "inline" directive so utilities use var() references correctly
|
|
413
|
+
============================================================================ */
|
|
414
|
+
|
|
415
|
+
@theme inline {
|
|
416
|
+
/* Neutral surfaces and their paired foregrounds. */
|
|
417
|
+
--color-background: var(--role-background);
|
|
418
|
+
--color-foreground: var(--role-foreground);
|
|
419
|
+
--color-card: var(--role-background);
|
|
420
|
+
--color-card-foreground: var(--role-foreground);
|
|
421
|
+
--color-popover: var(--role-background);
|
|
422
|
+
--color-popover-foreground: var(--role-foreground);
|
|
423
|
+
--color-primary: var(--role-primary);
|
|
424
|
+
--color-primary-foreground: var(--role-primary-foreground);
|
|
425
|
+
--color-secondary: var(--role-secondary);
|
|
426
|
+
--color-secondary-foreground: var(--role-foreground);
|
|
427
|
+
--color-accent: var(--role-secondary);
|
|
428
|
+
--color-accent-foreground: var(--role-foreground);
|
|
429
|
+
--color-muted: var(--role-secondary);
|
|
430
|
+
--color-muted-foreground: var(--role-muted-foreground);
|
|
431
|
+
--color-text-shimmer-base: var(--role-text-shimmer-base);
|
|
432
|
+
--color-text-shimmer-highlight: var(--role-text-shimmer-highlight);
|
|
433
|
+
|
|
434
|
+
/* Decorative dividers use a softer mix than meaningful focus and graph ink. */
|
|
435
|
+
--color-border: var(--role-border);
|
|
436
|
+
--color-input: var(--role-border);
|
|
437
|
+
--color-input-fill: var(--role-input-fill);
|
|
438
|
+
--color-input-fill-hover: var(--role-input-fill-hover);
|
|
439
|
+
--color-input-disabled-text: var(--role-muted-foreground);
|
|
440
|
+
--color-ring: var(--role-muted-foreground);
|
|
441
|
+
--color-canvas-edge: var(--palette-zinc-3);
|
|
442
|
+
|
|
443
|
+
/* Four roles per feedback family: soft pair and solid pair. */
|
|
444
|
+
--color-info-bg: var(--role-info-bg);
|
|
445
|
+
--color-info-text: var(--role-info-text);
|
|
446
|
+
--color-info-solid: var(--palette-blue-4);
|
|
447
|
+
--color-info-solid-foreground: var(--palette-zinc-1);
|
|
448
|
+
--color-success-bg-subtle: var(--role-success-bg-subtle);
|
|
449
|
+
--color-success-text: var(--role-success-text);
|
|
450
|
+
--color-success: var(--palette-green-4);
|
|
451
|
+
--color-success-foreground: var(--palette-zinc-1);
|
|
452
|
+
--color-destructive-bg-subtle: var(--role-destructive-bg-subtle);
|
|
453
|
+
--color-destructive-text: var(--role-destructive-text);
|
|
454
|
+
--color-destructive: var(--palette-red-4);
|
|
455
|
+
--color-destructive-foreground: var(--palette-zinc-1);
|
|
456
|
+
--color-warning-bg-subtle: var(--role-warning-bg-subtle);
|
|
457
|
+
--color-warning-text: var(--role-warning-text);
|
|
458
|
+
--color-warning: var(--palette-amber-4);
|
|
459
|
+
--color-warning-foreground: var(--palette-zinc-1);
|
|
460
|
+
|
|
461
|
+
--color-badge-success: var(--role-badge-success);
|
|
462
|
+
--color-badge-success-foreground: var(--role-badge-success-foreground);
|
|
463
|
+
--color-badge-warning: var(--role-badge-warning);
|
|
464
|
+
--color-badge-warning-foreground: var(--role-badge-warning-foreground);
|
|
465
|
+
--color-badge-neutral: var(--role-badge-neutral);
|
|
466
|
+
--color-badge-neutral-foreground: var(--role-badge-neutral-foreground);
|
|
467
|
+
|
|
468
|
+
/* Domain roles can share physical shades without sharing status meaning. */
|
|
469
|
+
--color-knowledge-bg: var(--role-knowledge-bg);
|
|
470
|
+
--color-knowledge-text: var(--role-knowledge-text);
|
|
471
|
+
--color-recording: var(--role-recording);
|
|
472
|
+
--color-version-compare: var(--role-version-compare);
|
|
473
|
+
--color-brand-ocean: var(--role-brand-ocean);
|
|
474
|
+
--color-brand-foreground: var(--palette-zinc-5);
|
|
475
|
+
--color-logo-yellow: var(--role-logo-yellow);
|
|
476
|
+
--color-logo-petal: var(--role-logo-petal);
|
|
477
|
+
--color-orb-blue: var(--role-orb-blue);
|
|
478
|
+
--color-orb-lime: var(--role-orb-lime);
|
|
479
|
+
--color-orb-green: var(--role-orb-green);
|
|
480
|
+
--color-orb-lime-bright: var(--role-orb-lime-bright);
|
|
481
|
+
--color-orb-gold: var(--role-orb-gold);
|
|
482
|
+
--color-orb-blue-muted: var(--role-orb-blue-muted);
|
|
483
|
+
--color-orb-cream: var(--role-orb-cream);
|
|
484
|
+
--color-orb-red: var(--role-orb-red);
|
|
485
|
+
--color-orb-orange: var(--role-orb-orange);
|
|
486
|
+
--color-orb-amber: var(--role-orb-amber);
|
|
487
|
+
--color-orb-center-light: var(--role-orb-center-light);
|
|
488
|
+
--color-orb-center: var(--role-orb-center);
|
|
489
|
+
|
|
490
|
+
/* Code and JSON reuse neutral surfaces and four parser inks. */
|
|
491
|
+
--color-code-background: var(--role-background);
|
|
492
|
+
--color-code-hover-background: var(--role-secondary);
|
|
493
|
+
--color-code-foreground: var(--role-foreground);
|
|
494
|
+
--color-code-border: var(--role-border);
|
|
495
|
+
--color-code-key-text: var(--role-code-key-text);
|
|
496
|
+
--color-code-string-text: var(--role-code-string-text);
|
|
497
|
+
--color-code-number-text: var(--role-code-number-text);
|
|
498
|
+
--color-code-boolean-text: var(--role-code-boolean-text);
|
|
499
|
+
--color-code-null-text: var(--role-code-null-text);
|
|
500
|
+
--color-code-punctuation-text: var(--role-code-punctuation-text);
|
|
501
|
+
|
|
502
|
+
/* Sidebar roles can be themed independently of the page. */
|
|
503
|
+
--color-sidebar: var(--role-sidebar);
|
|
504
|
+
--color-sidebar-background: var(--role-sidebar);
|
|
505
|
+
--color-sidebar-foreground: var(--role-sidebar-foreground);
|
|
506
|
+
--color-sidebar-primary: var(--role-sidebar-primary);
|
|
507
|
+
--color-sidebar-primary-foreground: var(--role-sidebar-primary-foreground);
|
|
508
|
+
--color-sidebar-accent: var(--role-sidebar-accent);
|
|
509
|
+
--color-sidebar-accent-foreground: var(--role-sidebar-accent-foreground);
|
|
510
|
+
--color-sidebar-border: var(--role-sidebar-border);
|
|
511
|
+
--color-sidebar-ring: var(--role-sidebar-ring);
|
|
512
|
+
--color-surface-hover: var(--role-surface-hover);
|
|
513
|
+
--color-sidebar-selected: var(--role-sidebar-selected);
|
|
514
|
+
--color-sidebar-selected-pressed: var(--role-sidebar-selected-pressed);
|
|
515
|
+
--color-nav-rail: var(--role-nav-rail);
|
|
516
|
+
--color-library-preview: var(--role-library-preview);
|
|
517
|
+
|
|
518
|
+
/* Categorical series keep distinct hues and visible ink in both themes. */
|
|
519
|
+
--color-chart-1: var(--palette-blue-3);
|
|
520
|
+
--color-chart-2: var(--palette-green-3);
|
|
521
|
+
--color-chart-3: var(--palette-purple-3);
|
|
522
|
+
--color-chart-4: var(--palette-amber-3);
|
|
523
|
+
--color-chart-5: var(--palette-orange-3);
|
|
524
|
+
|
|
525
|
+
/* Custom integration default icons: twenty hues 18° apart. The lightness keeps
|
|
526
|
+
the light glyph above the 3:1 non-text contrast on every hue, and the chroma
|
|
527
|
+
is the highest all twenty keep inside sRGB. Both themes share them. */
|
|
528
|
+
--color-integration-icon-foreground: var(--palette-zinc-1);
|
|
529
|
+
--color-integration-icon-red: oklch(0.58 0.098 27);
|
|
530
|
+
--color-integration-icon-coral: oklch(0.58 0.098 45);
|
|
531
|
+
--color-integration-icon-orange: oklch(0.58 0.098 63);
|
|
532
|
+
--color-integration-icon-amber: oklch(0.58 0.098 81);
|
|
533
|
+
--color-integration-icon-yellow: oklch(0.58 0.098 99);
|
|
534
|
+
--color-integration-icon-olive: oklch(0.58 0.098 117);
|
|
535
|
+
--color-integration-icon-lime: oklch(0.58 0.098 135);
|
|
536
|
+
--color-integration-icon-green: oklch(0.58 0.098 153);
|
|
537
|
+
--color-integration-icon-emerald: oklch(0.58 0.098 171);
|
|
538
|
+
--color-integration-icon-teal: oklch(0.58 0.098 189);
|
|
539
|
+
--color-integration-icon-cyan: oklch(0.58 0.098 207);
|
|
540
|
+
--color-integration-icon-sky: oklch(0.58 0.098 225);
|
|
541
|
+
--color-integration-icon-azure: oklch(0.58 0.098 243);
|
|
542
|
+
--color-integration-icon-blue: oklch(0.58 0.098 261);
|
|
543
|
+
--color-integration-icon-indigo: oklch(0.58 0.098 279);
|
|
544
|
+
--color-integration-icon-violet: oklch(0.58 0.098 297);
|
|
545
|
+
--color-integration-icon-purple: oklch(0.58 0.098 315);
|
|
546
|
+
--color-integration-icon-magenta: oklch(0.58 0.098 333);
|
|
547
|
+
--color-integration-icon-pink: oklch(0.58 0.098 351);
|
|
548
|
+
--color-integration-icon-rose: oklch(0.58 0.098 9);
|
|
549
|
+
|
|
550
|
+
/* Physical shades are fixed; component code selects semantic roles above. */
|
|
551
|
+
--color-white: var(--palette-white);
|
|
552
|
+
--color-zinc-1: var(--palette-zinc-1);
|
|
553
|
+
--color-zinc-2: var(--palette-zinc-2);
|
|
554
|
+
--color-zinc-3: var(--palette-zinc-3);
|
|
555
|
+
--color-zinc-4: var(--palette-zinc-4);
|
|
556
|
+
--color-zinc-5: var(--palette-zinc-5);
|
|
557
|
+
--color-blue-1: var(--palette-blue-1);
|
|
558
|
+
--color-blue-2: var(--palette-blue-2);
|
|
559
|
+
--color-blue-3: var(--palette-blue-3);
|
|
560
|
+
--color-blue-4: var(--palette-blue-4);
|
|
561
|
+
--color-blue-5: var(--palette-blue-5);
|
|
562
|
+
--color-purple-1: var(--palette-purple-1);
|
|
563
|
+
--color-purple-2: var(--palette-purple-2);
|
|
564
|
+
--color-purple-3: var(--palette-purple-3);
|
|
565
|
+
--color-purple-4: var(--palette-purple-4);
|
|
566
|
+
--color-purple-5: var(--palette-purple-5);
|
|
567
|
+
--color-green-1: var(--palette-green-1);
|
|
568
|
+
--color-green-2: var(--palette-green-2);
|
|
569
|
+
--color-green-3: var(--palette-green-3);
|
|
570
|
+
--color-green-4: var(--palette-green-4);
|
|
571
|
+
--color-green-5: var(--palette-green-5);
|
|
572
|
+
--color-red-1: var(--palette-red-1);
|
|
573
|
+
--color-red-2: var(--palette-red-2);
|
|
574
|
+
--color-red-3: var(--palette-red-3);
|
|
575
|
+
--color-red-4: var(--palette-red-4);
|
|
576
|
+
--color-red-5: var(--palette-red-5);
|
|
577
|
+
--color-amber-1: var(--palette-amber-1);
|
|
578
|
+
--color-amber-2: var(--palette-amber-2);
|
|
579
|
+
--color-amber-3: var(--palette-amber-3);
|
|
580
|
+
--color-amber-4: var(--palette-amber-4);
|
|
581
|
+
--color-amber-5: var(--palette-amber-5);
|
|
582
|
+
--color-orange-1: var(--palette-orange-1);
|
|
583
|
+
--color-orange-2: var(--palette-orange-2);
|
|
584
|
+
--color-orange-3: var(--palette-orange-3);
|
|
585
|
+
--color-orange-4: var(--palette-orange-4);
|
|
586
|
+
--color-orange-5: var(--palette-orange-5);
|
|
587
|
+
}
|
|
588
|
+
|
|
589
|
+
/* Radix measures each panel and exposes its exact block size through this
|
|
590
|
+
custom property, so Accordion content can animate without guessed heights. */
|
|
591
|
+
@keyframes oaiz-accordion-expand {
|
|
592
|
+
from {
|
|
593
|
+
height: 0;
|
|
594
|
+
}
|
|
595
|
+
to {
|
|
596
|
+
height: var(--radix-accordion-content-height);
|
|
597
|
+
}
|
|
598
|
+
}
|
|
599
|
+
|
|
600
|
+
@keyframes oaiz-accordion-collapse {
|
|
601
|
+
from {
|
|
602
|
+
height: var(--radix-accordion-content-height);
|
|
603
|
+
}
|
|
604
|
+
to {
|
|
605
|
+
height: 0;
|
|
606
|
+
}
|
|
607
|
+
}
|
|
608
|
+
|
|
609
|
+
/* Radix Collapsible height keyframes matching Accordion */
|
|
610
|
+
@keyframes oaiz-collapsible-expand {
|
|
611
|
+
from {
|
|
612
|
+
height: 0;
|
|
613
|
+
}
|
|
614
|
+
to {
|
|
615
|
+
height: var(--radix-collapsible-content-height);
|
|
616
|
+
}
|
|
617
|
+
}
|
|
618
|
+
|
|
619
|
+
@keyframes oaiz-collapsible-collapse {
|
|
620
|
+
from {
|
|
621
|
+
height: var(--radix-collapsible-content-height);
|
|
622
|
+
}
|
|
623
|
+
to {
|
|
624
|
+
height: 0;
|
|
625
|
+
}
|
|
626
|
+
}
|
|
627
|
+
|
|
628
|
+
/* Route and page level smooth entrance animation */
|
|
629
|
+
@keyframes oaiz-page-enter {
|
|
630
|
+
from {
|
|
631
|
+
opacity: 0;
|
|
632
|
+
transform: translateY(4px);
|
|
633
|
+
}
|
|
634
|
+
to {
|
|
635
|
+
opacity: 1;
|
|
636
|
+
transform: translateY(0);
|
|
637
|
+
}
|
|
638
|
+
}
|
|
639
|
+
|
|
640
|
+
/* Identical alternate name lets route changes replay without remounting content. */
|
|
641
|
+
@keyframes oaiz-page-enter-alternate {
|
|
642
|
+
from {
|
|
643
|
+
opacity: 0;
|
|
644
|
+
transform: translateY(4px);
|
|
645
|
+
}
|
|
646
|
+
to {
|
|
647
|
+
opacity: 1;
|
|
648
|
+
transform: translateY(0);
|
|
649
|
+
}
|
|
650
|
+
}
|
|
651
|
+
|
|
652
|
+
/* Gentle vertical float that draws the eye to a transient hint. */
|
|
653
|
+
@keyframes oaiz-float {
|
|
654
|
+
0%,
|
|
655
|
+
100% {
|
|
656
|
+
transform: translateY(0);
|
|
657
|
+
}
|
|
658
|
+
50% {
|
|
659
|
+
transform: translateY(-4px);
|
|
660
|
+
}
|
|
661
|
+
}
|
|
662
|
+
|
|
663
|
+
/* Horizontal shimmer sweep for text. */
|
|
664
|
+
@keyframes oaiz-text-shimmer {
|
|
665
|
+
from {
|
|
666
|
+
background-position: 120% 0;
|
|
667
|
+
}
|
|
668
|
+
to {
|
|
669
|
+
background-position: -20% 0;
|
|
670
|
+
}
|
|
671
|
+
}
|
|
672
|
+
|
|
673
|
+
/* One word or character of TypewriterText fading into place. */
|
|
674
|
+
@keyframes oaiz-text-reveal {
|
|
675
|
+
from {
|
|
676
|
+
opacity: 0;
|
|
677
|
+
filter: blur(0.25rem);
|
|
678
|
+
}
|
|
679
|
+
to {
|
|
680
|
+
opacity: 1;
|
|
681
|
+
filter: blur(0);
|
|
682
|
+
}
|
|
683
|
+
}
|
|
684
|
+
|
|
685
|
+
/* Dark Mode Overrides */
|
|
686
|
+
.dark {
|
|
687
|
+
--role-background: oklch(from var(--palette-zinc-5) calc(l * 0.7) c h);
|
|
688
|
+
--role-foreground: var(--palette-zinc-1);
|
|
689
|
+
--role-primary: var(--palette-zinc-1);
|
|
690
|
+
--role-primary-foreground: var(--palette-zinc-5);
|
|
691
|
+
--role-text-shimmer-base: color-mix(
|
|
692
|
+
in oklch,
|
|
693
|
+
var(--role-muted-foreground) 75%,
|
|
694
|
+
var(--role-background)
|
|
695
|
+
);
|
|
696
|
+
--role-text-shimmer-highlight: var(--palette-white);
|
|
697
|
+
--role-secondary: color-mix(
|
|
698
|
+
in oklch,
|
|
699
|
+
var(--role-background) 80%,
|
|
700
|
+
var(--palette-zinc-4)
|
|
701
|
+
);
|
|
702
|
+
--role-muted-foreground: color-mix(
|
|
703
|
+
in oklch,
|
|
704
|
+
var(--palette-zinc-2) 80%,
|
|
705
|
+
var(--palette-zinc-3)
|
|
706
|
+
);
|
|
707
|
+
--role-border: color-mix(
|
|
708
|
+
in oklch,
|
|
709
|
+
var(--role-background) 70%,
|
|
710
|
+
var(--palette-zinc-3)
|
|
711
|
+
);
|
|
712
|
+
--role-input-fill-hover: color-mix(
|
|
713
|
+
in oklch,
|
|
714
|
+
var(--role-background) 65%,
|
|
715
|
+
var(--palette-zinc-4)
|
|
716
|
+
);
|
|
717
|
+
--role-surface-hover: color-mix(
|
|
718
|
+
in oklab,
|
|
719
|
+
var(--role-background) 85%,
|
|
720
|
+
var(--palette-amber-4)
|
|
721
|
+
);
|
|
722
|
+
--role-sidebar: var(--role-background);
|
|
723
|
+
--role-sidebar-foreground: var(--role-muted-foreground);
|
|
724
|
+
--role-sidebar-primary: var(--role-primary);
|
|
725
|
+
--role-sidebar-primary-foreground: var(--role-primary-foreground);
|
|
726
|
+
--role-sidebar-accent: var(--role-secondary);
|
|
727
|
+
--role-sidebar-accent-foreground: var(--role-foreground);
|
|
728
|
+
--role-sidebar-border: var(--role-border);
|
|
729
|
+
--role-sidebar-ring: var(--role-muted-foreground);
|
|
730
|
+
--role-sidebar-selected: var(--role-surface-hover);
|
|
731
|
+
--role-sidebar-selected-pressed: color-mix(
|
|
732
|
+
in oklab,
|
|
733
|
+
var(--role-surface-hover) 70%,
|
|
734
|
+
var(--palette-zinc-4)
|
|
735
|
+
);
|
|
736
|
+
--role-nav-rail: color-mix(
|
|
737
|
+
in oklab,
|
|
738
|
+
var(--role-background) 80%,
|
|
739
|
+
var(--palette-amber-5)
|
|
740
|
+
);
|
|
741
|
+
--role-library-preview: color-mix(
|
|
742
|
+
in oklab,
|
|
743
|
+
var(--role-background) 80%,
|
|
744
|
+
var(--palette-zinc-5)
|
|
745
|
+
);
|
|
746
|
+
|
|
747
|
+
--role-info-bg: var(--palette-blue-5);
|
|
748
|
+
--role-badge-success: var(--palette-green-5);
|
|
749
|
+
--role-badge-success-foreground: var(--palette-green-1);
|
|
750
|
+
--role-badge-warning: var(--palette-amber-5);
|
|
751
|
+
--role-badge-warning-foreground: var(--palette-amber-1);
|
|
752
|
+
--role-badge-neutral: var(--palette-zinc-5);
|
|
753
|
+
--role-badge-neutral-foreground: var(--palette-zinc-1);
|
|
754
|
+
--role-info-text: var(--palette-blue-1);
|
|
755
|
+
--role-success-bg-subtle: var(--palette-green-5);
|
|
756
|
+
--role-success-text: var(--palette-green-1);
|
|
757
|
+
--role-destructive-bg-subtle: var(--palette-red-5);
|
|
758
|
+
--role-destructive-text: color-mix(
|
|
759
|
+
in oklch,
|
|
760
|
+
var(--palette-red-2) 50%,
|
|
761
|
+
var(--palette-red-3)
|
|
762
|
+
);
|
|
763
|
+
--role-warning-bg-subtle: var(--palette-amber-5);
|
|
764
|
+
--role-warning-text: var(--palette-amber-1);
|
|
765
|
+
--role-knowledge-bg: var(--palette-amber-5);
|
|
766
|
+
--role-knowledge-text: var(--palette-amber-1);
|
|
767
|
+
--role-recording: var(--palette-red-1);
|
|
768
|
+
--role-version-compare: var(--palette-orange-1);
|
|
769
|
+
--role-code-key-text: var(--palette-red-2);
|
|
770
|
+
--role-code-string-text: var(--palette-green-2);
|
|
771
|
+
--role-code-null-text: var(--palette-purple-2);
|
|
772
|
+
--role-code-punctuation-text: var(--palette-blue-2);
|
|
773
|
+
|
|
774
|
+
/* Elevation tint (Dark Mode) — a 10% black shadow is invisible on a near-black
|
|
775
|
+
ground, so the ink deepens while the geometry stays put. */
|
|
776
|
+
--shadow-tint-weak: rgb(0 0 0 / 0.3);
|
|
777
|
+
--shadow-tint: rgb(0 0 0 / 0.5);
|
|
778
|
+
--shadow-tint-strong: rgb(0 0 0 / 0.7);
|
|
779
|
+
}
|
|
780
|
+
|
|
781
|
+
/* Collapsed navigation uses the warm rail and neutral item surfaces.
|
|
782
|
+
Inline utilities resolve role variables directly, so these selectors override
|
|
783
|
+
the actual surface rather than an exposed Tailwind color alias. */
|
|
784
|
+
[data-collapsible='icon'] [data-sidebar='sidebar'] {
|
|
785
|
+
background-color: var(--role-nav-rail);
|
|
786
|
+
}
|
|
787
|
+
|
|
788
|
+
[data-collapsible='icon'] [data-sidebar='menu-button']:hover,
|
|
789
|
+
[data-collapsible='icon'] [data-sidebar='menu-button'][data-active='true'] {
|
|
790
|
+
background-color: var(--role-background);
|
|
791
|
+
}
|
|
792
|
+
|
|
793
|
+
[data-collapsible='icon'] [data-sidebar='menu-button']:active {
|
|
794
|
+
background-color: var(--role-secondary);
|
|
795
|
+
}
|
|
796
|
+
|
|
797
|
+
/* ============================================================================
|
|
798
|
+
BASE LAYER STYLES
|
|
799
|
+
============================================================================ */
|
|
800
|
+
|
|
801
|
+
@layer base {
|
|
802
|
+
* {
|
|
803
|
+
border-color: var(--color-border);
|
|
804
|
+
}
|
|
805
|
+
|
|
806
|
+
html {
|
|
807
|
+
color-scheme: light;
|
|
808
|
+
scroll-behavior: smooth;
|
|
809
|
+
overscroll-behavior-x: none;
|
|
810
|
+
height: 100%;
|
|
811
|
+
}
|
|
812
|
+
|
|
813
|
+
html.dark {
|
|
814
|
+
color-scheme: dark;
|
|
815
|
+
}
|
|
816
|
+
|
|
817
|
+
body {
|
|
818
|
+
background-color: var(--color-background);
|
|
819
|
+
color: var(--color-foreground);
|
|
820
|
+
font-synthesis-weight: none;
|
|
821
|
+
text-rendering: optimizeLegibility;
|
|
822
|
+
overscroll-behavior-x: none;
|
|
823
|
+
min-height: 100%;
|
|
824
|
+
overflow-x: hidden;
|
|
825
|
+
}
|
|
826
|
+
|
|
827
|
+
#root {
|
|
828
|
+
min-height: 100%;
|
|
829
|
+
}
|
|
830
|
+
|
|
831
|
+
/* Suppresses false-positive :focus-visible outlines when an overlay closes
|
|
832
|
+
via pointer selection and programmatically restores focus onto its trigger. */
|
|
833
|
+
[data-pointer-close-focus]:focus-visible {
|
|
834
|
+
outline: none !important;
|
|
835
|
+
}
|
|
836
|
+
|
|
837
|
+
@media (prefers-reduced-motion: reduce) {
|
|
838
|
+
*,
|
|
839
|
+
::before,
|
|
840
|
+
::after {
|
|
841
|
+
animation-duration: 0.01ms !important;
|
|
842
|
+
animation-iteration-count: 1 !important;
|
|
843
|
+
transition-duration: 0.01ms !important;
|
|
844
|
+
scroll-behavior: auto !important;
|
|
845
|
+
}
|
|
846
|
+
}
|
|
847
|
+
}
|
|
848
|
+
|
|
849
|
+
/* ============================================================================
|
|
850
|
+
CUSTOM UTILITIES
|
|
851
|
+
|
|
852
|
+
ONLY utilities that are actually used in components
|
|
853
|
+
============================================================================ */
|
|
854
|
+
|
|
855
|
+
@layer utilities {
|
|
856
|
+
/* Keep the moving light brighter than the base in both themes. */
|
|
857
|
+
.oaiz-shimmer-text {
|
|
858
|
+
background-color: color-mix(
|
|
859
|
+
in oklch,
|
|
860
|
+
currentColor 15%,
|
|
861
|
+
var(--color-text-shimmer-base)
|
|
862
|
+
);
|
|
863
|
+
background-image: linear-gradient(
|
|
864
|
+
90deg,
|
|
865
|
+
transparent 40%,
|
|
866
|
+
var(--color-text-shimmer-highlight) 50%,
|
|
867
|
+
transparent 60%
|
|
868
|
+
);
|
|
869
|
+
background-repeat: no-repeat;
|
|
870
|
+
background-position: 100% 0;
|
|
871
|
+
background-size: 200% 100%;
|
|
872
|
+
background-clip: text;
|
|
873
|
+
-webkit-background-clip: text;
|
|
874
|
+
-webkit-text-fill-color: transparent;
|
|
875
|
+
}
|
|
876
|
+
|
|
877
|
+
.oaiz-shimmer-text--activity {
|
|
878
|
+
background-color: var(--color-text-shimmer-base);
|
|
879
|
+
}
|
|
880
|
+
|
|
881
|
+
/* Token-heavy labels keep the caller's semantic foreground as their
|
|
882
|
+
contrast-bearing base while a palette-backed rainbow light crosses it. */
|
|
883
|
+
.oaiz-shimmer-text--rainbow {
|
|
884
|
+
background-color: currentColor;
|
|
885
|
+
background-image: linear-gradient(
|
|
886
|
+
110deg,
|
|
887
|
+
transparent 20%,
|
|
888
|
+
color-mix(in oklch, currentColor 40%, var(--palette-blue-3)) 35%,
|
|
889
|
+
color-mix(in oklch, currentColor 40%, var(--palette-purple-3)) 42%,
|
|
890
|
+
color-mix(in oklch, currentColor 40%, var(--palette-red-3)) 50%,
|
|
891
|
+
color-mix(in oklch, currentColor 40%, var(--palette-orange-3)) 58%,
|
|
892
|
+
color-mix(in oklch, currentColor 40%, var(--palette-green-3)) 65%,
|
|
893
|
+
transparent 80%
|
|
894
|
+
);
|
|
895
|
+
}
|
|
896
|
+
|
|
897
|
+
.oaiz-shimmer-text:where([dir='rtl'], [dir='rtl'] *) {
|
|
898
|
+
animation-direction: reverse;
|
|
899
|
+
}
|
|
900
|
+
|
|
901
|
+
@media (prefers-reduced-motion: reduce) {
|
|
902
|
+
.oaiz-shimmer-text {
|
|
903
|
+
animation: none !important;
|
|
904
|
+
background-image: none;
|
|
905
|
+
background-color: transparent;
|
|
906
|
+
-webkit-text-fill-color: currentColor;
|
|
907
|
+
}
|
|
908
|
+
}
|
|
909
|
+
|
|
910
|
+
/* Each revealed unit is already laid out, so only its opacity and blur
|
|
911
|
+
animate and the surrounding text never reflows. Callers stagger units
|
|
912
|
+
with animation-delay. */
|
|
913
|
+
.oaiz-text-reveal {
|
|
914
|
+
animation: oaiz-text-reveal var(--duration-500) var(--ease-enter) both;
|
|
915
|
+
}
|
|
916
|
+
|
|
917
|
+
@media (prefers-reduced-motion: reduce) {
|
|
918
|
+
.oaiz-text-reveal {
|
|
919
|
+
animation: none !important;
|
|
920
|
+
}
|
|
921
|
+
}
|
|
922
|
+
|
|
923
|
+
/* Keep overflow scroll/auto behavior without painting a scrollbar. */
|
|
924
|
+
.scrollbar-none {
|
|
925
|
+
scrollbar-width: none;
|
|
926
|
+
-ms-overflow-style: none;
|
|
927
|
+
}
|
|
928
|
+
|
|
929
|
+
.scrollbar-none::-webkit-scrollbar {
|
|
930
|
+
display: none;
|
|
931
|
+
width: 0;
|
|
932
|
+
height: 0;
|
|
933
|
+
}
|
|
934
|
+
|
|
935
|
+
/* Container — responsive page container. The gutter is `--spacing-page`,
|
|
936
|
+
which steps 16 -> 24 -> 32px with the viewport. */
|
|
937
|
+
.container {
|
|
938
|
+
padding-inline: var(--spacing-page);
|
|
939
|
+
margin-inline: auto;
|
|
940
|
+
max-width: var(--layout-container-max);
|
|
941
|
+
}
|
|
942
|
+
|
|
943
|
+
/* From `ultrawide` the container has hit its cap and is centred, so the
|
|
944
|
+
viewport already supplies the outer margin and the inner gutter relaxes
|
|
945
|
+
back to the base step. This is what the container did before the gutter
|
|
946
|
+
became a token; dropping it moved every legal page 16px per side. */
|
|
947
|
+
@media (min-width: 96rem) {
|
|
948
|
+
.container {
|
|
949
|
+
padding-inline: 1rem;
|
|
950
|
+
}
|
|
951
|
+
}
|
|
952
|
+
}
|