Repository navigation
Expand file tree
/
Copy pathindex.css
More file actions
390 lines (340 loc) · 12.8 KB
/
Copy pathindex.css
File metadata and controls
390 lines (340 loc) · 12.8 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
@import "tailwindcss";
@source "../node_modules/streamdown/dist/*.js";
@theme {
/* ----------------------------------------------------------------------
* Claude design system — warm editorial.
*
* The trinity is cream canvas + coral accent + dark warm-ink surfaces.
* Deliberately warm and humanist where most AI products use cool blue and
* slate; the cream tint IS the brand differentiator, so nothing here is
* pure white or a cool gray.
*
* Raw ramps come first, semantic tokens alias onto them. Component code
* never names a hex value — retheming happens here and nowhere else.
* See DESIGN_SYSTEM.md.
* -------------------------------------------------------------------- */
/* --- Coral: the brand voltage. Scarce on elements, generous on bands. -- */
--color-coral-50: #faf0ec;
--color-coral-100: #f4e0d8;
--color-coral-200: #e9c2b3;
--color-coral-300: #dda38d;
--color-coral-400: #d28d74;
/* The literal brand coral. Decorative fills only — it cannot carry text. */
--color-coral-brand: #cc785c;
--color-coral-500: #b55839;
--color-coral-600: #a9583e;
--color-coral-700: #8a462f;
--color-coral-800: #5f3021;
--color-coral-900: #341a12;
--color-coral-950: #1e0f0a;
/* --- Cream: the canvas backbone, from page floor to dark product chrome. */
--color-cream-50: #faf9f5;
--color-cream-100: #f5f0e8;
--color-cream-200: #efe9de;
--color-cream-300: #e8e0d2;
--color-cream-400: #e6dfd8;
--color-cream-500: #a09d96;
--color-cream-600: #8e8b82;
--color-cream-700: #6c6a64;
--color-cream-800: #3d3d3a;
--color-cream-900: #252523;
--color-cream-950: #141413;
/* --- Dark warm-ink surfaces: code chrome, footers, featured tiers. ----- */
--color-ink-800: #252320;
--color-ink-900: #1f1e1b;
--color-ink-950: #181715;
/* ----------------------------------------------------------------------
* Semantic tokens (light mode). Dark overrides live in [data-theme=dark].
* -------------------------------------------------------------------- */
/* Brand.
`primary` is one lightness step below the literal brand coral (#cc785c):
white-on-#cc785c measures 3.28:1, which fails WCAG AA for the 14px button
label the design puts on it. Hue and saturation are unchanged, so the
coral character survives; `coral-brand` keeps the exact value for
decorative fills that carry no text. See DESIGN_SYSTEM.md §5. */
--color-primary: var(--color-coral-500);
--color-primary-hover: var(--color-coral-600);
--color-on-primary: #ffffff;
--color-primary-foreground: #ffffff;
--color-primary-dark: var(--color-coral-600);
--color-accent: #377e70;
/* Surfaces. Cards separate from the canvas by hairline, not by fill —
"color-block first, shadow rare". Pure white is off-brand. */
--color-bg: var(--color-cream-50);
--color-surface: var(--color-cream-50);
--color-surface-2: var(--color-cream-100);
--color-surface-3: var(--color-cream-200);
--color-surface-alt: var(--color-cream-100);
--color-surface-muted: var(--color-cream-200);
--color-surface-hover: var(--color-cream-200);
--color-surface-strong: var(--color-cream-300);
/* Dark product surfaces, available in both modes: the cream-to-dark
contrast is the pacing mechanism, not a dark-mode-only affordance. */
--color-surface-dark: var(--color-ink-950);
--color-surface-dark-soft: var(--color-ink-900);
--color-surface-dark-elevated: var(--color-ink-800);
--color-on-dark: var(--color-cream-50);
--color-on-dark-soft: var(--color-cream-500);
/* Text */
--color-text: var(--color-cream-950);
--color-text-strong: var(--color-cream-900);
--color-text-body: var(--color-cream-800);
--color-text-muted: var(--color-cream-700);
--color-text-subtle: var(--color-cream-600);
/* Borders — one elevation step, not ink lines. */
--color-border: var(--color-cream-400);
--color-divider: #ebe6df;
/* Status */
--color-success: #3d804d;
--color-warning: #956c0c;
--color-danger: #c64545;
--color-danger-hover: #a63636;
--color-on-danger: #ffffff;
--color-error: #c64545;
--color-info: #377e70;
/* Chat */
--color-chat-bg: var(--color-cream-50);
--color-bubble-in: var(--color-cream-100);
--color-bubble-out: var(--color-coral-100);
--color-bubble-system: var(--color-cream-200);
/* Focus — a coral ring, matching text-input-focused. */
--color-focus: color-mix(in srgb, var(--color-coral-brand) 45%, transparent);
/* ----------------------------------------------------------------------
* Spark framing accents.
*
* The design's surface trinity admits no fourth tone, but the Spark study
* needs five mutually distinguishable vibe markers. They are resolved as
* *content accents*, never surfaces: each is desaturated and warmed to sit
* on cream, and coral itself is withheld so the brand CTA stays scarce.
* -------------------------------------------------------------------- */
--color-frame-calm: #3f7e70;
--color-frame-calm-tint: #e4efec;
--color-frame-zoomies: #a46424;
--color-frame-zoomies-tint: #f6ebdc;
--color-frame-silly: #b2537a;
--color-frame-silly-tint: #f4e6ec;
--color-frame-challenge: #a04a3c;
--color-frame-challenge-tint: #f4e4e0;
--color-frame-science: #5a6f9c;
--color-frame-science-tint: #e7eaf2;
/* ----------------------------------------------------------------------
* Typography. The display/body split is the brand voice and is unbreakable:
* a serif display over a humanist sans body. Copernicus and StyreneB are
* licensed, so the stacks walk to the closest widely-available faces —
* Iowan/Palatino/Georgia for display, Inter/system humanist for body.
* -------------------------------------------------------------------- */
--font-sans: "Inter", "Inter var", system-ui, -apple-system, "Segoe UI",
Roboto, "Helvetica Neue", Arial, sans-serif;
--font-display: "Tiempos Headline", "Iowan Old Style", "Palatino Linotype",
Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
--font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas,
monospace;
/* Display steps carry their own negative tracking; without it the serif
reads as off-brand. Weight stays 400 — never bold. */
--tracking-display-xl: -1.5px;
--tracking-display-lg: -1px;
--tracking-display-md: -0.5px;
--tracking-display-sm: -0.3px;
/* Uppercase eyebrow/caption tracking opens up rather than tightening. */
--tracking-caption: 1.5px;
/* Radii — hierarchical: controls 8px, cards 12px, marquee 16px. */
--radius-xs: 4px;
--radius-sm: 6px;
--radius-md: 8px;
--radius-lg: 12px;
--radius-xl: 16px;
--radius-pill: 9999px;
/* Elevation — the system is color-block first. Shadows stay faint and rare;
most depth comes from cream-vs-dark surface contrast. */
--shadow-xs: 0 1px 2px rgba(20, 20, 19, 0.04);
--shadow-sm: 0 1px 3px rgba(20, 20, 19, 0.08);
--shadow-md: 0 2px 8px -2px rgba(20, 20, 19, 0.1);
--shadow-lg: 0 8px 24px -8px rgba(20, 20, 19, 0.14);
--shadow-primary: 0 1px 3px rgba(20, 20, 19, 0.08);
/* Motion */
--ease-out: cubic-bezier(0.22, 1, 0.36, 1);
--ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
/* Layout constants */
--header-h: 56px;
--bottomnav-h: 56px;
--composer-h: 56px;
--tap: 44px;
}
/* ---------------------------------------------------------------------------
* Type scale as utilities.
*
* Each display step bundles family + size + weight + tracking, because those
* four always travel together: a serif headline that loses its negative
* tracking or picks up a bold weight reads as off-brand. Exposing them as one
* class stops components re-deriving the combination by hand.
* ------------------------------------------------------------------------ */
@utility display-xl {
font-family: var(--font-display);
font-weight: 400;
font-size: 3.25rem;
line-height: 1.05;
letter-spacing: var(--tracking-display-xl);
}
@utility display-lg {
font-family: var(--font-display);
font-weight: 400;
font-size: 2.5rem;
line-height: 1.1;
letter-spacing: var(--tracking-display-lg);
}
@utility display-md {
font-family: var(--font-display);
font-weight: 400;
font-size: 2rem;
line-height: 1.15;
letter-spacing: var(--tracking-display-md);
}
@utility display-sm {
font-family: var(--font-display);
font-weight: 400;
font-size: 1.5rem;
line-height: 1.2;
letter-spacing: var(--tracking-display-sm);
}
/* Uppercase eyebrow above a display headline. */
@utility eyebrow {
font-size: 0.75rem;
font-weight: 500;
line-height: 1.4;
letter-spacing: var(--tracking-caption);
text-transform: uppercase;
}
@layer base {
html {
/* Fallback for --vvh before JS hydrates */
--vvh: 100vh;
--vvh-offset: 0px;
}
html,
body,
#root {
height: 100%;
overscroll-behavior-y: none;
}
body {
@apply bg-bg text-text antialiased;
font-family: var(--font-sans);
padding: env(safe-area-inset-top) env(safe-area-inset-right) 0 env(safe-area-inset-left);
}
/* Editorial display voice: serif, regular weight, negative tracking. The
serif character is the brand — a sans headline would read as generic. */
h1,
h2,
h3 {
font-family: var(--font-display);
font-weight: 400;
letter-spacing: var(--tracking-display-md);
}
h1 {
letter-spacing: var(--tracking-display-lg);
}
/* Prevent iOS Safari auto-zoom on focus for all form controls */
@supports (-webkit-touch-callout: none) {
input,
textarea,
select {
font-size: max(16px, 1em);
}
}
}
html[data-theme="light"] {
color-scheme: light;
}
html[data-theme="dark"] {
/* Dark mode inhabits the same warm-ink product surfaces the light theme
already uses for code chrome, so the two modes share one vocabulary.
Coral holds its hue: it reads correctly on warm dark without lightening. */
--color-primary: var(--color-coral-400);
--color-primary-hover: var(--color-coral-300);
--color-on-primary: var(--color-cream-950);
--color-primary-foreground: var(--color-cream-950);
--color-primary-dark: var(--color-coral-300);
--color-accent: #7fcfc0;
--color-bg: var(--color-ink-950);
--color-surface: var(--color-ink-900);
--color-surface-2: var(--color-ink-800);
--color-surface-3: var(--color-ink-800);
--color-surface-alt: var(--color-ink-800);
--color-surface-muted: var(--color-ink-800);
--color-surface-hover: var(--color-ink-800);
--color-surface-strong: var(--color-ink-800);
--color-surface-dark: var(--color-ink-950);
--color-surface-dark-soft: var(--color-ink-900);
--color-surface-dark-elevated: var(--color-ink-800);
--color-text: var(--color-cream-50);
--color-text-strong: var(--color-cream-50);
--color-text-body: var(--color-cream-100);
--color-text-muted: var(--color-cream-500);
--color-text-subtle: var(--color-cream-600);
--color-border: #34312c;
--color-divider: #2a2823;
--color-success: #6fc482;
--color-warning: #d4a017;
--color-danger: #e07070;
--color-danger-hover: #c64545;
--color-on-danger: var(--color-cream-950);
--color-error: #e07070;
--color-info: #7fcfc0;
--color-chat-bg: var(--color-ink-950);
--color-bubble-in: var(--color-ink-800);
--color-bubble-out: var(--color-coral-800);
--color-bubble-system: var(--color-ink-800);
--color-focus: color-mix(in srgb, var(--color-coral-400) 45%, transparent);
/* Vibe accents lighten so they hold contrast on warm dark. */
--color-frame-calm: #7fcfc0;
--color-frame-calm-tint: #22322f;
--color-frame-zoomies: #e0a35c;
--color-frame-zoomies-tint: #35291b;
--color-frame-silly: #d98cae;
--color-frame-silly-tint: #33222a;
--color-frame-challenge: #d98a78;
--color-frame-challenge-tint: #342420;
--color-frame-science: #92a4d0;
--color-frame-science-tint: #23262f;
--shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.3);
--shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.35);
--shadow-md: 0 2px 8px -2px rgba(0, 0, 0, 0.45);
--shadow-lg: 0 8px 24px -8px rgba(0, 0, 0, 0.55);
--shadow-primary: 0 1px 3px rgba(0, 0, 0, 0.35);
color-scheme: dark;
}
@layer base {
/* Editorial text selection */
::selection {
background-color: color-mix(in srgb, var(--color-primary) 22%, transparent);
color: var(--color-text);
}
/* Quiet, slim scrollbars that match the palette */
* {
scrollbar-width: thin;
scrollbar-color: var(--color-border) transparent;
}
*::-webkit-scrollbar {
width: 10px;
height: 10px;
}
*::-webkit-scrollbar-thumb {
background-color: var(--color-border);
border-radius: 999px;
border: 3px solid transparent;
background-clip: content-box;
}
*::-webkit-scrollbar-thumb:hover {
background-color: var(--color-text-subtle);
}
@media (prefers-reduced-motion: reduce) {
*,
*::before,
*::after {
animation-duration: 0.01ms !important;
animation-iteration-count: 1 !important;
transition-duration: 0.01ms !important;
scroll-behavior: auto !important;
}
}
}