Colour schema change
Browse files
app.py
CHANGED
|
@@ -88,79 +88,115 @@ with gr.Blocks() as demo:
|
|
| 88 |
font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
|
| 89 |
}
|
| 90 |
|
| 91 |
-
.gradio-container {
|
| 92 |
-
background:
|
| 93 |
}
|
| 94 |
|
| 95 |
.gr-box, .gr-form, .gr-panel {
|
| 96 |
-
background-color: #
|
| 97 |
-
border
|
| 98 |
-
|
|
|
|
| 99 |
}
|
| 100 |
|
|
|
|
| 101 |
button.primary {
|
| 102 |
-
background-color: #
|
| 103 |
-
border-color: #
|
|
|
|
| 104 |
font-weight: 500 !important;
|
| 105 |
transition: all 0.2s ease !important;
|
| 106 |
}
|
| 107 |
|
| 108 |
button.primary:hover {
|
| 109 |
-
background-color: #
|
| 110 |
-
|
| 111 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 112 |
}
|
| 113 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 114 |
.message.user {
|
| 115 |
-
background-color: #
|
| 116 |
-
color: #
|
| 117 |
-
border-left: 3px solid #
|
| 118 |
}
|
| 119 |
|
| 120 |
.message.bot {
|
| 121 |
-
background-color: #
|
| 122 |
-
color: #
|
| 123 |
-
border-left: 3px solid #
|
| 124 |
}
|
| 125 |
|
|
|
|
| 126 |
h1 {
|
| 127 |
-
color: #
|
| 128 |
text-align: center;
|
| 129 |
font-weight: 700 !important;
|
| 130 |
letter-spacing: -0.02em;
|
| 131 |
}
|
| 132 |
|
| 133 |
h2, h3, h4, h5, h6 {
|
| 134 |
-
color: #
|
| 135 |
font-weight: 600 !important;
|
| 136 |
}
|
| 137 |
|
| 138 |
.gr-markdown {
|
| 139 |
text-align: center;
|
| 140 |
-
color: #
|
| 141 |
}
|
| 142 |
|
|
|
|
| 143 |
.gr-radio {
|
| 144 |
-
background-color: #
|
| 145 |
-
padding:
|
| 146 |
-
border
|
| 147 |
-
|
| 148 |
}
|
| 149 |
|
| 150 |
label {
|
| 151 |
-
color: #
|
| 152 |
font-weight: 600 !important;
|
| 153 |
}
|
| 154 |
|
| 155 |
-
|
| 156 |
-
|
| 157 |
-
|
| 158 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 159 |
}
|
| 160 |
|
| 161 |
-
|
| 162 |
-
|
| 163 |
-
|
| 164 |
}
|
| 165 |
</style>
|
| 166 |
""")
|
|
|
|
| 88 |
font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
|
| 89 |
}
|
| 90 |
|
| 91 |
+
body, .gradio-container {
|
| 92 |
+
background-color: #F7F7F8 !important;
|
| 93 |
}
|
| 94 |
|
| 95 |
.gr-box, .gr-form, .gr-panel {
|
| 96 |
+
background-color: #FFFFFF !important;
|
| 97 |
+
border: 1px solid #E5E7EB !important;
|
| 98 |
+
border-radius: 8px !important;
|
| 99 |
+
box-shadow: 0 1px 3px rgba(0,0,0,0.05) !important;
|
| 100 |
}
|
| 101 |
|
| 102 |
+
/* Primary button (Send) - Soft professional blue */
|
| 103 |
button.primary {
|
| 104 |
+
background-color: #3B82F6 !important;
|
| 105 |
+
border-color: #3B82F6 !important;
|
| 106 |
+
color: #FFFFFF !important;
|
| 107 |
font-weight: 500 !important;
|
| 108 |
transition: all 0.2s ease !important;
|
| 109 |
}
|
| 110 |
|
| 111 |
button.primary:hover {
|
| 112 |
+
background-color: #2563EB !important;
|
| 113 |
+
border-color: #2563EB !important;
|
| 114 |
+
}
|
| 115 |
+
|
| 116 |
+
/* Secondary buttons (Clear Conversation, etc.) */
|
| 117 |
+
button:not(.primary) {
|
| 118 |
+
background-color: #E5E7EB !important;
|
| 119 |
+
border-color: #E5E7EB !important;
|
| 120 |
+
color: #111827 !important;
|
| 121 |
+
font-weight: 500 !important;
|
| 122 |
}
|
| 123 |
|
| 124 |
+
button:not(.primary):hover {
|
| 125 |
+
background-color: #D1D5DB !important;
|
| 126 |
+
}
|
| 127 |
+
|
| 128 |
+
/* Chat bubbles */
|
| 129 |
.message.user {
|
| 130 |
+
background-color: #E5E7EB !important;
|
| 131 |
+
color: #111827 !important;
|
| 132 |
+
border-left: 3px solid #9CA3AF !important;
|
| 133 |
}
|
| 134 |
|
| 135 |
.message.bot {
|
| 136 |
+
background-color: #F3F4F6 !important;
|
| 137 |
+
color: #111827 !important;
|
| 138 |
+
border-left: 3px solid #6B7280 !important;
|
| 139 |
}
|
| 140 |
|
| 141 |
+
/* Headings */
|
| 142 |
h1 {
|
| 143 |
+
color: #111827 !important;
|
| 144 |
text-align: center;
|
| 145 |
font-weight: 700 !important;
|
| 146 |
letter-spacing: -0.02em;
|
| 147 |
}
|
| 148 |
|
| 149 |
h2, h3, h4, h5, h6 {
|
| 150 |
+
color: #374151 !important;
|
| 151 |
font-weight: 600 !important;
|
| 152 |
}
|
| 153 |
|
| 154 |
.gr-markdown {
|
| 155 |
text-align: center;
|
| 156 |
+
color: #4B5563 !important;
|
| 157 |
}
|
| 158 |
|
| 159 |
+
/* Persona selector */
|
| 160 |
.gr-radio {
|
| 161 |
+
background-color: #FFFFFF !important;
|
| 162 |
+
padding: 16px !important;
|
| 163 |
+
border: 1px solid #E5E7EB !important;
|
| 164 |
+
border-radius: 8px !important;
|
| 165 |
}
|
| 166 |
|
| 167 |
label {
|
| 168 |
+
color: #374151 !important;
|
| 169 |
font-weight: 600 !important;
|
| 170 |
}
|
| 171 |
|
| 172 |
+
/* Text inputs */
|
| 173 |
+
.gr-input, .gr-text-input, input, textarea {
|
| 174 |
+
background-color: #FFFFFF !important;
|
| 175 |
+
border: 1px solid #E5E7EB !important;
|
| 176 |
+
border-radius: 6px !important;
|
| 177 |
+
color: #111827 !important;
|
| 178 |
+
}
|
| 179 |
+
|
| 180 |
+
.gr-input::placeholder, .gr-text-input::placeholder,
|
| 181 |
+
input::placeholder, textarea::placeholder {
|
| 182 |
+
color: #6B7280 !important;
|
| 183 |
+
}
|
| 184 |
+
|
| 185 |
+
.gr-input:focus, .gr-text-input:focus, input:focus, textarea:focus {
|
| 186 |
+
border-color: #3B82F6 !important;
|
| 187 |
+
box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1) !important;
|
| 188 |
+
outline: none !important;
|
| 189 |
+
}
|
| 190 |
+
|
| 191 |
+
/* Chatbot container */
|
| 192 |
+
.gr-chatbot {
|
| 193 |
+
background-color: #FFFFFF !important;
|
| 194 |
+
border: 1px solid #E5E7EB !important;
|
| 195 |
}
|
| 196 |
|
| 197 |
+
/* Examples section */
|
| 198 |
+
.gr-examples {
|
| 199 |
+
background-color: #FFFFFF !important;
|
| 200 |
}
|
| 201 |
</style>
|
| 202 |
""")
|