-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathglobals.css
More file actions
2696 lines (2468 loc) · 84.7 KB
/
Copy pathglobals.css
File metadata and controls
2696 lines (2468 loc) · 84.7 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
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
@import "tailwindcss";
@import "tw-animate-css";
@plugin "@tailwindcss/typography";
/* Smooth elevation for floating surfaces without a hard border/ring edge. */
@utility smooth-shadow-sm {
box-shadow:
0 1px 2px rgba(0, 0, 0, 0.04),
0 6px 18px rgba(0, 0, 0, 0.1);
}
@source "../../../node_modules/streamdown/dist";
.goose-terminal .xterm {
align-items: flex-start;
box-sizing: border-box;
display: flex;
flex-direction: column;
height: 100%;
/* Keep the first terminal row stable; row-fitting slack falls below the grid. */
justify-content: flex-start;
/* The scrollbar already owns the right-side gutter reserved by FitAddon. */
padding: 4px 0 2px 12px;
}
.goose-terminal .xterm-scrollable-element {
/* Stretch xterm's custom scrollbar layer to the full panel width. */
align-self: stretch;
width: 100%;
}
.goose-terminal .xterm-screen {
flex: 0 0 auto;
}
.goose-terminal .xterm,
.goose-terminal .xterm-viewport,
.goose-terminal .xterm-screen {
background-color: var(--card) !important;
}
.goose-terminal .xterm-scrollable-element > .scrollbar.vertical > .slider {
border-radius: 999px;
left: auto !important;
right: var(--scrollbar-thumb-inset) !important;
width: var(--terminal-scrollbar-thumb-size) !important;
}
/* Dark variant fires for either selector during the migration:
- [data-theme="dark"] is the Alex direction (set via JS on <html>)
- .dark is the legacy shadcn class still toggled by existing theme code
Drop the `.dark` half once the toggle migrates. */
@custom-variant dark (&:is([data-theme="dark"] *, .dark *));
/* ═══════════════════════════════════════════════════════════
Inter — self-hosted variable fonts (SIL OFL 1.1, see
src/app/assets/fonts/INTER_OFL.txt). Bundled rather than
CDN-loaded so the desktop app has no runtime font dependency
and renders identically offline. The weight axis (100–900)
covers every weight the design system uses, and the optical
size axis (opsz) automatically renders body sizes with
comfortable tracking and display sizes tighter — so no
letter-spacing compensation is needed in component code.
═══════════════════════════════════════════════════════════ */
@font-face {
font-family: "Inter";
src: url("../../app/assets/fonts/Inter[opsz,wght].ttf")
format("truetype-variations");
font-weight: 100 900;
font-style: normal;
font-display: swap;
}
@font-face {
font-family: "Inter";
src: url("../../app/assets/fonts/Inter-Italic[opsz,wght].ttf")
format("truetype-variations");
font-weight: 100 900;
font-style: italic;
font-display: swap;
}
/* Geist Mono — self-hosted variable font (SIL OFL 1.1, see
src/app/assets/fonts/GEIST_MONO_OFL.txt). Backs the --font-mono
token (code, paths, terminal output) and the digital clock face.
Geist shares Inter's grotesque skeleton, so it pairs naturally
with Inter. Upstream ships no italic. */
@font-face {
font-family: "Geist Mono";
src: url("../../app/assets/fonts/GeistMono[wght].ttf")
format("truetype-variations");
font-weight: 100 900;
font-style: normal;
font-display: swap;
}
/* Symbols-only Nerd Font fallback for terminal prompts that use icon glyphs. */
@font-face {
font-family: "NerdFontsSymbols Nerd Font";
src: url("../../app/assets/fonts/nerd-font-symbols.woff2") format("woff2");
font-weight: 400;
font-style: normal;
font-display: block;
}
/* ═══════════════════════════════════════════════════════════
PRIMITIVES — theme-invariant. These are the only literal
color values in the file. Everything else aliases through.
═══════════════════════════════════════════════════════════ */
@theme {
--color-*: initial;
--color-white: #ffffff;
--color-black: #000000;
/* monochromatic gray scale */
--color-gray-50: #f5f5f5;
--color-gray-75: #f1f1f1;
--color-gray-100: #f0f0f0;
--color-gray-200: #e8e8e8;
--color-gray-300: #e5e5e5;
--color-gray-400: #cccccc;
--color-gray-500: #999999;
--color-gray-600: #666666;
--color-gray-700: #333333;
--color-gray-800: #232323;
--color-gray-900: #1a1a1a;
/* Utility hues — pair per hue. 100 = lighter (used on dark bg),
200 = denser (used on light bg). Keeps contrast consistent across themes. */
--color-red-100: #ff6b6b;
--color-red-200: #f94b4b;
--color-blue-100: #7cacff;
--color-blue-200: #5c98f9;
--color-green-100: #a3d795;
--color-green-200: #91cb80;
--color-green-300: #73b468;
--color-yellow-100: #ffd966;
--color-yellow-200: #fbcd44;
--color-orange-100: #ffb27a;
--color-orange-200: #ff9647;
/* Indigo — chat chip identity. Same 100/200/700 pattern as other hues. */
--color-indigo-100: #8b9cff;
--color-indigo-200: #6b7cf5;
--color-indigo-700: #4338ca;
/* Skill pill palette — cycled deterministically (hash-from-name) in Skills views */
--color-pill-pink: #eec2ea;
--color-pill-olive: #cdcda1;
--color-pill-blue: #bcc6f4;
--color-pill-lavender: #d6c8f0;
--color-pill-sage: #c4d8b8;
--color-pill-mint: #b8e0d2;
--color-pill-peach: #f6cdb2;
--color-pill-neutral: #ffffff;
/* Tailwind-scale compat for ai-elements + shadcn shipped components.
Don't reach for these in app code — use semantic tokens. */
--color-red-50: #fef2f2;
--color-red-400: #f87171;
--color-red-500: #ef4444;
--color-red-600: #dc2626;
--color-red-700: #b91c1c;
--color-red-900: #7f1d1d;
--color-green-400: #4ade80;
--color-green-500: #22c55e;
--color-green-600: #16a34a;
--color-green-700: #15803d;
--color-green-900: #14532d;
--color-blue-400: #60a5fa;
--color-blue-500: #3b82f6;
--color-blue-600: #2563eb;
--color-blue-700: #1d4ed8;
--color-blue-900: #1e3a5f;
--color-yellow-400: #facc15;
--color-yellow-500: #eab308;
--color-yellow-600: #ca8a04;
--color-yellow-700: #a16207;
--color-yellow-900: #713f12;
--color-orange-400: #fb923c;
--color-orange-600: #ea580c;
--color-orange-700: #c2410c;
--color-orange-900: #7c2d12;
--color-zinc-100: #f4f4f5;
--color-zinc-400: #a1a1aa;
--color-zinc-800: #27272a;
--color-zinc-950: #09090b;
--color-amber-500: #f59e0b;
}
/* ═══════════════════════════════════════════════════════════
SEMANTIC TOKENS — light theme defaults.
Components consume these. Dark theme block below redefines.
═══════════════════════════════════════════════════════════ */
:root {
/* shadcn core tokens. Keep current Goose neutral values, but use the
standard shadcn names as the app's authoring contract. */
/* `background` is an alias of `card`: every remaining consumer (controls,
chips, shadcn primitives, line masks) means "paper", not the window
canvas — the window canvas is `canvas-base`. Aliasing keeps the pair
from drifting; dark mode diverging is exactly how black-blob controls
appeared on gray-800 cards. */
--background: var(--card);
--foreground: #242424;
--card: var(--color-white);
--card-foreground: var(--foreground);
/* Surface ladder: canvas (window backdrop) → card (opaque container) →
card-glass (translucent container floating over the canvas) → muted
(fills inside a card). card-glass derives from card so both themes keep
the same elevation relationships; the alpha is the only per-theme knob. */
--card-glass: color-mix(in srgb, var(--card) 78%, transparent);
--backdrop-panel: blur(18px) saturate(180%) brightness(1.02);
--popover: var(--color-white);
--popover-foreground: var(--foreground);
--primary: var(--color-gray-900);
--primary-foreground: var(--color-white);
--secondary: var(--color-gray-400);
--secondary-foreground: var(--foreground);
--muted: var(--color-gray-100);
--muted-foreground: var(--color-gray-600);
--accent: var(--color-gray-50);
--accent-hover: var(--color-gray-100);
--accent-foreground: var(--foreground);
--destructive: var(--color-red-600);
--destructive-foreground: var(--color-white);
--border: var(--color-gray-200);
--input: var(--color-gray-300);
--ring: var(--color-gray-400);
--text-selection-bg: color-mix(in oklab, var(--primary) 18%, transparent);
--text-selection-fg: var(--foreground);
--scrollbar-size: 12px;
--scrollbar-thumb-inset: 1px;
--scrollbar-thumb-alpha: 14%;
--scrollbar-thumb-hover-alpha: 22%;
--scrollbar-thumb: color-mix(
in oklab,
var(--foreground) var(--scrollbar-thumb-alpha),
transparent
);
--scrollbar-thumb-hover: color-mix(
in oklab,
var(--foreground) var(--scrollbar-thumb-hover-alpha),
transparent
);
--terminal-scrollbar-track-size: 14px;
--terminal-scrollbar-thumb-size: calc(
var(--scrollbar-size) -
(var(--scrollbar-thumb-inset) * 6)
);
--terminal-scrollbar-thumb-offset: calc(
(
var(--terminal-scrollbar-track-size) -
var(--terminal-scrollbar-thumb-size)
) /
2
);
/* shadcn sidebar tokens. Sidebar hover/selected rows use sidebar-accent. */
--sidebar-nav-font-weight: 400;
--sidebar-foreground: var(--foreground);
--sidebar-primary: var(--primary);
--sidebar-primary-foreground: var(--primary-foreground);
--sidebar-accent: var(--accent);
--sidebar-accent-foreground: var(--foreground);
--sidebar-border: var(--border);
--sidebar-ring: var(--ring);
--sidebar-row-hover: color-mix(
in srgb,
var(--sidebar-foreground) 2%,
transparent
);
--sidebar-row-active: color-mix(
in srgb,
var(--sidebar-foreground) 3%,
transparent
);
--sidebar-section-action-bg: var(--muted);
--sidebar-section-action-fg: var(--foreground);
--sidebar-section-action-bg-hover: var(--foreground);
--sidebar-section-action-fg-hover: var(--background);
/* Goose canvas + composer extensions. */
--canvas-base: #f5f5f5;
--surface-composer: rgba(255, 255, 255, 0.2);
--surface-composer-hover: rgba(255, 255, 255, 0.45);
/* Floating chat composer — muted gray tint; keep translucent for backdrop blur. */
--surface-chat-composer: color-mix(in srgb, var(--muted) 72%, transparent);
--chat-search-match-bg: color-mix(
in oklab,
var(--color-yellow-600) 35%,
transparent
);
--chat-search-match-fg: var(--foreground);
--chat-search-match-active-bg: var(--primary);
--chat-search-match-active-fg: var(--primary-foreground);
--surface-chat-composer-hover: color-mix(
in srgb,
var(--muted) 80%,
transparent
);
--surface-composer-action: var(--color-gray-300);
--surface-composer-action-hover: var(--color-gray-400);
--surface-composer-action-active: var(--color-gray-400);
--surface-chat-responding-pill-bg: var(--foreground);
--surface-chat-responding-pill-fg: var(--background);
--surface-editor-panel-neutral: color-mix(
in srgb,
var(--color-gray-300) 52%,
var(--color-gray-400)
);
/* Matches the pre-retokenized agent sheet glass recipe: #d9d9d9 at 40%. */
--surface-editor-panel: color-mix(
in oklab,
var(--surface-editor-panel-neutral) 40%,
transparent
);
--surface-editor-control: var(--color-white);
--surface-editor-control-hover: rgba(255, 255, 255, 0.5);
--surface-editor-badge: rgba(255, 255, 255, 0.7);
--surface-color-picker-swatches: rgba(255, 255, 255, 0.95);
/* Create/edit project panel glass surface: --project-panel-tint is the
share of the selected project color mixed into the theme background to
form the panel hue; --project-panel-alpha is the opacity of that hue over
the blurred content behind the sheet. Dark mode uses a stronger tint and
higher opacity because pastel hues get lost over a near-black backdrop. */
--project-panel-tint: 35%;
--project-panel-alpha: 74%;
--text-editor-field-placeholder: color-mix(
in oklab,
var(--foreground) 30%,
transparent
);
--border-editor-divider: color-mix(
in oklab,
var(--foreground) 10%,
transparent
);
--color-picker-hue-gradient: linear-gradient(
90deg,
#eeb4b4,
#eeeeae,
#b4eed0,
#b4d0ee,
#d0b4ee,
#eeb4d2,
#eeb4b4
);
--surface-agent-profile-fg: #242424;
--surface-agent-profile-fg-80: rgba(36, 36, 36, 0.8);
--surface-agent-profile-fg-muted: rgba(36, 36, 36, 0.45);
--surface-agent-profile-fg-subtle: rgba(36, 36, 36, 0.4);
--surface-agent-profile-fg-faint: rgba(36, 36, 36, 0.35);
--surface-agent-profile-fg-placeholder: rgba(36, 36, 36, 0.3);
--surface-agent-profile-border: rgba(36, 36, 36, 0.1);
--surface-agent-profile-dot: rgba(36, 36, 36, 0.16);
--surface-agent-profile-control-bg: var(--card);
--surface-agent-profile-control-bg-hover: rgba(255, 255, 255, 0.9);
--surface-agent-profile-action-fg: rgba(245, 245, 245, 0.96);
--surface-agent-profile-action-bg-hover: rgba(36, 36, 36, 0.9);
--agent-share-card-ink: #43005c;
--surface-glass-subtle: rgba(255, 255, 255, 0.1);
--backdrop-glass-subtle: blur(6px) saturate(120%) brightness(1.01);
--surface-glass-strong: rgba(255, 255, 255, 0.72);
--surface-glass-strong-hover: rgba(255, 255, 255, 0.88);
--surface-glass-strong-fg: #242424;
/* Theme-adaptive glass for floating popovers/modals — mirrors the sidebar
glass (light here, dark in the .dark block) so dialogs follow the theme
and inherit the correct foreground, unlike the always-light tile glass. */
--surface-popover-glass: rgba(255, 255, 255, 0.2);
/* Overlay + dialog glass recipe: depth comes from two levels of defocus,
not darkness. In light mode the scrim tints WHITE — the page behind
brightens like a macOS sheet backdrop instead of graying out — while
dark mode dims. The overlay blur keeps the page recognizable ("paused,
still there"); the dialog pane blurs much harder with a thin tint so
content ghosts through it. Blur radii stay modest for WKWebView
performance (see --backdrop-composer-glass). */
--overlay-scrim: rgba(255, 255, 255, 0.12);
--overlay-search-scrim: rgba(0, 0, 0, 0.15);
--backdrop-overlay-glass: blur(8px) saturate(130%) brightness(1.03);
/* Avatar collection takeover: heavier than the dialog scrim in both tint
and blur — the avatars are the show, and app chrome ghosting through
made the field muddy (Alex). Still deliberately semi-transparent: the
strong blur reduces the page to soft color fields while the see-through
tint keeps the "temporary surface over the app" modal feel (Tulsi). */
--overlay-avatar-field: rgba(252, 252, 251, 0.58);
--backdrop-avatar-field: blur(36px) saturate(120%) brightness(1.02);
/* Onboarding tour scrim: heavier than the dialog scrim so the app reads
as a distant backdrop while the tour speaks. Pinned to literals: the
old bg-background/40 source became paper paint (the card alias), and a
modal scrim must keep tinting white in light / dimming in dark. */
--overlay-onboarding-scrim: rgba(255, 255, 255, 0.4);
--backdrop-popover-glass: blur(24px) saturate(150%);
--overlay-global-composer-shim: rgba(255, 255, 255, 0.28);
--overlay-global-composer-shim-peak: rgba(255, 255, 255, 0.96);
--overlay-global-composer-shim-clear: rgba(255, 255, 255, 0);
--surface-agent-tile-action-bg: var(--surface-glass-strong);
--surface-agent-tile-action-fg: var(--surface-glass-strong-fg);
--surface-agent-tile-action-bg-hover: var(--foreground);
--surface-agent-tile-action-fg-hover: var(--background);
--message-user-bg: var(--color-gray-75);
/* Default project cube fold lines on filled color swatches (sidebar, picker). */
--project-glyph-fold-stroke: rgba(255, 255, 255, 0.92);
/* Global hover composer pill — translucent glass over the canvas/dot-grid.
Separate from --surface-composer (which is the chat-area composer fill).
Deprecated: PR #6 migrates the GlobalComposerPill consumer to
--backdrop-composer-glass below; keep these for now so the consumer keeps
compiling. */
--surface-composer-glass: rgba(255, 255, 255, 0.15);
--ring-composer-glass-inner: rgba(255, 255, 255, 0.6);
--outline-composer-glass-outer: rgba(0, 0, 0, 0.05);
/* Shared filter recipe for the composer glass surfaces (ChatView floating
straddle + Global Hover Composer Pill). Consumed via inline style as
`var(--backdrop-composer-glass)`. Modest blur radius per the WKWebView
report (docs/wkwebview-backdrop-filter-report.md): WKWebView visually
plateaus above ~16–20px; lean on tint opacity for legibility rather than
chasing larger radii. */
--backdrop-composer-glass: blur(18px) saturate(180%) brightness(1.04);
/* Project-tint hook for the dot-grid composer below. Components in a
project context set this on a wrapper to tint canvas + dot color
together via color-mix. Unset/transparent = base canvas, no change. */
--project-tint: transparent;
/* Composer chip tones — file/chat/project/agent/skill/automation identity
colors. Each tone gets a bg + fg pair. Light values; dark block redefines. */
--chip-file-bg: var(--color-gray-200);
--chip-file-fg: var(--color-gray-700);
--chip-chat-bg: color-mix(in oklab, var(--color-indigo-200) 18%, transparent);
--chip-chat-fg: var(--color-indigo-700);
--chip-project-bg: color-mix(
in oklab,
var(--color-orange-200) 20%,
transparent
);
--chip-project-fg: var(--color-orange-700);
--chip-agent-bg: color-mix(in oklab, var(--color-blue-200) 18%, transparent);
--chip-agent-fg: var(--color-blue-700);
--chip-skill-bg: color-mix(
in oklab,
var(--color-yellow-200) 22%,
transparent
);
--chip-skill-fg: var(--color-yellow-700);
--chip-automation-bg: color-mix(
in oklab,
var(--color-green-200) 18%,
transparent
);
--chip-automation-fg: var(--color-green-700);
/* Skill name pills sit on theme-invariant pastel pill colors, so their
foreground is independent from the app-level foreground token. */
--skill-pill-fg: var(--color-gray-900);
/* Denser placeholder for the translucent composer (default placeholder
reads too light over surface-composer). Used on the chat input. */
--text-placeholder-composer: color-mix(
in oklab,
var(--color-black) 35%,
transparent
);
/* Goose status extensions. Use text-success and bg-success/10, matching
shadcn's destructive pattern without adding broad background-* aliases. */
--success: var(--color-green-600);
--success-foreground: var(--color-white);
--warning: var(--color-yellow-600);
--warning-foreground: var(--foreground);
--info: var(--color-blue-600);
--info-foreground: var(--color-white);
/* Widget: clock face. Light mode = warm-near-black surface with white marks.
Dark mode inverts both via the .dark override below so the clock doesn't
disappear into the canvas. Second hand stays red in both modes. */
--clock-face: #1c1c1c;
--clock-mark: var(--color-white);
--clock-minute-hand: #b3b3b3;
--clock-hand: var(--color-red-500);
--sticky-note-warm: color-mix(
in srgb,
var(--color-yellow-100) 56%,
var(--color-white)
);
--sticky-note-cool: color-mix(
in srgb,
var(--color-green-100) 52%,
var(--color-white)
);
--sticky-note-rose: color-mix(
in srgb,
var(--color-pill-pink) 56%,
var(--color-white)
);
--sticky-note-blue: color-mix(
in srgb,
var(--color-blue-100) 40%,
var(--color-white)
);
--sticky-note-lavender: color-mix(
in srgb,
var(--color-pill-lavender) 52%,
var(--color-white)
);
--sticky-note-peach: color-mix(
in srgb,
var(--color-pill-peach) 56%,
var(--color-white)
);
--sticky-note-foreground: var(--foreground);
--sticky-note-muted: color-mix(in srgb, var(--foreground) 68%, transparent);
--sticky-note-shadow: none;
/* Alpha utility (text-on-canvas overlays) */
--dark-04: rgba(26, 26, 26, 0.04);
--dark-10: rgba(26, 26, 26, 0.1);
--dark-40: rgba(26, 26, 26, 0.4);
/* Dot-grid (canvas signature treatment) */
--dot-color-base: #cbcbcb;
--dot-size: 1px;
--dot-spacing: 24px;
/* Shadows — 4-tier hierarchy. Dark block doubles intensity. */
--shadow-mini: 0 2px 8px rgba(76, 76, 76, 0.15);
--shadow-mini-inset: 0 1px 4px rgba(76, 76, 76, 0.1) inset;
--shadow-btn: 0 2px 8px rgba(76, 76, 76, 0.15);
--shadow-card: 0 2px 8px rgba(76, 76, 76, 0.15);
--shadow-elevated: 0 3px 12px rgba(76, 76, 76, 0.22);
/* Floating chat composer — the light-mode dual of the dark-mode specular rim.
The card is pure white, so a bright highlight can't show (nothing beats
#fff). Same light-from-above, opposite visible half: the shadowed underside
reads as a soft directional dark rim on the bottom edge (inset), which feels
like a lit edge rather than a stamped border. A whisper-faint uniform ring
contains the other edges without the harshness of a crisp full stroke. Then
the graduated drop cocktail (rising blur, falling opacity). Neutral
gray-on-light per the project shadow convention (never raw black). */
--shadow-chat:
inset 0 -1px 0 rgba(76, 76, 76, 0.05), 0 0 0 1px rgba(76, 76, 76, 0.03),
0 1px 2px rgba(76, 76, 76, 0.04), 0 3px 6px rgba(76, 76, 76, 0.05),
0 8px 16px rgba(76, 76, 76, 0.06), 0 16px 28px rgba(76, 76, 76, 0.05);
--shadow-popover:
0 1px 1px rgba(0, 0, 0, 0.03), 0 6px 18px rgba(0, 0, 0, 0.06),
0 16px 32px rgba(0, 0, 0, 0.03);
--shadow-popover-inverse: 22px 25px 24px rgba(0, 0, 0, 0.09);
--shadow-popover-raised: 22px 25px 24px rgba(0, 0, 0, 0.09);
--shadow-modal: 0 20px 60px rgba(0, 0, 0, 0.2);
/* Floating panel hover (sidebar). */
--shadow-sidebar-panel-elevated: 30px 42px 60px rgba(0, 0, 0, 0.05);
/* Composer pill hover — same soft sideways cast as the sidebar panel, lifted
closer to the pill so it remains visible at the bottom edge. */
--shadow-global-composer-pill-hover: 30px 24px 52px rgba(0, 0, 0, 0.07);
--shadow-kbd: 0 2px 8px rgba(76, 76, 76, 0.15);
--shadow-date-field-focus: 0 0 0 3px rgba(26, 26, 26, 0.15);
--shadow-agent-profile-avatar: 0 18px 28px rgba(36, 36, 36, 0.1);
--shadow-agent-profile-affordance: 0 1px 2px rgba(36, 36, 36, 0.18);
--shadow-agent-profile-input-hover: 0 1px 1px rgba(0, 0, 0, 0.18);
--shadow-agent-profile-input-focus: 0 1px 1px rgba(0, 0, 0, 0.24);
--shadow-editor-field-hover: 0 1px 1px rgba(0, 0, 0, 0.18);
--shadow-editor-field-focus: 0 1px 1px rgba(0, 0, 0, 0.24);
--shadow-editor-footer: 0 -12px 24px rgba(36, 36, 36, 0.06);
--shadow-color-picker-swatches: 0 10px 26px rgba(15, 23, 42, 0.12);
/* Goose inverse popover — contrast-inverted chip (tooltips, floating
pills). Reuses gray-900 / white so the chain stays inside the palette. */
--popover-inverse: var(--color-gray-900);
--popover-inverse-foreground: var(--color-white);
--popover-inverse-muted-foreground: rgba(255, 255, 255, 0.4);
--popover-inverse-focus: rgba(255, 255, 255, 0.1);
/* Raised popover — overflow menus (sidebar rows, session actions, card
tiles). Dark in both themes so menus read as dark surfaces across the
app (BOT-1600); matches the inverse chip on light backgrounds. */
--popover-raised: var(--color-gray-900);
--popover-raised-foreground: var(--color-white);
--popover-raised-muted-foreground: rgba(255, 255, 255, 0.4);
--popover-raised-focus: rgba(255, 255, 255, 0.1);
/* Charts */
--chart-1: #f6b44a;
--chart-2: #7585ff;
--chart-3: #d76a6a;
--chart-4: #d185e0;
--chart-5: #91cb80;
/* Status overlays (diff views etc.) */
--status-added: var(--color-green-600);
--status-deleted: var(--color-red-600);
--status-modified: var(--color-yellow-600);
/* Chat layout */
--chat-transcript-max-width: 768px;
--chat-transcript-inline-padding: 46px;
--chat-transcript-container-max-width: calc(
var(--chat-transcript-max-width) +
(var(--chat-transcript-inline-padding) * 2)
);
--chat-user-message-max-width: 640px;
--chat-composer-max-width: 768px;
/* The composer wrapper owns the bottom inset. */
--chat-surface-bottom-gap: 0px;
/* App top bar chrome — deep charcoal controls beside the breadcrumb trail. */
--app-top-bar-control-fg: #242424;
--app-top-bar-control-fg-disabled: rgba(36, 36, 36, 0.35);
--app-top-bar-control-hover-opacity: 0.7;
/* Motion */
--ease-spring: cubic-bezier(0.33, 1, 0.68, 1);
--duration-fast: 0.15s;
--duration-normal: 0.2s;
--duration-slow: 0.4s;
}
/* ═══════════════════════════════════════════════════════════
DARK THEME — semantic tokens redefined.
Co-located so a missing pair is physically visible above.
Selector supports both during the toggle migration.
═══════════════════════════════════════════════════════════ */
[data-theme="dark"],
.dark {
/* Alias of `card`, same as light (see :root). This is what fixes dark
"black blob" controls: outline buttons, file chips, kbd, and every other
paper-intent `bg-background` consumer now tracks the card surface. */
--background: var(--card);
--foreground: var(--color-white);
--card: var(--color-gray-800);
--card-foreground: var(--foreground);
--card-glass: color-mix(in srgb, var(--card) 82%, transparent);
--backdrop-panel: blur(18px) saturate(160%) brightness(1.08);
/* Overflow menus and other floating popovers sit one step darker than
cards so they read as distinct surfaces against dark content (BOT-1600). */
--popover: var(--color-gray-900);
--popover-foreground: var(--foreground);
--primary: var(--color-white);
--primary-foreground: var(--color-black);
--secondary: var(--color-gray-700);
--secondary-foreground: var(--foreground);
/* Keep quiet and interactive fills one step lighter than card/popover so
selected tabs, hover rows, and active picker items do not disappear in dark
surfaces. */
--muted: var(--color-gray-700);
--muted-foreground: var(--color-gray-500);
--accent: var(--color-gray-700);
--accent-hover: var(--color-gray-600);
--accent-foreground: var(--foreground);
--destructive: var(--color-red-400);
--destructive-foreground: var(--color-black);
--border: var(--color-gray-700);
--input: var(--color-gray-700);
--ring: var(--color-gray-400);
--text-selection-bg: color-mix(in oklab, var(--primary) 30%, transparent);
--text-selection-fg: var(--foreground);
--scrollbar-thumb-alpha: 16%;
--scrollbar-thumb-hover-alpha: 26%;
--scrollbar-thumb: color-mix(
in oklab,
var(--foreground) var(--scrollbar-thumb-alpha),
transparent
);
--scrollbar-thumb-hover: color-mix(
in oklab,
var(--foreground) var(--scrollbar-thumb-hover-alpha),
transparent
);
--sidebar-nav-font-weight: 400;
--sidebar-foreground: var(--foreground);
--sidebar-primary: var(--primary);
--sidebar-primary-foreground: var(--primary-foreground);
--sidebar-accent: var(--accent);
--sidebar-accent-foreground: var(--foreground);
--sidebar-border: var(--border);
--sidebar-ring: var(--ring);
--sidebar-row-hover: color-mix(
in srgb,
var(--sidebar-foreground) 5%,
transparent
);
--sidebar-row-active: color-mix(
in srgb,
var(--sidebar-foreground) 7%,
transparent
);
--sidebar-section-action-bg: var(--muted);
--sidebar-section-action-fg: var(--foreground);
--sidebar-section-action-bg-hover: var(--foreground);
--sidebar-section-action-fg-hover: var(--background);
--app-top-bar-control-fg: var(--foreground);
--app-top-bar-control-fg-disabled: color-mix(
in srgb,
var(--app-top-bar-control-fg) 35%,
transparent
);
/* Goose canvas + composer extensions — inverted. */
--canvas-base: var(--color-gray-900);
--surface-composer: rgba(255, 255, 255, 0.06);
--surface-composer-hover: rgba(255, 255, 255, 0.14);
--surface-chat-composer: var(--color-gray-700);
--chat-search-match-bg: color-mix(
in oklab,
var(--color-yellow-500) 35%,
transparent
);
--chat-search-match-fg: var(--foreground);
--chat-search-match-active-bg: var(--primary);
--chat-search-match-active-fg: var(--primary-foreground);
--surface-chat-composer-hover: var(--color-gray-600);
--surface-composer-action: var(--color-gray-600);
--surface-composer-action-hover: var(--color-gray-500);
--surface-composer-action-active: var(--color-gray-500);
/* Intentionally black chrome, not paper — pinned so it doesn't follow the
`background` → `card` alias. */
--surface-chat-responding-pill-bg: var(--color-black);
--surface-chat-responding-pill-fg: var(--foreground);
--surface-editor-panel-neutral: var(--color-gray-800);
--surface-editor-panel: color-mix(
in oklab,
var(--surface-editor-panel-neutral) 40%,
transparent
);
--surface-editor-control: var(--color-gray-800);
--surface-editor-control-hover: rgba(255, 255, 255, 0.08);
--surface-editor-badge: rgba(0, 0, 0, 0.35);
--surface-color-picker-swatches: rgba(35, 35, 35, 0.95);
--project-panel-tint: 47%;
--project-panel-alpha: 90%;
--text-editor-field-placeholder: color-mix(
in oklab,
var(--foreground) 32%,
transparent
);
--border-editor-divider: color-mix(
in oklab,
var(--foreground) 12%,
transparent
);
--surface-agent-profile-fg: var(--color-gray-50);
--surface-agent-profile-fg-80: color-mix(
in srgb,
var(--surface-agent-profile-fg) 80%,
transparent
);
--surface-agent-profile-fg-muted: color-mix(
in srgb,
var(--surface-agent-profile-fg) 48%,
transparent
);
--surface-agent-profile-fg-subtle: color-mix(
in srgb,
var(--surface-agent-profile-fg) 42%,
transparent
);
--surface-agent-profile-fg-faint: color-mix(
in srgb,
var(--surface-agent-profile-fg) 34%,
transparent
);
--surface-agent-profile-fg-placeholder: color-mix(
in srgb,
var(--surface-agent-profile-fg) 32%,
transparent
);
--surface-agent-profile-border: color-mix(
in srgb,
var(--surface-agent-profile-fg) 12%,
transparent
);
--surface-agent-profile-dot: color-mix(
in srgb,
var(--surface-agent-profile-fg) 14%,
transparent
);
/* Pinned to the value the retired dark nav-shell token had; #1165 chose
this fill for profile controls. */
--surface-agent-profile-control-bg: rgba(0, 0, 0, 0.5);
--surface-agent-profile-control-bg-hover: var(--color-gray-900);
--surface-agent-profile-action-fg: var(--color-gray-900);
--surface-agent-profile-action-bg-hover: var(--color-gray-300);
--surface-glass-subtle: rgba(255, 255, 255, 0.04);
--backdrop-glass-subtle: blur(6px) saturate(120%) brightness(1.01);
--surface-glass-strong: rgba(255, 255, 255, 0.72);
--surface-glass-strong-hover: rgba(255, 255, 255, 0.88);
--surface-glass-strong-fg: var(--color-gray-900);
--surface-popover-glass: rgba(20, 20, 20, 0.35);
--overlay-scrim: rgba(0, 0, 0, 0.25);
--overlay-search-scrim: rgba(0, 0, 0, 0.15);
--backdrop-overlay-glass: blur(8px) saturate(130%);
--overlay-avatar-field: rgba(16, 16, 16, 0.58);
--backdrop-avatar-field: blur(36px) saturate(120%);
--overlay-onboarding-scrim: rgba(0, 0, 0, 0.4);
--backdrop-popover-glass: blur(24px) saturate(150%);
--overlay-global-composer-shim: rgba(255, 255, 255, 0.18);
--overlay-global-composer-shim-peak: rgba(255, 255, 255, 0.72);
--overlay-global-composer-shim-clear: rgba(255, 255, 255, 0);
/* Intentionally black chrome over tile artwork — pinned like the
responding pill above. Hover inverts to a white fill, so the hover
label pins black too instead of following the background alias. */
--surface-agent-tile-action-bg: var(--color-black);
--surface-agent-tile-action-fg: var(--foreground);
--surface-agent-tile-action-bg-hover: var(--foreground);
--surface-agent-tile-action-fg-hover: var(--color-black);
--message-user-bg: var(--color-gray-700);
--project-glyph-fold-stroke: rgba(0, 0, 0, 0.85);
/* Global hover composer pill — dark variants. Inner ring softens; outer
outline flips to white-alpha so it doesn't disappear over dark canvas. */
--surface-composer-glass: rgba(255, 255, 255, 0.06);
--ring-composer-glass-inner: rgba(255, 255, 255, 0.18);
--outline-composer-glass-outer: rgba(255, 255, 255, 0.05);
/* Composer chip tones — dark variants */
--chip-file-bg: var(--color-gray-700);
--chip-file-fg: var(--color-gray-200);
--chip-chat-bg: color-mix(in oklab, var(--color-indigo-100) 10%, transparent);
--chip-chat-fg: var(--color-indigo-100);
--chip-project-bg: color-mix(
in oklab,
var(--color-orange-100) 10%,
transparent
);
--chip-project-fg: var(--color-orange-100);
--chip-agent-bg: color-mix(in oklab, var(--color-blue-100) 10%, transparent);
--chip-agent-fg: var(--color-blue-100);
--chip-skill-bg: color-mix(
in oklab,
var(--color-yellow-100) 10%,
transparent
);
--chip-skill-fg: var(--color-yellow-100);
--chip-automation-bg: color-mix(
in oklab,
var(--color-green-100) 10%,
transparent
);
--chip-automation-fg: var(--color-green-100);
--skill-pill-fg: var(--color-gray-900);
--text-placeholder-composer: var(--color-gray-400);
--success: var(--color-green-400);
--success-foreground: var(--color-black);
--warning: var(--color-yellow-500);
--warning-foreground: var(--color-black);
--info: var(--color-blue-400);
--info-foreground: var(--color-black);
--dark-04: rgba(242, 242, 242, 0.04);
--dark-10: rgba(242, 242, 242, 0.1);
--dark-40: rgba(242, 242, 242, 0.4);
/* Clock — invert face + marks against the dark canvas. Mirror of the light
token: face is slightly warmer than gray-100, marks match the light-mode
face value so the contrast direction flips cleanly. Second hand stays red. */
--clock-face: #f5f5f5;
--clock-mark: #1c1c1c;
--clock-minute-hand: #a3a3a3;
--sticky-note-warm: color-mix(
in srgb,
var(--color-yellow-100) 24%,
var(--color-gray-800)
);
--sticky-note-cool: color-mix(
in srgb,
var(--color-green-100) 22%,
var(--color-gray-800)
);
--sticky-note-rose: color-mix(
in srgb,
var(--color-pill-pink) 26%,
var(--color-gray-800)
);
--sticky-note-blue: color-mix(
in srgb,
var(--color-blue-100) 20%,
var(--color-gray-800)
);
--sticky-note-lavender: color-mix(
in srgb,
var(--color-pill-lavender) 24%,
var(--color-gray-800)
);
--sticky-note-peach: color-mix(
in srgb,
var(--color-pill-peach) 24%,
var(--color-gray-800)
);
--sticky-note-foreground: var(--foreground);
--sticky-note-muted: color-mix(in srgb, var(--foreground) 64%, transparent);
--sticky-note-shadow: none;
--dot-color-base: rgba(255, 255, 255, 0.12);
/* Shadows — doubled intensity over dark surfaces */
--shadow-mini: 0 2px 8px rgba(0, 0, 0, 0.4);
--shadow-mini-inset: 0 1px 4px rgba(0, 0, 0, 0.5) inset;
--shadow-btn: 0 2px 8px rgba(0, 0, 0, 0.3);
--shadow-card: 0 2px 8px rgba(0, 0, 0, 0.4);
--shadow-elevated: 0 3px 12px rgba(0, 0, 0, 0.5);
/* Floating chat composer — the island sits on a same-colored (gray-800) panel,
so a darker drop shadow would vanish dark-on-dark. Definition comes from
light instead: a directional specular rim (inset top highlight that catches
light from above and fades around the rounded corners, à la Apple's Liquid
Glass) plus a faint uniform ring for the sides + bottom. Two soft dark layers
darken the panel right under the island to ground it. The ring is the
"border", drawn via shadow so it never affects layout or gets clipped. */
--shadow-chat:
inset 0 1px 0 rgba(255, 255, 255, 0.14),
0 0 0 1px rgba(255, 255, 255, 0.07), 0 2px 6px rgba(0, 0, 0, 0.32),
0 10px 28px rgba(0, 0, 0, 0.24);
--shadow-popover:
0 1px 0 rgba(255, 255, 255, 0.05) inset, 0 8px 22px rgba(0, 0, 0, 0.36),
0 2px 6px rgba(0, 0, 0, 0.24);
--shadow-popover-inverse: 22px 25px 24px rgba(0, 0, 0, 0.45);
--shadow-popover-raised: 22px 25px 24px rgba(0, 0, 0, 0.45);
--shadow-modal: 0 20px 60px rgba(0, 0, 0, 0.6);
--shadow-sidebar-panel-elevated: 30px 42px 60px rgba(0, 0, 0, 0.15);
--shadow-global-composer-pill-hover: 30px 24px 52px rgba(0, 0, 0, 0.2);
--shadow-kbd: 0 2px 8px rgba(0, 0, 0, 0.4);
--shadow-date-field-focus: 0 0 0 3px rgba(244, 244, 245, 0.1);
--shadow-agent-profile-avatar: 0 18px 32px rgba(0, 0, 0, 0.42);
--shadow-agent-profile-affordance: 0 10px 24px rgba(0, 0, 0, 0.4);
--shadow-agent-profile-input-hover: 0 0 0 1px rgba(255, 255, 255, 0.1);
--shadow-agent-profile-input-focus: 0 0 0 1px rgba(255, 255, 255, 0.18);
--shadow-editor-field-hover: 0 0 0 1px rgba(255, 255, 255, 0.1);
--shadow-editor-field-focus: 0 0 0 1px rgba(255, 255, 255, 0.18);
--shadow-editor-footer: 0 -12px 24px rgba(0, 0, 0, 0.24);
--shadow-color-picker-swatches: 0 10px 26px rgba(0, 0, 0, 0.36);
/* Inverse popover — contrast-inverted chip (tooltips, floating pills):
light on dark theme. */
--popover-inverse: var(--color-gray-50);
--popover-inverse-foreground: var(--color-gray-900);
--popover-inverse-muted-foreground: rgba(26, 26, 26, 0.4);
--popover-inverse-focus: rgba(26, 26, 26, 0.1);
/* Raised popover — overflow menus stay dark in dark theme (BOT-1600),
one step lighter than the gray-900 default popover base so the two
menu tiers still separate. */
--popover-raised: var(--color-gray-800);
--popover-raised-foreground: var(--color-white);
--popover-raised-muted-foreground: rgba(255, 255, 255, 0.4);
--popover-raised-focus: rgba(255, 255, 255, 0.1);
--status-added: var(--color-green-400);
--status-deleted: var(--color-red-400);
--status-modified: var(--color-yellow-500);
}
/* ═══════════════════════════════════════════════════════════
TAILWIND UTILITY BRIDGE — exposes runtime custom-props as
Tailwind class generators (e.g. `bg-canvas-base`, `text-muted-foreground`).
═══════════════════════════════════════════════════════════ */
@theme inline {
/* shadcn-standard mappings */
--color-background: var(--background);
--color-foreground: var(--foreground);
--color-card: var(--card);
--color-card-foreground: var(--card-foreground);
--color-card-glass: var(--card-glass);
--color-popover: var(--popover);
--color-popover-foreground: var(--popover-foreground);
--color-primary: var(--primary);
--color-primary-foreground: var(--primary-foreground);
--color-secondary: var(--secondary);
--color-secondary-foreground: var(--secondary-foreground);
--color-muted: var(--muted);
--color-muted-foreground: var(--muted-foreground);
--color-accent: var(--accent);
--color-accent-hover: var(--accent-hover);
--color-accent-foreground: var(--accent-foreground);
--color-destructive: var(--destructive);
--color-destructive-foreground: var(--destructive-foreground);
--color-border: var(--border);
--color-input: var(--input);
--color-ring: var(--ring);