Threadbourne commited on
Commit
485bf69
·
verified ·
1 Parent(s): efd092c

Delete custom.css

Browse files
Files changed (1) hide show
  1. custom.css +0 -373
custom.css DELETED
@@ -1,373 +0,0 @@
1
- /* uglytool.dev — After Hours theme (v3)
2
- * See README.md for drop-in instructions for Gradio + Streamlit.
3
- * You bought this file. Modify whatever you want — tweak the amber,
4
- * swap the font, remove the credit. It's yours now.
5
- */
6
-
7
- @import url('https://fonts.googleapis.com/css2?family=Syne:wght@600;700;800&family=DM+Sans:wght@300;400;500&family=DM+Mono:wght@400;500&display=swap');
8
-
9
- /* ============================================================
10
- * Part 1 — Gradio theme variables (the primary customization hook)
11
- * Override on :root AND on the dark-mode variant so the cascade
12
- * picks these up regardless of which flag the host set.
13
- * ============================================================ */
14
-
15
- :root,
16
- :root.dark,
17
- .gradio-container,
18
- .gradio-container.dark,
19
- body.dark {
20
- /* After Hours palette */
21
- --ah-bg: #1a1917;
22
- --ah-bg-raised: #222120;
23
- --ah-surface: #2a2826;
24
- --ah-border: rgba(255, 255, 255, 0.07);
25
- --ah-border-focus: rgba(193, 127, 58, 0.5);
26
- --ah-amber: #c17f3a;
27
- --ah-amber-dim: rgba(193, 127, 58, 0.12);
28
- --ah-text: #f0ece4;
29
- --ah-muted: #8a8278;
30
- --ah-dim: #5a5650;
31
-
32
- /* Gradio — colors */
33
- --body-background-fill: var(--ah-bg);
34
- --background-fill-primary: var(--ah-bg-raised);
35
- --background-fill-secondary: var(--ah-surface);
36
- --body-text-color: var(--ah-text);
37
- --body-text-color-subdued: var(--ah-muted);
38
- --color-accent: var(--ah-amber);
39
- --color-accent-soft: var(--ah-amber-dim);
40
- --border-color-primary: var(--ah-border);
41
- --border-color-accent: var(--ah-border-focus);
42
-
43
- /* Gradio — blocks (cards) */
44
- --block-background-fill: var(--ah-bg-raised);
45
- --block-border-color: var(--ah-border);
46
- --block-border-width: 1px;
47
- --block-radius: 6px;
48
- --block-shadow: none;
49
-
50
- /* Gradio — block titles + labels (this is where headings/labels live) */
51
- --block-title-background-fill: transparent;
52
- --block-title-border-color: transparent;
53
- --block-title-text-color: var(--ah-text);
54
- --block-title-text-size: 0.9rem;
55
- --block-title-text-weight: 700;
56
- --block-label-background-fill: transparent;
57
- --block-label-border-color: transparent;
58
- --block-label-text-color: var(--ah-amber);
59
- --block-label-text-size: 0.72rem;
60
- --block-label-text-weight: 500;
61
-
62
- /* Gradio — inputs */
63
- --input-background-fill: var(--ah-surface);
64
- --input-background-fill-focus: var(--ah-surface);
65
- --input-border-color: var(--ah-border);
66
- --input-border-color-focus: var(--ah-border-focus);
67
- --input-text-size: 0.88rem;
68
- --input-radius: 6px;
69
-
70
- /* Gradio — buttons */
71
- --button-primary-background-fill: var(--ah-amber);
72
- --button-primary-background-fill-hover: #b87234;
73
- --button-primary-text-color: var(--ah-bg);
74
- --button-primary-text-color-hover: var(--ah-bg);
75
- --button-primary-border-color: var(--ah-amber);
76
- --button-secondary-background-fill: var(--ah-surface);
77
- --button-secondary-background-fill-hover: #342f2a;
78
- --button-secondary-text-color: var(--ah-text);
79
- --button-secondary-text-color-hover: var(--ah-text);
80
- --button-secondary-border-color: var(--ah-border);
81
- --button-large-text-size: 0.9rem;
82
- --button-large-text-weight: 700;
83
- --button-large-radius: 6px;
84
-
85
- /* Sliders */
86
- --slider-color: var(--ah-amber);
87
-
88
- /* Typography — Gradio only exposes one font variable; we win
89
- heading specificity via selectors below. */
90
- --font: 'DM Sans', ui-sans-serif, system-ui, sans-serif;
91
- --font-mono: 'DM Mono', ui-monospace, monospace;
92
-
93
- /* Radii */
94
- --radius-xxs: 2px;
95
- --radius-xs: 4px;
96
- --radius-sm: 6px;
97
- --radius-md: 8px;
98
- --radius-lg: 10px;
99
- }
100
-
101
- /* ============================================================
102
- * Part 2 — Root containers (beat default light/dark mode rules)
103
- * ============================================================ */
104
-
105
- html body,
106
- html body.dark,
107
- html body .gradio-container,
108
- html body .gradio-container.dark,
109
- html body .stApp,
110
- html body .stApp > div,
111
- html body [data-testid="stAppViewContainer"] {
112
- background: var(--ah-bg) !important;
113
- color: var(--ah-text) !important;
114
- font-family: 'DM Sans', ui-sans-serif, system-ui, sans-serif !important;
115
- }
116
-
117
- html body .main .block-container,
118
- html body .stApp [data-testid="stVerticalBlock"] {
119
- background: var(--ah-bg) !important;
120
- }
121
-
122
- /* ============================================================
123
- * Part 3 — Typography (html body prefix to win most specificity wars)
124
- * Headings go to Syne; labels go to DM Mono amber caps.
125
- * ============================================================ */
126
-
127
- html body h1, html body h2, html body h3, html body h4, html body h5, html body h6,
128
- html body .gradio-container h1, html body .gradio-container h2, html body .gradio-container h3,
129
- html body .gradio-container h4, html body .gradio-container h5, html body .gradio-container h6,
130
- html body .prose h1, html body .prose h2, html body .prose h3, html body .prose h4,
131
- html body .markdown h1, html body .markdown h2, html body .markdown h3,
132
- html body .gr-markdown h1, html body .gr-markdown h2, html body .gr-markdown h3,
133
- html body .stApp h1, html body .stApp h2, html body .stApp h3,
134
- html body [data-testid="stMarkdownContainer"] h1,
135
- html body [data-testid="stMarkdownContainer"] h2,
136
- html body [data-testid="stMarkdownContainer"] h3 {
137
- font-family: 'Syne', ui-sans-serif, sans-serif !important;
138
- font-weight: 700 !important;
139
- letter-spacing: -0.02em !important;
140
- color: var(--ah-text) !important;
141
- line-height: 1.15 !important;
142
- }
143
-
144
- /* Labels — Gradio: .block-label / .svelte-label / <label>.
145
- Streamlit: [data-testid="stWidgetLabel"]. Cover all known variants. */
146
- html body .gradio-container .block-label,
147
- html body .gradio-container .block-label *,
148
- html body .gradio-container label,
149
- html body .gradio-container label > *,
150
- html body .gradio-container [class*="label-wrap"],
151
- html body .gradio-container [class*="label-wrap"] *,
152
- html body .gradio-container [data-testid*="label"],
153
- html body .gradio-container .wrap > label,
154
- html body .stApp label,
155
- html body .stApp [data-testid="stWidgetLabel"],
156
- html body .stApp [data-testid="stWidgetLabel"] > *,
157
- html body .stApp [data-testid="stWidgetLabel"] p {
158
- font-family: 'DM Mono', ui-monospace, monospace !important;
159
- font-size: 0.72rem !important;
160
- color: var(--ah-amber) !important;
161
- letter-spacing: 0.12em !important;
162
- text-transform: uppercase !important;
163
- font-weight: 500 !important;
164
- background: transparent !important;
165
- }
166
-
167
- /* ============================================================
168
- * Part 4 — Blocks / cards
169
- * ============================================================ */
170
-
171
- html body .gradio-container .block,
172
- html body .gradio-container .gr-block,
173
- html body .gradio-container .gr-padded,
174
- html body .gradio-container .gr-form,
175
- html body .gradio-container .gr-box,
176
- html body .gradio-container .wrap,
177
- html body .stApp [data-testid="stForm"],
178
- html body .stApp [data-testid="stExpander"] {
179
- background: var(--ah-bg-raised) !important;
180
- border: 1px solid var(--ah-border) !important;
181
- border-radius: 6px !important;
182
- }
183
-
184
- /* ============================================================
185
- * Part 5 — Inputs
186
- * ============================================================ */
187
-
188
- html body .gradio-container input[type="text"],
189
- html body .gradio-container input[type="number"],
190
- html body .gradio-container input[type="email"],
191
- html body .gradio-container input[type="password"],
192
- html body .gradio-container input[type="search"],
193
- html body .gradio-container textarea,
194
- html body .gradio-container select,
195
- html body .gradio-container .gr-textbox,
196
- html body .gradio-container .gr-textbox textarea,
197
- html body .gradio-container .gr-textbox input,
198
- html body .stApp input[type="text"],
199
- html body .stApp input[type="number"],
200
- html body .stApp textarea,
201
- html body .stApp [data-baseweb="select"] > div,
202
- html body .stApp [data-baseweb="input"] {
203
- background: var(--ah-surface) !important;
204
- border: 1px solid var(--ah-border) !important;
205
- border-radius: 6px !important;
206
- color: var(--ah-text) !important;
207
- font-family: 'DM Mono', ui-monospace, monospace !important;
208
- font-size: 0.88rem !important;
209
- caret-color: var(--ah-amber) !important;
210
- padding: 12px 14px !important;
211
- }
212
-
213
- html body .gradio-container textarea,
214
- html body .stApp textarea {
215
- min-height: 120px !important;
216
- line-height: 1.6 !important;
217
- }
218
-
219
- html body .gradio-container input:focus,
220
- html body .gradio-container textarea:focus,
221
- html body .gradio-container select:focus,
222
- html body .stApp input:focus,
223
- html body .stApp textarea:focus {
224
- border-color: var(--ah-border-focus) !important;
225
- outline: none !important;
226
- box-shadow: 0 0 0 1px var(--ah-border-focus) !important;
227
- }
228
-
229
- html body .gradio-container ::placeholder,
230
- html body .stApp ::placeholder {
231
- color: var(--ah-dim) !important;
232
- }
233
-
234
- /* ============================================================
235
- * Part 6 — Buttons
236
- * ============================================================ */
237
-
238
- html body .gradio-container button,
239
- html body .gradio-container .gr-button,
240
- html body .gradio-container [class*="gr-button"],
241
- html body .gradio-container button.primary,
242
- html body .gradio-container .primary,
243
- html body .stApp .stButton > button,
244
- html body .stApp button[kind="primary"] {
245
- background: var(--ah-amber) !important;
246
- color: var(--ah-bg) !important;
247
- font-family: 'Syne', ui-sans-serif, sans-serif !important;
248
- font-weight: 700 !important;
249
- font-size: 0.9rem !important;
250
- letter-spacing: 0.04em !important;
251
- border: none !important;
252
- border-radius: 6px !important;
253
- padding: 12px 28px !important;
254
- cursor: pointer !important;
255
- transition: opacity 150ms, transform 100ms !important;
256
- }
257
-
258
- html body .gradio-container button:hover,
259
- html body .gradio-container .gr-button:hover,
260
- html body .stApp .stButton > button:hover {
261
- opacity: 0.9 !important;
262
- background: var(--ah-amber) !important;
263
- color: var(--ah-bg) !important;
264
- }
265
-
266
- html body .gradio-container button:active,
267
- html body .stApp .stButton > button:active {
268
- transform: scale(0.995) !important;
269
- }
270
-
271
- html body .gradio-container button.secondary,
272
- html body .gradio-container .secondary,
273
- html body .stApp button[kind="secondary"] {
274
- background: var(--ah-surface) !important;
275
- color: var(--ah-text) !important;
276
- border: 1px solid var(--ah-border) !important;
277
- }
278
-
279
- /* ============================================================
280
- * Part 7 — Sliders, checkboxes, radios
281
- * ============================================================ */
282
-
283
- html body input[type="range"] { accent-color: var(--ah-amber) !important; }
284
- html body input[type="range"]::-webkit-slider-thumb {
285
- background: var(--ah-amber) !important;
286
- border: 2px solid var(--ah-bg) !important;
287
- box-shadow: 0 0 0 1px rgba(193, 127, 58, 0.3) !important;
288
- }
289
- html body input[type="range"]::-moz-range-thumb {
290
- background: var(--ah-amber) !important;
291
- border: 2px solid var(--ah-bg) !important;
292
- }
293
- html body input[type="checkbox"],
294
- html body input[type="radio"] {
295
- accent-color: var(--ah-amber) !important;
296
- }
297
-
298
- /* ============================================================
299
- * Part 8 — File uploads
300
- * ============================================================ */
301
-
302
- html body .gradio-container .gr-file-upload,
303
- html body .gradio-container input[type="file"],
304
- html body .stApp [data-testid="stFileUploader"],
305
- html body .stApp [data-testid="stFileUploaderDropzone"] {
306
- background: var(--ah-surface) !important;
307
- border: 1px dashed var(--ah-border) !important;
308
- border-radius: 6px !important;
309
- color: var(--ah-text) !important;
310
- }
311
-
312
- html body input[type="file"]::file-selector-button {
313
- background: var(--ah-amber-dim) !important;
314
- color: var(--ah-amber) !important;
315
- border: 1px solid rgba(193, 127, 58, 0.25) !important;
316
- border-radius: 4px !important;
317
- padding: 6px 12px !important;
318
- margin-right: 12px !important;
319
- font-family: 'DM Mono', ui-monospace, monospace !important;
320
- font-size: 0.78rem !important;
321
- cursor: pointer !important;
322
- }
323
-
324
- /* ============================================================
325
- * Part 9 — Markdown, code, links
326
- * ============================================================ */
327
-
328
- html body .gradio-container .markdown,
329
- html body .gradio-container .gr-markdown,
330
- html body .gradio-container .prose,
331
- html body .stApp [data-testid="stMarkdownContainer"] {
332
- color: var(--ah-text) !important;
333
- font-family: 'DM Sans', ui-sans-serif, sans-serif !important;
334
- line-height: 1.6 !important;
335
- }
336
-
337
- html body .gradio-container a,
338
- html body .stApp a {
339
- color: var(--ah-amber) !important;
340
- }
341
-
342
- html body code,
343
- html body .gradio-container code,
344
- html body .stApp code {
345
- background: var(--ah-surface) !important;
346
- color: var(--ah-amber) !important;
347
- font-family: 'DM Mono', ui-monospace, monospace !important;
348
- padding: 2px 6px !important;
349
- border-radius: 3px !important;
350
- }
351
-
352
- /* ============================================================
353
- * Part 10 — Scrollbars + Streamlit chrome
354
- * ============================================================ */
355
-
356
- html body ::-webkit-scrollbar { width: 8px; height: 8px; }
357
- html body ::-webkit-scrollbar-track { background: var(--ah-bg); }
358
- html body ::-webkit-scrollbar-thumb {
359
- background: rgba(193, 127, 58, 0.3);
360
- border-radius: 4px;
361
- }
362
- html body ::-webkit-scrollbar-thumb:hover {
363
- background: rgba(193, 127, 58, 0.5);
364
- }
365
-
366
- html body .stApp header[data-testid="stHeader"] {
367
- background: var(--ah-bg) !important;
368
- border-bottom: 1px solid var(--ah-border) !important;
369
- }
370
- html body .stApp [data-testid="stSidebar"] {
371
- background: var(--ah-bg-raised) !important;
372
- border-right: 1px solid var(--ah-border) !important;
373
- }