@@ -104,13 +104,45 @@ def get_args():
104
104
Script (src = "https://cdn.jsdelivr.net/npm/marked/marked.min.js" ),
105
105
# add a style for the success bubble which is too light, make it a darker green
106
106
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;
110
131
}
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 */
114
146
}
115
147
.btn.btn-primary.btn-disabled.thinking-red-text {
116
148
color: #EF4444 !important; /* Tailwind's red-500 color, with !important to override disabled styles */
@@ -150,7 +182,6 @@ def get_args():
150
182
}
151
183
152
184
.markdown-content pre {
153
- background-color: #f3f4f6;
154
185
padding: 0.75em;
155
186
border-radius: 0.375rem;
156
187
overflow-x: auto;
@@ -159,7 +190,6 @@ def get_args():
159
190
}
160
191
161
192
.markdown-content code {
162
- background-color: #e5e7eb;
163
193
padding: 0.1em 0.3em;
164
194
border-radius: 0.25rem;
165
195
font-family: monospace;
0 commit comments