@@ -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;
0 commit comments