salihfurkaan commited on
Commit
5bbd0ea
·
1 Parent(s): 643966b

Apply dark professional UI theme and remove white backgrounds

Browse files
Files changed (1) hide show
  1. app.py +30 -29
app.py CHANGED
@@ -16,20 +16,20 @@ logging.basicConfig(level=logging.INFO, format=LOG_FORMAT)
16
 
17
  CUSTOM_CSS = """
18
  :root {
19
- color-scheme: light;
20
  }
21
 
22
  body {
23
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
24
- background: linear-gradient(180deg, #eef2ff 0%, #f8fafc 100%);
25
- color: #0f172a;
26
  }
27
 
28
  .gradio-container {
29
  max-width: 1340px;
30
  margin: 0 auto;
31
  padding: 1.5rem 1rem 2rem;
32
- color: #0f172a;
33
  }
34
 
35
  .gradio-container,
@@ -38,15 +38,16 @@ body {
38
  .gradio-container .gr-column,
39
  .gradio-container .gr-box,
40
  .gradio-container .gr-panel {
41
- color: #0f172a !important;
 
42
  }
43
 
44
  .hero-banner {
45
  border-radius: 20px;
46
  padding: 2.3rem;
47
- background: linear-gradient(135deg, #1f2937 0%, #334155 100%);
48
  color: #f8fafc;
49
- box-shadow: 0 20px 48px rgba(15, 23, 42, 0.16);
50
  margin-bottom: 1.5rem;
51
  }
52
 
@@ -65,7 +66,7 @@ body {
65
  .hero-banner p {
66
  margin: 1rem 0 0;
67
  max-width: 760px;
68
- color: rgba(248,250,252,0.95);
69
  font-size: 1.05rem;
70
  line-height: 1.75;
71
  }
@@ -74,8 +75,8 @@ body {
74
  display: inline-flex;
75
  padding: 0.55rem 0.95rem;
76
  border-radius: 999px;
77
- background: rgba(255,255,255,0.18);
78
- border: 1px solid rgba(255,255,255,0.24);
79
  font-size: 0.95rem;
80
  font-weight: 600;
81
  margin-top: 1rem;
@@ -84,11 +85,11 @@ body {
84
  .panel-card,
85
  .dashboard-card {
86
  border-radius: 18px;
87
- background: #f8fafc;
88
- border: 1px solid rgba(148,163,184,0.22);
89
- box-shadow: 0 16px 40px rgba(15,23,42,0.08);
90
  padding: 1.75rem;
91
- color: #0f172a;
92
  }
93
 
94
  .panel-card {
@@ -117,24 +118,23 @@ body {
117
  .status-warning,
118
  .status-error {
119
  border-left: 5px solid transparent !important;
 
 
120
  }
121
 
122
  .status-success {
123
- background: linear-gradient(135deg, #ecfdf5 0%, #f0fdf4 100%) !important;
124
- border-left-color: #10b981 !important;
125
- color: #064e3b !important;
126
  }
127
 
128
  .status-warning {
129
- background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%) !important;
130
  border-left-color: #f59e0b !important;
131
- color: #92400e !important;
132
  }
133
 
134
  .status-error {
135
- background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%) !important;
136
  border-left-color: #ef4444 !important;
137
- color: #991b1b !important;
138
  }
139
 
140
  .status-success h3,
@@ -154,7 +154,7 @@ body {
154
  font-family: 'JetBrains Mono', monospace;
155
  font-weight: 700;
156
  font-size: 1.3rem;
157
- color: #0f172a;
158
  letter-spacing: 0.02em;
159
  }
160
 
@@ -168,13 +168,13 @@ body {
168
  }
169
 
170
  .gradio-container .gr-button.primary {
171
- background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%) !important;
172
  color: #ffffff !important;
173
- box-shadow: 0 18px 35px rgba(99,102,241,0.25) !important;
174
  }
175
 
176
  .gradio-container .gr-button.primary:hover {
177
- background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%) !important;
178
  }
179
 
180
  .gradio-container input[type="text"],
@@ -186,13 +186,14 @@ body {
186
  .gradio-container .gr-checkbox {
187
  border-radius: 18px !important;
188
  border: 1px solid rgba(148,163,184,0.25) !important;
189
- box-shadow: inset 0 1px 2px rgba(15,23,42,0.06) !important;
190
- color: #0f172a !important;
 
191
  }
192
 
193
  .gradio-container label,
194
  .gradio-container .gr-label {
195
- color: #0f172a !important;
196
  font-weight: 700 !important;
197
  }
198
 
@@ -205,7 +206,7 @@ body {
205
  }
206
 
207
  .gradio-container .gr-button.secondary {
208
- color: #0f172a !important;
209
  }
210
  """
