forked from CopilotKit/CopilotKit
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathglobals.css
More file actions
87 lines (71 loc) · 2.48 KB
/
Copy pathglobals.css
File metadata and controls
87 lines (71 loc) · 2.48 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
@import "tailwindcss";
:root {
--background: #ffffff;
--foreground: #171717;
}
@media (prefers-color-scheme: dark) {
:root {
--background: #0a0a0a;
--foreground: #ededed;
}
}
body {
background: var(--background);
color: var(--foreground);
font-family: Arial, Helvetica, sans-serif;
}
body,
html {
height: 100%;
}
/*
* Threads panel theme — matched to adk's CopilotKit chat (CopilotSidebar /
* CopilotChat v2). That chat renders in the framework's default LIGHT look:
* white surfaces, soft gray-200 borders, gray-500/600 muted text, a system
* sans typeface, and a ~1rem rounded panel with smaller radii on controls.
*
* The threads panel is FORCED LIGHT on this `.threads-theme` wrapper so it
* reads as part of the same kit as the chat even when the OS is in dark mode
* (adk's chat is always light). These tokens drive the themeable drawer base
* + ui/card + ui/button (see threads-drawer/THEME.md) — never edit the drawer
* files; theme them here.
*/
.threads-theme {
color-scheme: light;
/* Surfaces — white chat-panel surface on a faint gray rail */
--background: #ffffff;
--foreground: #171717;
--card: #ffffff;
--card-foreground: #171717;
/* Borders / dividers — Tailwind gray-200, the chat's hairline color */
--border: #e5e7eb;
--input: #e5e7eb;
/* Primary action (New thread / dialog confirm) — neutral ink, like the
chat's send affordance, so the panel doesn't fight the page theme color */
--primary: #171717;
--primary-foreground: #ffffff;
/* Hover / track / skeleton — Tailwind gray-100 */
--secondary: #f3f4f6;
--secondary-foreground: #171717;
--muted: #f3f4f6;
/* Muted text — Tailwind gray-500 */
--muted-foreground: #6b7280;
/* Selected thread row — faint gray-50 wash */
--accent: #f9fafb;
--accent-foreground: #171717;
/* Focus ring — soft neutral, matching the chat's understated focus */
--ring: #9ca3af;
/* Destructive (delete) */
--destructive: #ef4444;
--destructive-foreground: #ffffff;
/* Radius — chat panel uses 1rem; controls inside the drawer derive smaller
radii from this token */
--radius: 0.75rem;
/* Typography — match the chat's system sans stack */
--font-body:
ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica,
Arial, sans-serif;
/* Drawer-specific visuals: keep the surface flat to match the chat's quiet
panel rather than the north-star's pronounced drop shadow */
--threads-drawer-shadow: 1px 0 0 var(--border);
}