forked from CopilotKit/CopilotKit
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy paththeme.css
More file actions
102 lines (92 loc) · 3.02 KB
/
Copy paththeme.css
File metadata and controls
102 lines (92 loc) · 3.02 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
/* Scoped theme for the chat-customization-css demo.
* All selectors are prefixed with `.chat-css-demo-scope` so they do not
* leak out and affect the rest of the showcase app.
*
* Targets the CopilotKit built-in classes documented at
* https://docs.copilotkit.ai/custom-look-and-feel/customize-built-in-ui-components
*/
/* @region[css-variables] */
/* CopilotKit CSS variable overrides (accent colors, etc.) */
.chat-css-demo-scope {
--copilot-kit-primary-color: #ff006e;
--copilot-kit-contrast-color: #ffffff;
--copilot-kit-background-color: #fff8f0;
--copilot-kit-input-background-color: #fef3c7;
--copilot-kit-secondary-color: #fde047;
--copilot-kit-secondary-contrast-color: #2c1810;
--copilot-kit-separator-color: #ff006e;
--copilot-kit-muted-color: #c2185b;
}
/* @endregion[css-variables] */
/* Messages container – swap the font for the entire chat */
.chat-css-demo-scope .copilotKitMessages {
font-family: "Georgia", "Cambria", "Times New Roman", serif;
background-color: #fff8f0;
color: #2c1810;
padding: 1.5rem 0;
}
/* User message bubble – hot pink, bold white serif text, large */
.chat-css-demo-scope .copilotKitMessage.copilotKitUserMessage {
background: linear-gradient(135deg, #ff006e 0%, #c2185b 100%);
color: #ffffff;
font-family: "Georgia", "Cambria", "Times New Roman", serif;
font-size: 1.25rem;
font-weight: 700;
padding: 14px 20px;
border-radius: 22px 22px 4px 22px;
box-shadow: 0 6px 16px rgba(255, 0, 110, 0.35);
border: 2px solid #ff6fa5;
letter-spacing: 0.01em;
}
/* Assistant message bubble – amber, monospace, boxy, dark text */
.chat-css-demo-scope .copilotKitMessage.copilotKitAssistantMessage {
background: #fde047;
color: #1e1b4b;
font-family:
"JetBrains Mono", "Fira Code", "SF Mono", Menlo, Consolas, monospace;
font-size: 1rem;
padding: 16px 20px;
border-radius: 4px 22px 22px 22px;
border: 2px solid #1e1b4b;
box-shadow: 4px 4px 0 #1e1b4b;
max-width: 80%;
margin-right: auto;
margin-bottom: 1rem;
}
/* Make markdown inside assistant bubble inherit our theme */
.chat-css-demo-scope
.copilotKitMessage.copilotKitAssistantMessage
.copilotKitMarkdown,
.chat-css-demo-scope
.copilotKitMessage.copilotKitAssistantMessage
.copilotKitMarkdown
p,
.chat-css-demo-scope .copilotKitMessage.copilotKitAssistantMessage p {
color: #1e1b4b;
font-family: inherit;
font-size: inherit;
}
/* Input area – themed border and font */
.chat-css-demo-scope .copilotKitInput {
font-family: "Georgia", "Cambria", "Times New Roman", serif;
background-color: #fef3c7;
border: 3px dashed #ff006e;
border-radius: 18px;
padding: 16px 18px;
min-height: 80px;
}
.chat-css-demo-scope .copilotKitInput > textarea {
font-family: "Georgia", "Cambria", "Times New Roman", serif;
font-size: 1.1rem;
color: #2c1810;
}
.chat-css-demo-scope .copilotKitInput > textarea::placeholder {
color: #c2185b;
font-style: italic;
}
.chat-css-demo-scope .copilotKitInputContainer {
background: #fff8f0;
}
.chat-css-demo-scope .copilotKitChat {
background-color: #fff8f0;
}