211
 
 
16
 
17
  CUSTOM_CSS = """
18
  :root {
19
+ color-scheme: dark;
20
  }
21
 
22
  body {
23
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
24
+ background: radial-gradient(circle at top, #111827 0%, #0f172a 40%, #111827 100%);
25
+ color: #e2e8f0;
26
  }
27
 
28
  .gradio-container {
29
  max-width: 1340px;
30
  margin: 0 auto;
31
  padding: 1.5rem 1rem 2rem;
32
+ color: #e2e8f0;
33
  }
34
 
35
  .gradio-container,
 
38
  .gradio-container .gr-column,
39
  .gradio-container .gr-box,
40
  .gradio-container .gr-panel {
41
+ color: #e2e8f0 !important;
42
+ background: transparent !important;
43
  }
44
 
45
  .hero-banner {
46
  border-radius: 20px;
47
  padding: 2.3rem;
48
+ background: linear-gradient(135deg, #111827 0%, #1f2937 100%);
49
  color: #f8fafc;
50
+ box-shadow: 0 30px 70px rgba(15, 23, 42, 0.32);
51
  margin-bottom: 1.5rem;
52
  }
53
 
 
66
  .hero-banner p {
67
  margin: 1rem 0 0;
68
  max-width: 760px;
69
+ color: rgba(248,250,252,0.9);
70
  font-size: 1.05rem;
71
  line-height: 1.75;
72
  }
 
75
  display: inline-flex;
76
  padding: 0.55rem 0.95rem;
77
  border-radius: 999px;
78
+ background: rgba(255,255,255,0.12);
79
+ border: 1px solid rgba(255,255,255,0.12);
80
  font-size: 0.95rem;
81
  font-weight: 600;
82
  margin-top: 1rem;
 
85
  .panel-card,
86
  .dashboard-card {
87
  border-radius: 18px;
88
+ background: rgba(15, 23, 42, 0.92);
89
+ border: 1px solid rgba(148,163,184,0.12);
90
+ box-shadow: 0 20px 45px rgba(15,23,42,0.25);
91
  padding: 1.75rem;
92
+ color: #e2e8f0;
93
  }
94
 
95
  .panel-card {
 
118
  .status-warning,
119
  .status-error {
120
  border-left: 5px solid transparent !important;
121
+ background: rgba(15, 23, 42, 0.94) !important;
122
+ border: 1px solid rgba(148,163,184,0.10) !important;
123
  }
124
 
125
  .status-success {
126
+ border-left-color: #22c55e !important;
127
+ color: #d1fae5 !important;
 
128
  }
129
 
130
  .status-warning {
 
131
  border-left-color: #f59e0b !important;
132
+ color: #fde68a !important;
133
  }
134
 
135
  .status-error {
 
136
  border-left-color: #ef4444 !important;
137
+ color: #fecaca !important;
138
  }
139
 
140
  .status-success h3,
 
154
  font-family: 'JetBrains Mono', monospace;
155
  font-weight: 700;
156
  font-size: 1.3rem;
157
+ color: #e2e8f0;
158
  letter-spacing: 0.02em;
159
  }
160
 
 
168
  }
169
 
170
  .gradio-container .gr-button.primary {
171
+ background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%) !important;
172
  color: #ffffff !important;
173
+ box-shadow: 0 18px 40px rgba(67,56,202,0.22) !important;
174
  }
175
 
176
  .gradio-container .gr-button.primary:hover {
177
+ background: linear-gradient(135deg, #4338ca 0%, #3730a3 100%) !important;
178
  }
179
 
180
  .gradio-container input[type="text"],
 
186
  .gradio-container .gr-checkbox {
187
  border-radius: 18px !important;
188
  border: 1px solid rgba(148,163,184,0.25) !important;
189
+ box-shadow: inset 0 1px 2px rgba(15,23,42,0.12) !important;
190
+ color: #e2e8f0 !important;
191
+ background: rgba(15,23,42,0.9) !important;
192
  }
193
 
194
  .gradio-container label,
195
  .gradio-container .gr-label {
196
+ color: #e2e8f0 !important;
197
  font-weight: 700 !important;
198
  }
199
 
 
206
  }
207
 
208
  .gradio-container .gr-button.secondary {
209
+ color: #e2e8f0 !important;
210
  }
211
  """
212