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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/* ============================================================
|
| 2 |
+
* uglytool.dev — After Hours theme
|
| 3 |
+
* Drop this into your Gradio or Streamlit app as custom.css.
|
| 4 |
+
*
|
| 5 |
+
* Gradio:
|
| 6 |
+
* with gr.Blocks(css="custom.css") as demo:
|
| 7 |
+
* ...
|
| 8 |
+
*
|
| 9 |
+
* Streamlit:
|
| 10 |
+
* with open("custom.css") as f:
|
| 11 |
+
* st.markdown(f"<style>{f.read()}</style>", unsafe_allow_html=True)
|
| 12 |
+
*
|
| 13 |
+
* You bought this file. Modify whatever you want — remove the credit
|
| 14 |
+
* line, tweak the amber, swap the font. It's yours now.
|
| 15 |
+
* ============================================================ */
|
| 16 |
+
|
| 17 |
+
@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');
|
| 18 |
+
|
| 19 |
+
:root,
|
| 20 |
+
.gradio-container,
|
| 21 |
+
.stApp {
|
| 22 |
+
--ah-bg: #1a1917;
|
| 23 |
+
--ah-bg-raised: #222120;
|
| 24 |
+
--ah-surface: #2a2826;
|
| 25 |
+
--ah-border: rgba(255, 255, 255, 0.07);
|
| 26 |
+
--ah-border-focus: rgba(193, 127, 58, 0.5);
|
| 27 |
+
--ah-amber: #c17f3a;
|
| 28 |
+
--ah-amber-dim: rgba(193, 127, 58, 0.1);
|
| 29 |
+
--ah-text: #f0ece4;
|
| 30 |
+
--ah-muted: #8a8278;
|
| 31 |
+
--ah-dim: #5a5650;
|
| 32 |
+
|
| 33 |
+
/* Gradio theme variables */
|
| 34 |
+
--body-background-fill: var(--ah-bg);
|
| 35 |
+
--background-fill-primary: var(--ah-bg-raised);
|
| 36 |
+
--background-fill-secondary: var(--ah-surface);
|
| 37 |
+
--body-text-color: var(--ah-text);
|
| 38 |
+
--body-text-color-subdued: var(--ah-muted);
|
| 39 |
+
--color-accent: var(--ah-amber);
|
| 40 |
+
--color-accent-soft: var(--ah-amber-dim);
|
| 41 |
+
--border-color-primary: var(--ah-border);
|
| 42 |
+
--border-color-accent: var(--ah-border-focus);
|
| 43 |
+
--input-background-fill: var(--ah-surface);
|
| 44 |
+
--input-border-color: var(--ah-border);
|
| 45 |
+
--input-border-color-focus: var(--ah-border-focus);
|
| 46 |
+
--button-primary-background-fill: var(--ah-amber);
|
| 47 |
+
--button-primary-background-fill-hover: #b87234;
|
| 48 |
+
--button-primary-text-color: var(--ah-bg);
|
| 49 |
+
--button-secondary-background-fill: var(--ah-surface);
|
| 50 |
+
--button-secondary-text-color: var(--ah-text);
|
| 51 |
+
--button-secondary-border-color: var(--ah-border);
|
| 52 |
+
--font: 'DM Sans', sans-serif;
|
| 53 |
+
--font-mono: 'DM Mono', monospace;
|
| 54 |
+
}
|
| 55 |
+
|
| 56 |
+
/* -------- Root containers -------- */
|
| 57 |
+
body,
|
| 58 |
+
.gradio-container,
|
| 59 |
+
.stApp,
|
| 60 |
+
.stApp > div,
|
| 61 |
+
[data-testid="stAppViewContainer"] {
|
| 62 |
+
background: var(--ah-bg) !important;
|
| 63 |
+
color: var(--ah-text) !important;
|
| 64 |
+
font-family: 'DM Sans', sans-serif !important;
|
| 65 |
+
}
|
| 66 |
+
|
| 67 |
+
/* Streamlit main content block */
|
| 68 |
+
.main .block-container,
|
| 69 |
+
[data-testid="stVerticalBlock"] {
|
| 70 |
+
background: var(--ah-bg) !important;
|
| 71 |
+
}
|
| 72 |
+
|
| 73 |
+
/* -------- Headings -------- */
|
| 74 |
+
.gradio-container h1, .gradio-container h2, .gradio-container h3, .gradio-container h4,
|
| 75 |
+
.stApp h1, .stApp h2, .stApp h3, .stApp h4,
|
| 76 |
+
.markdown h1, .markdown h2, .markdown h3,
|
| 77 |
+
.gr-markdown h1, .gr-markdown h2, .gr-markdown h3 {
|
| 78 |
+
font-family: 'Syne', sans-serif !important;
|
| 79 |
+
font-weight: 700 !important;
|
| 80 |
+
letter-spacing: -0.02em !important;
|
| 81 |
+
color: var(--ah-text) !important;
|
| 82 |
+
line-height: 1.15 !important;
|
| 83 |
+
}
|
| 84 |
+
|
| 85 |
+
/* -------- Blocks / cards -------- */
|
| 86 |
+
.gradio-container .block,
|
| 87 |
+
.gradio-container .gr-block,
|
| 88 |
+
.gradio-container .gr-padded,
|
| 89 |
+
.gradio-container .gr-form,
|
| 90 |
+
.gradio-container .gr-box {
|
| 91 |
+
background: var(--ah-bg-raised) !important;
|
| 92 |
+
border: 1px solid var(--ah-border) !important;
|
| 93 |
+
border-radius: 6px !important;
|
| 94 |
+
}
|
| 95 |
+
|
| 96 |
+
.stApp [data-testid="stForm"],
|
| 97 |
+
.stApp [data-testid="stExpander"] {
|
| 98 |
+
background: var(--ah-bg-raised) !important;
|
| 99 |
+
border: 1px solid var(--ah-border) !important;
|
| 100 |
+
border-radius: 6px !important;
|
| 101 |
+
}
|
| 102 |
+
|
| 103 |
+
/* -------- Labels -------- */
|
| 104 |
+
.gradio-container label,
|
| 105 |
+
.gradio-container .label-wrap,
|
| 106 |
+
.gradio-container .label-wrap span,
|
| 107 |
+
.stApp label,
|
| 108 |
+
.stApp [data-testid="stWidgetLabel"] {
|
| 109 |
+
font-family: 'DM Mono', monospace !important;
|
| 110 |
+
font-size: 0.72rem !important;
|
| 111 |
+
color: var(--ah-amber) !important;
|
| 112 |
+
letter-spacing: 0.12em !important;
|
| 113 |
+
text-transform: uppercase !important;
|
| 114 |
+
font-weight: 500 !important;
|
| 115 |
+
}
|
| 116 |
+
|
| 117 |
+
/* -------- Inputs -------- */
|
| 118 |
+
.gradio-container input[type="text"],
|
| 119 |
+
.gradio-container input[type="number"],
|
| 120 |
+
.gradio-container input[type="email"],
|
| 121 |
+
.gradio-container input[type="password"],
|
| 122 |
+
.gradio-container textarea,
|
| 123 |
+
.gradio-container select,
|
| 124 |
+
.stApp input[type="text"],
|
| 125 |
+
.stApp input[type="number"],
|
| 126 |
+
.stApp textarea,
|
| 127 |
+
.stApp [data-baseweb="select"] > div,
|
| 128 |
+
.stApp [data-baseweb="input"] {
|
| 129 |
+
background: var(--ah-surface) !important;
|
| 130 |
+
border: 1px solid var(--ah-border) !important;
|
| 131 |
+
border-radius: 6px !important;
|
| 132 |
+
color: var(--ah-text) !important;
|
| 133 |
+
font-family: 'DM Mono', monospace !important;
|
| 134 |
+
font-size: 0.88rem !important;
|
| 135 |
+
caret-color: var(--ah-amber) !important;
|
| 136 |
+
padding: 12px 14px !important;
|
| 137 |
+
}
|
| 138 |
+
|
| 139 |
+
.gradio-container textarea,
|
| 140 |
+
.stApp textarea {
|
| 141 |
+
min-height: 120px !important;
|
| 142 |
+
line-height: 1.6 !important;
|
| 143 |
+
}
|
| 144 |
+
|
| 145 |
+
.gradio-container input:focus,
|
| 146 |
+
.gradio-container textarea:focus,
|
| 147 |
+
.gradio-container select:focus,
|
| 148 |
+
.stApp input:focus,
|
| 149 |
+
.stApp textarea:focus {
|
| 150 |
+
border-color: var(--ah-border-focus) !important;
|
| 151 |
+
outline: none !important;
|
| 152 |
+
box-shadow: 0 0 0 1px var(--ah-border-focus) !important;
|
| 153 |
+
}
|
| 154 |
+
|
| 155 |
+
.gradio-container ::placeholder,
|
| 156 |
+
.stApp ::placeholder {
|
| 157 |
+
color: var(--ah-dim) !important;
|
| 158 |
+
}
|
| 159 |
+
|
| 160 |
+
/* -------- Primary buttons -------- */
|
| 161 |
+
.gradio-container .gr-button,
|
| 162 |
+
.gradio-container button.primary,
|
| 163 |
+
.gradio-container button[class*="primary"],
|
| 164 |
+
.stApp .stButton > button[kind="primary"],
|
| 165 |
+
.stApp .stButton > button {
|
| 166 |
+
background: var(--ah-amber) !important;
|
| 167 |
+
color: var(--ah-bg) !important;
|
| 168 |
+
font-family: 'Syne', sans-serif !important;
|
| 169 |
+
font-weight: 700 !important;
|
| 170 |
+
font-size: 0.9rem !important;
|
| 171 |
+
letter-spacing: 0.04em !important;
|
| 172 |
+
border: none !important;
|
| 173 |
+
border-radius: 6px !important;
|
| 174 |
+
padding: 12px 28px !important;
|
| 175 |
+
cursor: pointer !important;
|
| 176 |
+
transition: opacity 150ms, transform 100ms !important;
|
| 177 |
+
}
|
| 178 |
+
|
| 179 |
+
.gradio-container .gr-button:hover,
|
| 180 |
+
.gradio-container button.primary:hover,
|
| 181 |
+
.stApp .stButton > button:hover {
|
| 182 |
+
opacity: 0.9 !important;
|
| 183 |
+
background: var(--ah-amber) !important;
|
| 184 |
+
color: var(--ah-bg) !important;
|
| 185 |
+
}
|
| 186 |
+
|
| 187 |
+
.gradio-container .gr-button:active,
|
| 188 |
+
.stApp .stButton > button:active {
|
| 189 |
+
transform: scale(0.995) !important;
|
| 190 |
+
}
|
| 191 |
+
|
| 192 |
+
/* -------- Secondary buttons -------- */
|
| 193 |
+
.gradio-container button.secondary,
|
| 194 |
+
.gradio-container .gr-button.secondary,
|
| 195 |
+
.gradio-container button[class*="secondary"],
|
| 196 |
+
.stApp .stButton > button[kind="secondary"] {
|
| 197 |
+
background: var(--ah-surface) !important;
|
| 198 |
+
color: var(--ah-text) !important;
|
| 199 |
+
border: 1px solid var(--ah-border) !important;
|
| 200 |
+
}
|
| 201 |
+
|
| 202 |
+
/* -------- Sliders / range -------- */
|
| 203 |
+
.gradio-container input[type="range"],
|
| 204 |
+
.stApp [data-baseweb="slider"] {
|
| 205 |
+
accent-color: var(--ah-amber) !important;
|
| 206 |
+
}
|
| 207 |
+
|
| 208 |
+
.gradio-container input[type="range"]::-webkit-slider-thumb {
|
| 209 |
+
background: var(--ah-amber) !important;
|
| 210 |
+
border: 2px solid var(--ah-bg) !important;
|
| 211 |
+
box-shadow: 0 0 0 1px rgba(193, 127, 58, 0.3) !important;
|
| 212 |
+
}
|
| 213 |
+
|
| 214 |
+
.gradio-container input[type="range"]::-moz-range-thumb {
|
| 215 |
+
background: var(--ah-amber) !important;
|
| 216 |
+
border: 2px solid var(--ah-bg) !important;
|
| 217 |
+
}
|
| 218 |
+
|
| 219 |
+
/* -------- Checkboxes + radio -------- */
|
| 220 |
+
.gradio-container input[type="checkbox"],
|
| 221 |
+
.gradio-container input[type="radio"],
|
| 222 |
+
.stApp input[type="checkbox"],
|
| 223 |
+
.stApp input[type="radio"] {
|
| 224 |
+
accent-color: var(--ah-amber) !important;
|
| 225 |
+
}
|
| 226 |
+
|
| 227 |
+
/* -------- File upload -------- */
|
| 228 |
+
.gradio-container .gr-file-upload,
|
| 229 |
+
.gradio-container input[type="file"],
|
| 230 |
+
.stApp [data-testid="stFileUploader"] {
|
| 231 |
+
background: var(--ah-surface) !important;
|
| 232 |
+
border: 1px solid var(--ah-border) !important;
|
| 233 |
+
border-radius: 6px !important;
|
| 234 |
+
color: var(--ah-text) !important;
|
| 235 |
+
}
|
| 236 |
+
|
| 237 |
+
.gradio-container input[type="file"]::file-selector-button {
|
| 238 |
+
background: var(--ah-amber-dim) !important;
|
| 239 |
+
color: var(--ah-amber) !important;
|
| 240 |
+
border: 1px solid rgba(193, 127, 58, 0.2) !important;
|
| 241 |
+
border-radius: 4px !important;
|
| 242 |
+
padding: 6px 12px !important;
|
| 243 |
+
margin-right: 12px !important;
|
| 244 |
+
font-family: 'DM Mono', monospace !important;
|
| 245 |
+
font-size: 0.78rem !important;
|
| 246 |
+
cursor: pointer !important;
|
| 247 |
+
}
|
| 248 |
+
|
| 249 |
+
/* -------- Markdown + text blocks -------- */
|
| 250 |
+
.gradio-container .markdown,
|
| 251 |
+
.gradio-container .gr-markdown,
|
| 252 |
+
.gradio-container .prose,
|
| 253 |
+
.stApp [data-testid="stMarkdownContainer"] {
|
| 254 |
+
color: var(--ah-text) !important;
|
| 255 |
+
font-family: 'DM Sans', sans-serif !important;
|
| 256 |
+
line-height: 1.6 !important;
|
| 257 |
+
}
|
| 258 |
+
|
| 259 |
+
.gradio-container .markdown a,
|
| 260 |
+
.gradio-container .gr-markdown a,
|
| 261 |
+
.stApp [data-testid="stMarkdownContainer"] a {
|
| 262 |
+
color: var(--ah-amber) !important;
|
| 263 |
+
}
|
| 264 |
+
|
| 265 |
+
.gradio-container code,
|
| 266 |
+
.stApp code {
|
| 267 |
+
background: var(--ah-surface) !important;
|
| 268 |
+
color: var(--ah-amber) !important;
|
| 269 |
+
font-family: 'DM Mono', monospace !important;
|
| 270 |
+
padding: 2px 6px !important;
|
| 271 |
+
border-radius: 3px !important;
|
| 272 |
+
}
|
| 273 |
+
|
| 274 |
+
/* -------- Output panels -------- */
|
| 275 |
+
.gradio-container .output-class,
|
| 276 |
+
.gradio-container .output-image,
|
| 277 |
+
.gradio-container .output-text {
|
| 278 |
+
background: var(--ah-surface) !important;
|
| 279 |
+
border: 1px solid var(--ah-border) !important;
|
| 280 |
+
border-radius: 6px !important;
|
| 281 |
+
color: var(--ah-text) !important;
|
| 282 |
+
}
|
| 283 |
+
|
| 284 |
+
/* -------- Streamlit-specific tweaks -------- */
|
| 285 |
+
.stApp header[data-testid="stHeader"] {
|
| 286 |
+
background: var(--ah-bg) !important;
|
| 287 |
+
border-bottom: 1px solid var(--ah-border) !important;
|
| 288 |
+
}
|
| 289 |
+
|
| 290 |
+
.stApp [data-testid="stSidebar"] {
|
| 291 |
+
background: var(--ah-bg-raised) !important;
|
| 292 |
+
border-right: 1px solid var(--ah-border) !important;
|
| 293 |
+
}
|
| 294 |
+
|
| 295 |
+
/* -------- Scrollbars -------- */
|
| 296 |
+
::-webkit-scrollbar {
|
| 297 |
+
width: 8px;
|
| 298 |
+
height: 8px;
|
| 299 |
+
}
|
| 300 |
+
::-webkit-scrollbar-track {
|
| 301 |
+
background: var(--ah-bg);
|
| 302 |
+
}
|
| 303 |
+
::-webkit-scrollbar-thumb {
|
| 304 |
+
background: rgba(193, 127, 58, 0.3);
|
| 305 |
+
border-radius: 4px;
|
| 306 |
+
}
|
| 307 |
+
::-webkit-scrollbar-thumb:hover {
|
| 308 |
+
background: rgba(193, 127, 58, 0.5);
|
| 309 |
+
}
|