-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathglobals.css
More file actions
408 lines (370 loc) · 11.3 KB
/
globals.css
File metadata and controls
408 lines (370 loc) · 11.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
@import "tailwindcss";
@import "katex/dist/katex.min.css";
@import "@clerk/themes/shadcn.css";
@import "./vaul-base.css";
@import "tw-animate-css";
@plugin "@tailwindcss/typography";
/* Exclude documentation directories from Tailwind's automatic content detection.
.agents/ contains markdown docs with code examples that include raw Tailwind class
strings. Without this exclusion, Tailwind extracts those strings as class candidates
and generates CSS for them — including invalid patterns documented as "wrong" examples,
which crash Turbopack's CSS parser. */
@source not "../.agents";
@custom-variant dark (&:is(.dark *));
/* Touch device detection - hides elements on coarse pointer (touch) devices */
@custom-variant pointer-coarse (@media (pointer: coarse));
@custom-variant pointer-fine (@media (pointer: fine));
/* Viewport height variants for conditional sticky behavior (ChatGPT pattern) */
@custom-variant tall (@media (min-height: 40rem));
@custom-variant not-tall (@media (max-height: 39.99rem));
@keyframes collapsible-down {
from {
height: 0;
opacity: 0;
}
to {
height: var(--collapsible-panel-height);
opacity: 1;
}
}
@keyframes collapsible-up {
from {
height: var(--collapsible-panel-height);
opacity: 1;
}
to {
height: 0;
opacity: 0;
}
}
@theme {
--font-mono: var(--font-geist-mono);
--spacing-app-header: 52px;
--spacing-input-area: 134px;
--animate-collapsible-down: collapsible-down 200ms ease-out;
--animate-collapsible-up: collapsible-up 200ms ease-out;
@keyframes loading-dots {
0%,
100% {
opacity: 0;
}
50% {
opacity: 1;
}
}
@keyframes shimmer {
from {
background-position: 200% center;
}
to {
background-position: 0% center;
}
}
@keyframes caret-blink {
0%,
100% {
opacity: 1;
}
50% {
opacity: 0;
}
}
@keyframes caret-fade-out {
from {
opacity: 1;
}
to {
opacity: 0;
}
}
@keyframes indicator-glyph-spin {
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
}
@keyframes indicator-wave {
0%,
100% {
transform: scaleY(0.6);
opacity: 0.5;
}
50% {
transform: scaleY(1);
opacity: 1;
}
}
@keyframes indicator-dot-trail {
0% {
transform: translateX(-0.2em);
opacity: 0;
}
25% {
opacity: 1;
}
100% {
transform: translateX(0.25em);
opacity: 0;
}
}
@keyframes indicator-pulse-dot {
0%,
100% {
transform: scale(0.8);
opacity: 0.5;
}
50% {
transform: scale(1.2);
opacity: 1;
}
}
@keyframes indicator-underscore-shimmer {
from {
background-position: 200% center;
}
to {
background-position: 0% center;
}
}
@keyframes indicator-soft-glow {
0%,
100% {
opacity: 0.55;
box-shadow: 0 0 0 0 color-mix(in oklab, var(--foreground) 30%, transparent);
}
50% {
opacity: 1;
box-shadow: 0 0 8px 1px color-mix(in oklab, var(--foreground) 45%, transparent);
}
}
}
@theme inline {
--color-background: var(--background);
--color-foreground: var(--foreground);
--font-sans: var(--font-geist-sans);
--font-mono: var(--font-geist-mono);
--color-sidebar-ring: var(--sidebar-ring);
--color-sidebar-border: var(--sidebar-border);
--color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
--color-sidebar-accent: var(--sidebar-accent);
--color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
--color-sidebar-primary: var(--sidebar-primary);
--color-sidebar-foreground: var(--sidebar-foreground);
--color-sidebar: var(--sidebar);
--color-chart-5: var(--chart-5);
--color-chart-4: var(--chart-4);
--color-chart-3: var(--chart-3);
--color-chart-2: var(--chart-2);
--color-chart-1: var(--chart-1);
--color-ring: var(--ring);
--color-input: var(--input);
--color-border: var(--border);
--color-destructive-foreground: var(--destructive-foreground);
--color-destructive: var(--destructive);
--color-accent-foreground: var(--accent-foreground);
--color-accent: var(--accent);
--color-muted-foreground: var(--muted-foreground);
--color-muted: var(--muted);
--color-secondary-foreground: var(--secondary-foreground);
--color-secondary: var(--secondary);
--color-primary-foreground: var(--primary-foreground);
--color-primary: var(--primary);
--color-popover-foreground: var(--popover-foreground);
--color-popover: var(--popover);
--color-card-foreground: var(--card-foreground);
--color-card: var(--card);
--radius-sm: calc(var(--radius) - 4px);
--radius-md: calc(var(--radius) - 2px);
--radius-lg: var(--radius);
--radius-xl: calc(var(--radius) + 4px);
--spacing-scroll-area: calc(
-1 * var(--spacing-input-area)
);
--spacing-scroll-anchor-offset: 140px;
--spacing-scroll-anchor: calc(
var(--spacing-scroll-area) - var(--spacing-scroll-anchor-offset) + 100dvh
);
}
:root {
/* Sidebar dimensions */
--sidebar-width: 16rem;
--sidebar-rail-width: 3.25rem;
--sidebar-header-height: 3.25rem;
/* Sidebar spacing */
--sidebar-section-first-margin-top: 0.5rem;
--sidebar-section-margin-top: 1rem;
--sidebar-collapsed-section-margin-bottom: 0.25rem;
--sidebar-expanded-section-margin-bottom: 0.5rem;
--sidebar-item-gap: 0.375rem;
/* Sticky header z-index */
--header-z-index: 20;
/* Scroll padding (no longer need fixed header compensation) */
--spacing-scroll-padding-top: 0px;
--background: oklch(1 0 0);
--foreground: oklch(0.141 0.005 285.823);
--card: oklch(1 0 0);
--card-foreground: oklch(0.141 0.005 285.823);
--popover: oklch(1 0 0);
--popover-foreground: oklch(0.141 0.005 285.823);
--primary: oklch(0.21 0.006 285.885);
--primary-foreground: oklch(0.985 0 0);
--secondary: oklch(0.967 0.001 286.375);
--secondary-foreground: oklch(0.21 0.006 285.885);
--muted: oklch(0.967 0.001 286.375);
--muted-foreground: oklch(0.552 0.016 285.938);
--accent: oklch(0.967 0.001 286.375);
--accent-foreground: oklch(0.21 0.006 285.885);
--destructive: oklch(0.577 0.245 27.325);
--destructive-foreground: oklch(0.577 0.245 27.325);
--border: oklch(0.92 0.004 286.32);
--input: oklch(0.92 0.004 286.32);
--ring: oklch(0.705 0.015 286.067);
--chart-1: oklch(0.646 0.222 41.116);
--chart-2: oklch(0.6 0.118 184.704);
--chart-3: oklch(0.398 0.07 227.392);
--chart-4: oklch(0.828 0.189 84.429);
--chart-5: oklch(0.769 0.188 70.08);
--radius: 0.625rem;
--sidebar: oklch(0.985 0 0);
--sidebar-foreground: oklch(0.141 0.005 285.823);
--sidebar-primary: oklch(0.21 0.006 285.885);
--sidebar-primary-foreground: oklch(0.985 0 0);
--sidebar-accent: oklch(0.967 0.001 286.375);
--sidebar-accent-foreground: oklch(0.21 0.006 285.885);
--sidebar-border: oklch(0.92 0.004 286.32);
--sidebar-ring: oklch(0.705 0.015 286.067);
/* Composer surface */
--composer-shadow-drop: rgba(0, 0, 0, 0.04);
--composer-shadow-edge: rgba(0, 0, 0, 0.62);
--composer-shadow-drop-offset: 0px 4px 4px 0px;
--composer-shadow-edge-offset: 0px 0px 1px 0px;
--composer-bg: var(--background);
}
.dark {
--background: oklch(21.34% 0 0);
--foreground: oklch(0.985 0 0);
--card: oklch(21.34% 0 0);
--card-foreground: oklch(0.985 0 0);
--popover: oklch(26.45% 0 0);
--popover-foreground: oklch(0.985 0 0);
--primary: oklch(0.985 0 0);
--primary-foreground: oklch(0.21 0.006 285.885);
--secondary: oklch(0.30 0 0);
--secondary-foreground: oklch(0.985 0 0);
--muted: oklch(0.274 0.006 286.033);
--muted-foreground: oklch(0.705 0.015 286.067);
--accent: oklch(100% 0 0 / 10.2%);
--accent-foreground: oklch(0.985 0 0);
--destructive: oklch(0.6 0.18 15);
--destructive-foreground: oklch(0.95 0.01 20);
--border: oklch(100% 0 0 / 8%);
--input: oklch(0.35 0.006 286.033);
--ring: oklch(0.442 0.017 285.786);
--chart-1: oklch(0.488 0.243 264.376);
--chart-2: oklch(0.696 0.17 162.48);
--chart-3: oklch(0.769 0.188 70.08);
--chart-4: oklch(0.627 0.265 303.9);
--chart-5: oklch(0.645 0.246 16.439);
--sidebar: oklch(19% 0 0);
--sidebar-foreground: oklch(0.985 0 0);
--sidebar-primary: oklch(26.45% 0 0);
--sidebar-primary-foreground: oklch(0.985 0 0);
--sidebar-accent: oklch(100% 0 0 / 8%);
--sidebar-accent-foreground: oklch(0.985 0 0);
--sidebar-border: oklch(0.274 0.006 286.033);
--sidebar-ring: oklch(0.705 0.015 286.067);
/* Composer surface — dark mode shadow tokens */
--composer-shadow-drop: rgba(0, 0, 0, 0.1);
--composer-shadow-edge: rgba(255, 255, 255, 0.2);
--composer-shadow-drop-offset: 0px 4px 12px 0px;
--composer-shadow-edge-offset: inset 0px 0px 1px 0px;
--composer-bg: oklch(24.56% 0 0);
}
@layer base {
* {
@apply border-border outline-ring/50;
}
body {
@apply bg-background text-foreground;
}
}
@layer utilities {
.shadow-composer {
box-shadow:
var(--composer-shadow-drop-offset) var(--composer-shadow-drop),
var(--composer-shadow-edge-offset) var(--composer-shadow-edge);
}
}
code {
font-family: var(--font-geist-mono);
font-feature-settings: var(--default-mono-font-feature-settings);
font-variation-settings: var(--default-mono-font-variation-settings);
}
/* Typography: balanced headings, pretty body text (progressive enhancement) */
.prose :is(h1, h2, h3, h4) {
text-wrap: balance;
}
.prose p,
.prose li {
text-wrap: pretty;
}
/* Typography plugin → design token bridge
Maps @tailwindcss/typography color variables to our design tokens
so prose content (chat messages) uses the same palette as the UI.
Must target .prose (not :root) because the plugin sets these vars
on .prose elements directly — a direct declaration beats inheritance. */
.prose {
--tw-prose-body: var(--foreground);
--tw-prose-headings: var(--foreground);
--tw-prose-lead: var(--muted-foreground);
--tw-prose-links: var(--foreground);
--tw-prose-bold: var(--foreground);
--tw-prose-counters: var(--muted-foreground);
--tw-prose-bullets: var(--muted-foreground);
--tw-prose-hr: var(--border);
--tw-prose-quotes: var(--foreground);
--tw-prose-quote-borders: var(--border);
--tw-prose-captions: var(--muted-foreground);
--tw-prose-kbd: var(--foreground);
--tw-prose-kbd-shadows: color-mix(in oklab, var(--foreground) 10%, transparent);
--tw-prose-code: var(--foreground);
--tw-prose-pre-code: var(--foreground);
--tw-prose-pre-bg: var(--muted);
--tw-prose-th-borders: var(--border);
--tw-prose-td-borders: var(--border);
}
.prose [data-footnote-ref] {
display: inline-flex;
align-items: center;
justify-content: center;
margin-left: 0.125rem;
border-radius: 9999px;
background-color: var(--muted);
padding: 0.0625rem 0.375rem;
font-family: var(--font-geist-mono);
font-size: 0.75rem;
line-height: 1.1;
color: var(--muted-foreground);
text-decoration: none;
transition: background-color 160ms ease, color 160ms ease;
}
.prose [data-footnote-ref]:hover {
background-color: color-mix(in oklab, var(--muted) 70%, var(--foreground) 30%);
color: var(--foreground);
}
.prose section[data-footnotes] {
margin-top: 1.5rem;
border-top: 1px solid var(--border);
padding-top: 1rem;
font-size: 0.875rem;
}
.prose [data-footnote-backref] {
color: var(--muted-foreground);
text-decoration: none;
}
/* sonner toast */
[data-sonner-toaster] > li {
width: 100%;
}