返回 CodeWhale
tokens.ts
1 // Generated from Codewhale design 5.5.0; sha256 b154b28c796626428f20b38db59ee6449aa876831ae04d4ddceb3cb1fce8185c. Do not edit.
2 export const tokens = {
3 "version": "5.5.0",
4 "colors": {
5 "dark": {
6 "background": "05070b",
7 "foreground": "edf1f7",
8 "surface": "080b11",
9 "muted_foreground": "b2bfcd",
10 "subagent": "bccad9",
11 "disabled": "828f9e",
12 "border": "263040",
13 "sidebar": "0f131c",
14 "primary": "0b4cc4",
15 "primary_foreground": "ffffff",
16 "accent": "94beff",
17 "hover": "202938",
18 "selected": "18202e",
19 "attention": "f0be82",
20 "live": "7fdfc8",
21 "live_peak": "e3fcf4",
22 "danger": "f4a8a0",
23 "border_strong": "8a97a8",
24 "ocean_depth": "0b111c",
25 "diff_add": "1d352a",
26 "diff_remove": "422b2c"
27 },
28 "light": {
29 "background": "f4f7fc",
30 "foreground": "162230",
31 "surface": "fefeff",
32 "muted_foreground": "45515f",
33 "subagent": "374553",
34 "disabled": "68727f",
35 "border": "d5dde8",
36 "sidebar": "fcfdfe",
37 "primary": "0b4cc4",
38 "primary_foreground": "ffffff",
39 "accent": "1552c6",
40 "hover": "e2eaf4",
41 "selected": "d6e1f0",
42 "attention": "7b4b06",
43 "live": "146857",
44 "live_peak": "0b3f33",
45 "danger": "a42531",
46 "border_strong": "687381",
47 "ocean_depth": "f7f9fc",
48 "diff_add": "d2ebdd",
49 "diff_remove": "f8e1dd"
50 }
51 },
52 "water": {
53 "dark": [
54 {
55 "color": "0d1422",
56 "at": 0
57 },
58 {
59 "color": "090e19",
60 "at": 36
61 },
62 {
63 "color": "060910",
64 "at": 74
65 },
66 {
67 "color": "05070b",
68 "at": 100
69 }
70 ],
71 "light": [
72 {
73 "color": "e2ebf7",
74 "at": 0
75 },
76 {
77 "color": "e9f0f9",
78 "at": 32
79 },
80 {
81 "color": "eff4fb",
82 "at": 65
83 },
84 {
85 "color": "f4f7fc",
86 "at": 100
87 }
88 ]
89 },
90 "surface_light": {
91 "dark": {
92 "x": 52,
93 "y": 0,
94 "stops": [
95 {
96 "color": {
97 "hex": "3b82f6",
98 "alpha": 0.18
99 },
100 "at": 0
101 },
102 {
103 "color": {
104 "hex": "0b48bb",
105 "alpha": 0.06
106 },
107 "at": 46
108 },
109 {
110 "color": {
111 "hex": "0b48bb",
112 "alpha": 0
113 },
114 "at": 76
115 }
116 ]
117 },
118 "light": {
119 "x": 52,
120 "y": 0,
121 "stops": [
122 {
123 "color": {
124 "hex": "ffffff",
125 "alpha": 0.9
126 },
127 "at": 0
128 },
129 {
130 "color": {
131 "hex": "ffffff",
132 "alpha": 0.32
133 },
134 "at": 42
135 },
136 {
137 "color": {
138 "hex": "ffffff",
139 "alpha": 0
140 },
141 "at": 74
142 }
143 ]
144 }
145 },
146 "glass": {
147 "dark": {
148 "border": {
149 "hex": "ffffff",
150 "alpha": 0.1
151 },
152 "highlight": {
153 "hex": "ffffff",
154 "alpha": 0.16
155 },
156 "clear": {
157 "fill": {
158 "hex": "141a25",
159 "alpha": 0.42
160 },
161 "blur_px": 14
162 },
163 "frosted": {
164 "fill": {
165 "hex": "141a25",
166 "alpha": 0.64
167 },
168 "blur_px": 28
169 },
170 "solid": {
171 "fill": {
172 "hex": "141a25",
173 "alpha": 1
174 },
175 "blur_px": 0
176 }
177 },
178 "light": {
179 "border": {
180 "hex": "182838",
181 "alpha": 0.11
182 },
183 "highlight": {
184 "hex": "ffffff",
185 "alpha": 0.88
186 },
187 "clear": {
188 "fill": {
189 "hex": "ffffff",
190 "alpha": 0.48
191 },
192 "blur_px": 14
193 },
194 "frosted": {
195 "fill": {
196 "hex": "ffffff",
197 "alpha": 0.72
198 },
199 "blur_px": 28
200 },
201 "solid": {
202 "fill": {
203 "hex": "ffffff",
204 "alpha": 1
205 },
206 "blur_px": 0
207 }
208 }
209 },
210 "sheet": {
211 "dark": {
212 "fill": {
213 "hex": "090c13",
214 "alpha": 0.8
215 },
216 "border": {
217 "hex": "ffffff",
218 "alpha": 0.075
219 }
220 },
221 "light": {
222 "fill": {
223 "hex": "ffffff",
224 "alpha": 0.92
225 },
226 "border": {
227 "hex": "182838",
228 "alpha": 0.09
229 }
230 }
231 },
232 "card": {
233 "dark": {
234 "fill": {
235 "hex": "ffffff",
236 "alpha": 0.04
237 },
238 "border": {
239 "hex": "ffffff",
240 "alpha": 0.095
241 }
242 },
243 "light": {
244 "fill": {
245 "hex": "ffffff",
246 "alpha": 1
247 },
248 "border": {
249 "hex": "182838",
250 "alpha": 0.1
251 }
252 }
253 },
254 "change_bar": {
255 "dark": {
256 "fill": {
257 "hex": "ffffff",
258 "alpha": 0.045
259 },
260 "border": {
261 "hex": "ffffff",
262 "alpha": 0.1
263 }
264 },
265 "light": {
266 "fill": {
267 "hex": "1b2a35",
268 "alpha": 0.035
269 },
270 "border": {
271 "hex": "1f3340",
272 "alpha": 0.11
273 }
274 }
275 },
276 "subagent_tag": {
277 "dark": {
278 "fill": {
279 "hex": "94beff",
280 "alpha": 0.09
281 },
282 "border": {
283 "hex": "94beff",
284 "alpha": 0.24
285 }
286 },
287 "light": {
288 "fill": {
289 "hex": "1b2a35",
290 "alpha": 0.055
291 },
292 "border": {
293 "hex": "1f3340",
294 "alpha": 0.14
295 }
296 }
297 },
298 "workbar": {
299 "dark": {
300 "fill": {
301 "hex": "0e131d",
302 "alpha": 0.74
303 },
304 "border": {
305 "hex": "ffffff",
306 "alpha": 0.09
307 },
308 "track": {
309 "hex": "ffffff",
310 "alpha": 0.13
311 }
312 },
313 "light": {
314 "fill": {
315 "hex": "eef3f8",
316 "alpha": 0.78
317 },
318 "border": {
319 "hex": "1f3340",
320 "alpha": 0.1
321 },
322 "track": {
323 "hex": "1b2a35",
324 "alpha": 0.11
325 }
326 }
327 },
328 "typography": {
329 "family": "Geist Sans",
330 "mono_family": "Geist Mono",
331 "fallbacks": [
332 "PingFang SC",
333 "Hiragino Sans GB",
334 "Microsoft YaHei UI",
335 "Microsoft YaHei",
336 "Noto Sans CJK SC",
337 "Noto Sans SC",
338 "Source Han Sans SC"
339 ],
340 "body_px": 14,
341 "mono_px": 13,
342 "caption_px": 11.5,
343 "prose_px": 16,
344 "heading_px": 15,
345 "title_px": 22
346 },
347 "spacing": {
348 "hairline": 2,
349 "compact": 4,
350 "tight": 6,
351 "control": 8,
352 "snug": 10,
353 "group": 12,
354 "prose": 14,
355 "section": 16,
356 "large": 24,
357 "page": 32
358 },
359 "radius": {
360 "small": 6,
361 "field": 8,
362 "control": 10,
363 "panel": 18,
364 "sheet": 18,
365 "window": 14,
366 "card": 14,
367 "composer": 24,
368 "chip": 999
369 },
370 "focus": {
371 "width": 2,
372 "offset": 3
373 },
374 "icons": {
375 "grid": 24,
376 "stroke": 1.7
377 },
378 "motion": {
379 "spring_stiffness": 420,
380 "spring_damping": 42,
381 "spring_mass": 1,
382 "pet_poll_ms": 30,
383 "reduced_poll_ms": 500,
384 "duration_state_ms": 120,
385 "duration_arrive_ms": 180,
386 "duration_exit_ms": 120,
387 "duration_panel_ms": 340,
388 "duration_linger_ms": 1200,
389 "duration_flash_in_ms": 90,
390 "arrive_rise_px": 4,
391 "loop_beat_ms": 1200,
392 "loop_breathe_ms": 2400,
393 "loop_spin_ms": 1000,
394 "loop_fps_cap": 15,
395 "sweep_active_ms": 1800,
396 "sweep_rest_ms": 600,
397 "sweep_delay_ms": 400,
398 "sweep_width_cells": 9,
399 "sweep_strength": 0.78,
400 "breathe_min_alpha": 0.18,
401 "breathe_max_alpha": 0.55,
402 "flash_earn_ms": 1000,
403 "stall_quiet_ms": 30000
404 },
405 "easing": {
406 "out": [
407 0,
408 0,
409 0.2,
410 1
411 ],
412 "in": [
413 0.4,
414 0,
415 1,
416 1
417 ],
418 "panel": [
419 0.2,
420 0.1,
421 0.16,
422 1
423 ],
424 "sine": [
425 0.37,
426 0,
427 0.63,
428 1
429 ]
430 },
431 "stream": {
432 "reveal_first_ms": 100,
433 "reveal_lag_ms": 500,
434 "rate_window_ms": 1000,
435 "instant_graphemes": 8,
436 "max_pending_bytes": 16384
437 },
438 "glow": {
439 "blur_px": 6,
440 "primary_alpha": 0.12,
441 "live_alpha": 0.35,
442 "attention_alpha": 0.4
443 },
444 "ombre": {
445 "rise": "176fd0",
446 "deep": "0b4cc4"
447 },
448 "elevation": {
449 "popover_y_px": 4,
450 "popover_blur_px": 8,
451 "popover_alpha_dark": 0.4,
452 "popover_alpha_light": 0.16,
453 "dialog_y_px": 12,
454 "dialog_blur_px": 32,
455 "dialog_alpha_dark": 0.5,
456 "dialog_alpha_light": 0.2
457 },
458 "tint": {
459 "accent_fill": 0.12,
460 "accent_border": 0.35,
461 "live_fill": 0.1,
462 "live_border": 0.42,
463 "attention_fill": 0.1,
464 "attention_border": 0.42,
465 "danger_fill": 0.1,
466 "danger_border": 0.45,
467 "count_fill": 0.08,
468 "scrim": 0.45,
469 "on_primary_border": 0.45
470 },
471 "selection_opacity": 0.28,
472 "primary_hover_opacity": 0.9,
473 "type_roles": {
474 "caption": {
475 "size_px": 11.5,
476 "line_px": 16,
477 "weight": 400
478 },
479 "label": {
480 "size_px": 12.5,
481 "line_px": 18,
482 "weight": 400
483 },
484 "control": {
485 "size_px": 13,
486 "line_px": 20,
487 "weight": 400
488 },
489 "body": {
490 "size_px": 14,
491 "line_px": 22,
492 "weight": 400
493 },
494 "reading": {
495 "size_px": 15,
496 "line_px": 25,
497 "weight": 400
498 },
499 "prose": {
500 "size_px": 16,
501 "line_px": 27,
502 "weight": 400
503 },
504 "heading": {
505 "size_px": 15,
506 "line_px": 22,
507 "weight": 550
508 },
509 "subheading": {
510 "size_px": 17,
511 "line_px": 26,
512 "weight": 550
513 },
514 "title": {
515 "size_px": 22,
516 "line_px": 28,
517 "weight": 550
518 },
519 "display": {
520 "size_px": 28,
521 "line_px": 34,
522 "weight": 550
523 },
524 "code": {
525 "size_px": 13,
526 "line_px": 20,
527 "weight": 400
528 }
529 },
530 "size": {
531 "control_px": 28,
532 "row_px": 30,
533 "session_row_px": 44,
534 "turn_line_px": 28,
535 "change_bar_px": 36,
536 "touch_target_px": 44,
537 "icon_px": 16,
538 "icon_large_px": 20,
539 "sidebar_px": 268,
540 "reading_px": 680,
541 "composer_px": 720,
542 "panel_px": 320,
543 "panel_wide_px": 560
544 },
545 "breakpoints": {
546 "compact_px": 720,
547 "medium_px": 900,
548 "wide_px": 1200
549 }
550 } as const;
551 export type Tokens = typeof tokens;
552
552 lines TYPESCRIPT