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
156 lines (143 loc) · 4.74 KB
/
Copy pathglobals.css
File metadata and controls
156 lines (143 loc) · 4.74 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
@import "tailwindcss";
@import "@copilotkit/react-core/v2/styles.css";
@custom-variant dark (&:where(.dark, .dark *));
/* Map the CSS variables declared on :root below into Tailwind v4 theme tokens
* so utilities like `bg-background`, `text-foreground`, `bg-muted`,
* `border-border`, etc. actually generate CSS. Without this block the
* shadcn / AI Elements / prompt-kit primitives fall back to no styling. */
@theme inline {
--color-background: var(--background);
--color-foreground: var(--foreground);
--color-card: var(--card);
--color-card-foreground: var(--card-foreground);
--color-popover: var(--card);
--color-popover-foreground: var(--card-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-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);
--radius-sm: calc(var(--radius) - 4px);
--radius-md: calc(var(--radius) - 2px);
--radius-lg: var(--radius);
--radius-xl: calc(var(--radius) + 4px);
}
:root {
--copilot-kit-background-color: #ffff;
--copilot-kit-primary-color: #0d6e3f;
--copilot-kit-response-button-background-color: #f5f5f3;
--copilot-kit-response-button-color: #1a1a18;
--background: #ffff;
--foreground: #1a1a18;
--card: #ffffff;
--card-foreground: #1a1a18;
--primary: #1a1a18;
--primary-foreground: #ffffff;
--secondary: #ededf5;
--secondary-foreground: #1a1a18;
--muted: #ededf5;
--muted-foreground: #57575b;
--accent: #eee6fe;
--accent-foreground: #1a1a18;
--destructive: #fa5f67;
--destructive-foreground: #ffffff;
--border: #dbdbe5;
--input: #dbdbe5;
--ring: #bec2ff;
--radius: 0.75rem;
}
:root.dark,
.dark {
--background: #0a0a0a;
--foreground: #fafafa;
--card: #191a1e;
--card-foreground: #fafafa;
--primary: #fafafa;
--primary-foreground: #1a1a18;
--secondary: #242529;
--secondary-foreground: #fafafa;
--muted: #242529;
--muted-foreground: #adadb2;
--accent: #303136;
--accent-foreground: #fafafa;
--destructive: #fa5f67;
--destructive-foreground: #ffffff;
--border: #303136;
--input: #303136;
--ring: #bec2ff;
}
* {
box-sizing: border-box;
}
html {
height: 100%;
width: 100%;
overflow: hidden;
font-family:
-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
background: var(--background);
color: var(--foreground);
}
/* `body` deliberately does NOT have `width: 100%`. Letting it auto-size
* lets <CopilotSidebar /> shrink the document via `margin-inline-end` so
* the sidebar pushes the page content instead of overlapping it. */
body {
height: 100%;
overflow: hidden;
background: var(--background);
color: var(--foreground);
}
/* When a Radix overlay (Select / Dialog / Popover) opens, react-remove-scroll
* adds `body[data-scroll-locked]` with `padding-right` equal to what it
* thinks is the scrollbar width. Because our <body> uses `margin-inline-end`
* to make room for <CopilotSidebar />, the lib mis-detects the sidebar
* width as scrollbar width and injects a matching padding-right, which
* shrinks the page on every dropdown open. We have no real scrollbar
* (`overflow: hidden` above) so the compensation is unnecessary — neutralize
* it here. */
body[data-scroll-locked] {
padding-right: 0 !important;
}
.demo-card {
display: block;
padding: 1rem 1.125rem;
background: var(--card);
border: 1px solid var(--border);
border-radius: var(--radius);
text-decoration: none;
color: inherit;
transition:
transform 120ms ease,
border-color 120ms ease,
box-shadow 120ms ease,
background 120ms ease;
}
.demo-card:hover {
border-color: color-mix(in oklab, var(--ring) 70%, var(--border));
box-shadow:
0 1px 2px rgba(0, 0, 0, 0.04),
0 4px 16px rgba(0, 0, 0, 0.04);
transform: translateY(-1px);
background: var(--card);
}
.demo-card:focus-visible {
outline: 2px solid var(--ring);
outline-offset: 2px;
}
/* Slot Atlas: each marker shows its label only when the cursor is on THAT
* marker, not on a descendant. Markers nest (welcomeScreen wraps the input
* and suggestions, each of which is its own marker), so a plain
* `:hover .slot-label { opacity: 1 }` would light up every nested label as
* soon as the cursor entered the outermost marker. The `:not(:has(...))`
* predicate excludes the case where a descendant marker is also hovered. */
.slot-marker:hover:not(:has(.slot-marker:hover)) > .slot-label {
opacity: 1;
}