Threadbourne commited on
Commit
a325f1a
·
verified ·
1 Parent(s): f8ccc2e

Delete custom.css

Browse files
Files changed (1) hide show
  1. custom.css +0 -376
custom.css DELETED
@@ -1,376 +0,0 @@
1
- /* uglytool.dev — Vellum theme (v1)
2
- * See README.md for drop-in instructions for Gradio + Streamlit.
3
- * You bought this file. Modify whatever you want — tweak the burgundy,
4
- * swap the font, remove the credit. It's yours now.
5
- */
6
-
7
- @import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;0,800;1,400&family=Lora:ital,wght@0,400;0,500;0,600;1,400;1,500&family=DM+Mono:wght@400;500&display=swap');
8
-
9
- /* ============================================================
10
- * Part 1 — Theme variables (cascade through Gradio's own CSS vars)
11
- * ============================================================ */
12
-
13
- :root,
14
- :root.dark,
15
- .gradio-container,
16
- .gradio-container.dark,
17
- body.dark {
18
- --vl-paper: #f0ede6;
19
- --vl-surface: #faf8f4;
20
- --vl-border: rgba(44, 36, 32, 0.12);
21
- --vl-border-soft: rgba(44, 36, 32, 0.06);
22
- --vl-border-focus: #7a3b3b;
23
- --vl-burgundy: #7a3b3b;
24
- --vl-burgundy-soft: rgba(122, 59, 59, 0.1);
25
- --vl-ink: #2c2420;
26
- --vl-muted: #6b5e58;
27
- --vl-dim: #8a7e76;
28
-
29
- --body-background-fill: var(--vl-paper);
30
- --background-fill-primary: var(--vl-surface);
31
- --background-fill-secondary: var(--vl-surface);
32
- --body-text-color: var(--vl-ink);
33
- --body-text-color-subdued: var(--vl-muted);
34
- --color-accent: var(--vl-burgundy);
35
- --color-accent-soft: var(--vl-burgundy-soft);
36
- --border-color-primary: var(--vl-border);
37
- --border-color-accent: var(--vl-border-focus);
38
-
39
- --block-background-fill: var(--vl-surface);
40
- --block-border-color: var(--vl-border);
41
- --block-border-width: 1px;
42
- --block-radius: 2px;
43
- --block-shadow: none;
44
-
45
- --block-title-background-fill: transparent;
46
- --block-title-border-color: transparent;
47
- --block-title-text-color: var(--vl-ink);
48
- --block-title-text-size: 1.1rem;
49
- --block-title-text-weight: 700;
50
- --block-label-background-fill: transparent;
51
- --block-label-border-color: transparent;
52
- --block-label-text-color: var(--vl-ink);
53
- --block-label-text-size: 0.95rem;
54
- --block-label-text-weight: 400;
55
-
56
- --input-background-fill: var(--vl-surface);
57
- --input-background-fill-focus: var(--vl-surface);
58
- --input-border-color: var(--vl-border);
59
- --input-border-color-focus: var(--vl-burgundy);
60
- --input-text-size: 1rem;
61
- --input-radius: 2px;
62
-
63
- --button-primary-background-fill: var(--vl-burgundy);
64
- --button-primary-background-fill-hover: #652f2f;
65
- --button-primary-text-color: var(--vl-paper);
66
- --button-primary-text-color-hover: var(--vl-paper);
67
- --button-primary-border-color: var(--vl-burgundy);
68
- --button-secondary-background-fill: var(--vl-surface);
69
- --button-secondary-background-fill-hover: #ebe7df;
70
- --button-secondary-text-color: var(--vl-burgundy);
71
- --button-secondary-text-color-hover: var(--vl-burgundy);
72
- --button-secondary-border-color: var(--vl-burgundy);
73
- --button-large-text-size: 1.05rem;
74
- --button-large-text-weight: 700;
75
- --button-large-radius: 2px;
76
-
77
- --slider-color: var(--vl-burgundy);
78
-
79
- --font: 'Lora', Georgia, serif;
80
- --font-mono: 'DM Mono', ui-monospace, monospace;
81
-
82
- --radius-xxs: 1px;
83
- --radius-xs: 2px;
84
- --radius-sm: 2px;
85
- --radius-md: 3px;
86
- --radius-lg: 4px;
87
- }
88
-
89
- /* ============================================================
90
- * Part 2 — Root containers
91
- * ============================================================ */
92
-
93
- html body,
94
- html body.dark,
95
- html body .gradio-container,
96
- html body .gradio-container.dark,
97
- html body .stApp,
98
- html body .stApp > div,
99
- html body [data-testid="stAppViewContainer"] {
100
- background: var(--vl-paper) !important;
101
- color: var(--vl-ink) !important;
102
- font-family: 'Lora', Georgia, serif !important;
103
- }
104
-
105
- html body .main .block-container,
106
- html body .stApp [data-testid="stVerticalBlock"] {
107
- background: var(--vl-paper) !important;
108
- }
109
-
110
- /* ============================================================
111
- * Part 3 — Typography
112
- * Headings go to Playfair Display; labels go to italic Playfair.
113
- * Ink color (not burgundy) — burgundy is an accent, not a text color.
114
- * ============================================================ */
115
-
116
- html body h1, html body h2, html body h3, html body h4, html body h5, html body h6,
117
- html body .gradio-container h1, html body .gradio-container h2, html body .gradio-container h3,
118
- html body .gradio-container h4, html body .gradio-container h5, html body .gradio-container h6,
119
- html body .gradio-container h1 *, html body .gradio-container h2 *, html body .gradio-container h3 *,
120
- html body .prose h1, html body .prose h2, html body .prose h3, html body .prose h4,
121
- html body .prose h1 *, html body .prose h2 *, html body .prose h3 *,
122
- html body .markdown h1, html body .markdown h2, html body .markdown h3,
123
- html body .markdown h1 *, html body .markdown h2 *, html body .markdown h3 *,
124
- html body .gr-markdown h1, html body .gr-markdown h2, html body .gr-markdown h3,
125
- html body .gr-markdown h1 *, html body .gr-markdown h2 *, html body .gr-markdown h3 *,
126
- html body .stApp h1, html body .stApp h2, html body .stApp h3,
127
- html body [data-testid="stMarkdownContainer"] h1,
128
- html body [data-testid="stMarkdownContainer"] h2,
129
- html body [data-testid="stMarkdownContainer"] h3,
130
- html body [data-testid="stMarkdownContainer"] h1 *,
131
- html body [data-testid="stMarkdownContainer"] h2 *,
132
- html body [data-testid="stMarkdownContainer"] h3 * {
133
- font-family: 'Playfair Display', Georgia, serif !important;
134
- font-weight: 800 !important;
135
- letter-spacing: -0.015em !important;
136
- color: var(--vl-ink) !important;
137
- -webkit-text-fill-color: var(--vl-ink) !important;
138
- background-image: none !important;
139
- background-clip: unset !important;
140
- -webkit-background-clip: unset !important;
141
- line-height: 1.15 !important;
142
- }
143
-
144
- /* Labels — italic Playfair in ink. Distinctive Vellum voice. */
145
- html body .gradio-container .block-label,
146
- html body .gradio-container .block-label *,
147
- html body .gradio-container label,
148
- html body .gradio-container label > *,
149
- html body .gradio-container [class*="label-wrap"],
150
- html body .gradio-container [class*="label-wrap"] *,
151
- html body .gradio-container [data-testid*="label"],
152
- html body .gradio-container .wrap > label,
153
- html body .stApp label,
154
- html body .stApp [data-testid="stWidgetLabel"],
155
- html body .stApp [data-testid="stWidgetLabel"] > *,
156
- html body .stApp [data-testid="stWidgetLabel"] p {
157
- font-family: 'Playfair Display', Georgia, serif !important;
158
- font-style: italic !important;
159
- font-size: 0.95rem !important;
160
- color: var(--vl-ink) !important;
161
- letter-spacing: 0 !important;
162
- text-transform: none !important;
163
- font-weight: 400 !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(--vl-surface) !important;
180
- border: 1px solid var(--vl-border) !important;
181
- border-radius: 2px !important;
182
- }
183
-
184
- /* ============================================================
185
- * Part 5 — Inputs (light surface, subtle border, hairline focus)
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(--vl-surface) !important;
204
- border: 1px solid var(--vl-border) !important;
205
- border-radius: 2px !important;
206
- color: var(--vl-ink) !important;
207
- font-family: 'Lora', Georgia, serif !important;
208
- font-size: 1rem !important;
209
- caret-color: var(--vl-burgundy) !important;
210
- padding: 14px 16px !important;
211
- line-height: 1.6 !important;
212
- }
213
-
214
- html body .gradio-container textarea,
215
- html body .stApp textarea {
216
- min-height: 130px !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(--vl-burgundy) !important;
225
- outline: none !important;
226
- box-shadow: 0 0 0 1px var(--vl-burgundy) !important;
227
- }
228
-
229
- html body .gradio-container ::placeholder,
230
- html body .stApp ::placeholder {
231
- color: var(--vl-dim) !important;
232
- font-style: italic !important;
233
- }
234
-
235
- /* ============================================================
236
- * Part 6 — Buttons (burgundy, italic Playfair, small radius)
237
- * ============================================================ */
238
-
239
- html body .gradio-container button,
240
- html body .gradio-container .gr-button,
241
- html body .gradio-container [class*="gr-button"],
242
- html body .gradio-container button.primary,
243
- html body .gradio-container .primary,
244
- html body .stApp .stButton > button,
245
- html body .stApp button[kind="primary"] {
246
- background: var(--vl-burgundy) !important;
247
- color: var(--vl-paper) !important;
248
- font-family: 'Playfair Display', Georgia, serif !important;
249
- font-style: italic !important;
250
- font-weight: 700 !important;
251
- font-size: 1.05rem !important;
252
- letter-spacing: 0.02em !important;
253
- border: none !important;
254
- border-radius: 2px !important;
255
- padding: 14px 36px !important;
256
- cursor: pointer !important;
257
- transition: opacity 150ms, transform 100ms !important;
258
- }
259
-
260
- html body .gradio-container button:hover,
261
- html body .gradio-container .gr-button:hover,
262
- html body .stApp .stButton > button:hover {
263
- opacity: 0.88 !important;
264
- background: var(--vl-burgundy) !important;
265
- color: var(--vl-paper) !important;
266
- }
267
-
268
- html body .gradio-container button:active,
269
- html body .stApp .stButton > button:active {
270
- transform: scale(0.995) !important;
271
- }
272
-
273
- html body .gradio-container button.secondary,
274
- html body .gradio-container .secondary,
275
- html body .stApp button[kind="secondary"] {
276
- background: transparent !important;
277
- color: var(--vl-burgundy) !important;
278
- border: 1px solid var(--vl-burgundy) !important;
279
- }
280
-
281
- /* ============================================================
282
- * Part 7 — Sliders, checkboxes, radios
283
- * ============================================================ */
284
-
285
- html body input[type="range"] { accent-color: var(--vl-burgundy) !important; }
286
- html body input[type="range"]::-webkit-slider-thumb {
287
- background: var(--vl-burgundy) !important;
288
- border: 2px solid var(--vl-paper) !important;
289
- box-shadow: 0 0 0 1px var(--vl-border) !important;
290
- }
291
- html body input[type="range"]::-moz-range-thumb {
292
- background: var(--vl-burgundy) !important;
293
- border: 2px solid var(--vl-paper) !important;
294
- }
295
- html body input[type="checkbox"],
296
- html body input[type="radio"] {
297
- accent-color: var(--vl-burgundy) !important;
298
- }
299
-
300
- /* ============================================================
301
- * Part 8 — File uploads
302
- * ============================================================ */
303
-
304
- html body .gradio-container .gr-file-upload,
305
- html body .gradio-container input[type="file"],
306
- html body .stApp [data-testid="stFileUploader"],
307
- html body .stApp [data-testid="stFileUploaderDropzone"] {
308
- background: var(--vl-surface) !important;
309
- border: 1px dashed var(--vl-border) !important;
310
- border-radius: 2px !important;
311
- color: var(--vl-ink) !important;
312
- }
313
-
314
- html body input[type="file"]::file-selector-button {
315
- background: transparent !important;
316
- color: var(--vl-burgundy) !important;
317
- border: 1px solid var(--vl-burgundy) !important;
318
- border-radius: 2px !important;
319
- padding: 6px 14px !important;
320
- margin-right: 14px !important;
321
- font-family: 'Playfair Display', Georgia, serif !important;
322
- font-style: italic !important;
323
- font-size: 0.9rem !important;
324
- cursor: pointer !important;
325
- }
326
-
327
- /* ============================================================
328
- * Part 9 — Markdown, code, links
329
- * ============================================================ */
330
-
331
- html body .gradio-container .markdown,
332
- html body .gradio-container .gr-markdown,
333
- html body .gradio-container .prose,
334
- html body .stApp [data-testid="stMarkdownContainer"] {
335
- color: var(--vl-ink) !important;
336
- font-family: 'Lora', Georgia, serif !important;
337
- line-height: 1.7 !important;
338
- }
339
-
340
- html body .gradio-container a,
341
- html body .stApp a {
342
- color: var(--vl-burgundy) !important;
343
- }
344
-
345
- html body code,
346
- html body .gradio-container code,
347
- html body .stApp code {
348
- background: var(--vl-burgundy-soft) !important;
349
- color: var(--vl-burgundy) !important;
350
- font-family: 'DM Mono', ui-monospace, monospace !important;
351
- padding: 2px 6px !important;
352
- border-radius: 2px !important;
353
- }
354
-
355
- /* ============================================================
356
- * Part 10 — Scrollbars + Streamlit chrome
357
- * ============================================================ */
358
-
359
- html body ::-webkit-scrollbar { width: 8px; height: 8px; }
360
- html body ::-webkit-scrollbar-track { background: var(--vl-paper); }
361
- html body ::-webkit-scrollbar-thumb {
362
- background: var(--vl-border);
363
- border-radius: 2px;
364
- }
365
- html body ::-webkit-scrollbar-thumb:hover {
366
- background: var(--vl-burgundy-soft);
367
- }
368
-
369
- html body .stApp header[data-testid="stHeader"] {
370
- background: var(--vl-paper) !important;
371
- border-bottom: 1px solid var(--vl-border) !important;
372
- }
373
- html body .stApp [data-testid="stSidebar"] {
374
- background: var(--vl-surface) !important;
375
- border-right: 1px solid var(--vl-border) !important;
376
- }