ZhouChuYue commited on
Commit
4c6fb44
·
1 Parent(s): f362e3f

fix: darken component backgrounds and brighten labels for better contrast

Browse files
Files changed (1) hide show
  1. app.py +12 -3
app.py CHANGED
@@ -233,11 +233,18 @@ body {
233
  /* Target specific Gradio input classes and generic elements */
234
  .gr-input, textarea, input, .gr-box, .gr-check-radio, .gr-dropdown {
235
  font-family: 'JetBrains Mono', monospace !important;
236
- background-color: rgba(30, 41, 59, 0.5) !important;
237
  border: 1px solid rgba(148, 163, 184, 0.2) !important;
238
  color: #ffffff !important;
239
  }
240
 
 
 
 
 
 
 
 
241
  /* Fix for dropdown options background */
242
  ul.options, .gr-dropdown-options {
243
  background-color: #1e293b !important;
@@ -251,8 +258,10 @@ ul.options, .gr-dropdown-options {
251
 
252
  /* Labels */
253
  label span, .gr-form label span {
254
- color: var(--text-gray) !important;
255
- font-weight: 500 !important;
 
 
256
  }
257
 
258
  /* Buttons */
 
233
  /* Target specific Gradio input classes and generic elements */
234
  .gr-input, textarea, input, .gr-box, .gr-check-radio, .gr-dropdown {
235
  font-family: 'JetBrains Mono', monospace !important;
236
+ background-color: rgba(15, 23, 42, 0.8) !important;
237
  border: 1px solid rgba(148, 163, 184, 0.2) !important;
238
  color: #ffffff !important;
239
  }
240
 
241
+ /* Override default block backgrounds that might be light */
242
+ .gradio-container .block, .gradio-container .panel {
243
+ background-color: rgba(30, 41, 59, 0.2) !important;
244
+ border-color: rgba(255, 255, 255, 0.1) !important;
245
+ border-radius: 8px !important;
246
+ }
247
+
248
  /* Fix for dropdown options background */
249
  ul.options, .gr-dropdown-options {
250
  background-color: #1e293b !important;
 
258
 
259
  /* Labels */
260
  label span, .gr-form label span {
261
+ color: #93c5fd !important; /* Light blue for better contrast */
262
+ font-weight: 600 !important;
263
+ font-size: 0.95rem !important;
264
+ background-color: transparent !important;
265
  }
266
 
267
  /* Buttons */