Skip to content

Commit f816348

Browse files
committed
Improve colors
1 parent db3d4a1 commit f816348

File tree

2 files changed

+56
-8
lines changed

2 files changed

+56
-8
lines changed

llms_wrapper/llms_wrapper_webchat.py

Lines changed: 38 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -104,13 +104,45 @@ def get_args():
104104
Script(src="https://cdn.jsdelivr.net/npm/marked/marked.min.js"),
105105
# add a style for the success bubble which is too light, make it a darker green
106106
Style("""
107-
.chat-bubble-secondary {
108-
background-color: #0A6C0A; /* or #228B22 */
109-
color: white; /* Text color for readability */
107+
.chat-bubble {
108+
--pico-color: white !important;
109+
--pico-background-color: transparent !important;
110+
color: var(--chat-text-color, white) !important;
111+
--pico-h1-color: white !important;
112+
--pico-h2-color: white !important;
113+
--pico-h3-color: white !important;
114+
--pico-h4-color: white !important;
115+
--pico-h5-color: white !important;
116+
--pico-h6-color: white !important;
117+
--pico-muted-color: white !important;
118+
--pico-primary-color: white !important;
119+
--pico-secondary-color: white !important;
120+
--pico-contrast-color: white !important;
121+
--pico-marked-color: white !important;
122+
--pico-ins-color: white !important;
123+
--pico-del-color: white !important;
124+
--pico-blockquote-footer-color: white !important;
125+
--pico-blockquote-border-color: rgba(255,255,255,0.3) !important;
126+
--pico-table-border-color: rgba(255,255,255,0.2) !important;
127+
--pico-code-color: white !important;
128+
--pico-pre-color: white !important;
129+
--pico-kbd-color: white !important;
130+
--pico-mark-color: white !important;
110131
}
111-
.chat-bubble-other {
112-
background-color: blue; /* or #228B22 */
113-
color: black; /* Text color for readability */
132+
.chat-bubble * {
133+
color: inherit !important;
134+
}
135+
.chat .chat-bubble.chat-bubble-secondary {
136+
background-color: #126e13 !important; /* or #228B22 */
137+
color: white !important; /* Text color for readability */
138+
}
139+
.chat .chat-bubble.chat-bubble-primary {
140+
background-color: #3f3b6b !important; /* or #228B22 */
141+
color: white !important; /* Text color for readability */
142+
}
143+
chat .chat-bubble.chat-bubble-other {
144+
background-color: blue !important; /* or #228B22 */
145+
color: white !important; /* Text color for readability */
114146
}
115147
.btn.btn-primary.btn-disabled.thinking-red-text {
116148
color: #EF4444 !important; /* Tailwind's red-500 color, with !important to override disabled styles */
@@ -150,7 +182,6 @@ def get_args():
150182
}
151183
152184
.markdown-content pre {
153-
background-color: #f3f4f6;
154185
padding: 0.75em;
155186
border-radius: 0.375rem;
156187
overflow-x: auto;
@@ -159,7 +190,6 @@ def get_args():
159190
}
160191
161192
.markdown-content code {
162-
background-color: #e5e7eb;
163193
padding: 0.1em 0.3em;
164194
border-radius: 0.25rem;
165195
font-family: monospace;

test-chatbot-config.hjson

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,24 @@
11
{
22
llms:
33
[
4+
{
5+
llm: openai/gpt-5
6+
api_key_env: MY_OPENAI_API_KEY
7+
alias: gpt5
8+
temperature: 1
9+
}
10+
{
11+
llm: openai/gpt-5-mini
12+
api_key_env: MY_OPENAI_API_KEY
13+
alias: gpt5mini
14+
temperature: 1
15+
}
16+
{
17+
llm: openai/gpt-5-nano
18+
api_key_env: MY_OPENAI_API_KEY
19+
alias: gpt5nano
20+
temperature: 1
21+
}
422
{
523
llm: openai/gpt-4.1
624
api_key_env: MY_OPENAI_API_KEY

0 commit comments

Comments
 (0)