Zedel17 commited on
Commit
ffe0b3f
·
1 Parent(s): 914167b

Colour schema change

Browse files
Files changed (1) hide show
  1. app.py +67 -31
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: linear-gradient(135deg, #f5f7fa 0%, #e9ecef 100%) !important;
93
  }
94
 
95
  .gr-box, .gr-form, .gr-panel {
96
- background-color: #ffffff !important;
97
- border-radius: 12px !important;
98
- box-shadow: 0 2px 8px rgba(0,0,0,0.08) !important;
 
99
  }
100
 
 
101
  button.primary {
102
- background-color: #2563eb !important;
103
- border-color: #2563eb !important;
 
104
  font-weight: 500 !important;
105
  transition: all 0.2s ease !important;
106
  }
107
 
108
  button.primary:hover {
109
- background-color: #1d4ed8 !important;
110
- transform: translateY(-1px);
111
- box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3) !important;
 
 
 
 
 
 
 
112
  }
113
 
 
 
 
 
 
114
  .message.user {
115
- background-color: #f1f3f5 !important;
116
- color: #1a1a1a !important;
117
- border-left: 3px solid #2563eb !important;
118
  }
119
 
120
  .message.bot {
121
- background-color: #eff6ff !important;
122
- color: #1a1a1a !important;
123
- border-left: 3px solid #60a5fa !important;
124
  }
125
 
 
126
  h1 {
127
- color: #1e293b !important;
128
  text-align: center;
129
  font-weight: 700 !important;
130
  letter-spacing: -0.02em;
131
  }
132
 
133
  h2, h3, h4, h5, h6 {
134
- color: #334155 !important;
135
  font-weight: 600 !important;
136
  }
137
 
138
  .gr-markdown {
139
  text-align: center;
140
- color: #475569 !important;
141
  }
142
 
 
143
  .gr-radio {
144
- background-color: #ffffff !important;
145
- padding: 20px !important;
146
- border-radius: 12px !important;
147
- box-shadow: 0 2px 8px rgba(0,0,0,0.08) !important;
148
  }
149
 
150
  label {
151
- color: #334155 !important;
152
  font-weight: 600 !important;
153
  }
154
 
155
- .gr-input, .gr-text-input {
156
- border-radius: 8px !important;
157
- border: 2px solid #e2e8f0 !important;
158
- color: #1a1a1a !important;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
159
  }
160
 
161
- .gr-input:focus, .gr-text-input:focus {
162
- border-color: #2563eb !important;
163
- box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1) !important;
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
  """)