Spaces:
Sleeping
Add flat cream accent palette with purple text/icons
Browse filesLayer a minimalist flat single-tone cream accent (#EFD2A0) onto the
Indigo Dusk purple base: hero card, primary/download/PO-search buttons,
and active step circle + progress bar. No gradients, no glow auras
(removed golden box-shadows, the active-step pulse glow, and the hero
decorative blobs/dot pattern).
Cream-surface text and icons are purple (#4A3D78). A scoped rule
re-asserts purple on cream-button labels so they beat the global
stMarkdownContainer light-text rule (which had left the PO-search
check_circle icon and the generate-button text white). Swap the
multicolor sparkle emoji on the generate button for a monochrome
:material/auto_awesome: glyph that takes the purple. Update note.md
theme line.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
- note.md +5 -3
- streamlit_app.py +43 -38
|
@@ -15,9 +15,11 @@ vendor name, job title, etc., then renders a downloadable document.
|
|
| 15 |
- **Live deployment:** Hugging Face Space **`Menixis/auto-form`** (private).
|
| 16 |
URL: https://huggingface.co/spaces/Menixis/auto-form
|
| 17 |
- **SDK:** Docker (see `Dockerfile`), Streamlit on **port 7860** (HF convention).
|
| 18 |
-
- **Theme:** "Indigo Dusk" dark theme (deep indigo-purple bg, panel-purple cards
|
| 19 |
-
|
| 20 |
-
|
|
|
|
|
|
|
| 21 |
β no data-source bar and no manual upload UI (the app does not tell users where the
|
| 22 |
data comes from).
|
| 23 |
|
|
|
|
| 15 |
- **Live deployment:** Hugging Face Space **`Menixis/auto-form`** (private).
|
| 16 |
URL: https://huggingface.co/spaces/Menixis/auto-form
|
| 17 |
- **SDK:** Docker (see `Dockerfile`), Streamlit on **port 7860** (HF convention).
|
| 18 |
+
- **Theme:** "Indigo Dusk" dark theme (deep indigo-purple bg, panel-purple cards) with a
|
| 19 |
+
flat single-tone cream accent (`#EFD2A0`) on the hero card, primary/download/PO-search
|
| 20 |
+
buttons and the active step β all with purple (`#4A3D78`) text/icons. Lavender is the
|
| 21 |
+
secondary accent, mint = success. Minimalist: flat accents, no glow auras. No sidebar.
|
| 22 |
+
Data loads silently
|
| 23 |
β no data-source bar and no manual upload UI (the app does not tell users where the
|
| 24 |
data comes from).
|
| 25 |
|
|
@@ -243,8 +243,8 @@ st.markdown("""
|
|
| 243 |
to { opacity: 1; transform: translateY(0); }
|
| 244 |
}
|
| 245 |
@keyframes pulse {
|
| 246 |
-
0%, 100% { box-shadow: 0 0 0 0 rgba(
|
| 247 |
-
50% { box-shadow: 0 0 0 7px rgba(
|
| 248 |
}
|
| 249 |
@keyframes blob {
|
| 250 |
0%, 100% { transform: translate(0, 0) scale(1); }
|
|
@@ -273,15 +273,13 @@ st.markdown("""
|
|
| 273 |
/* βββ HERO βββββββββββββββββββββββββββββββββββββββββββββββββββββ */
|
| 274 |
.hero {
|
| 275 |
position: relative;
|
| 276 |
-
background:
|
| 277 |
padding: 2.75rem 2.5rem;
|
| 278 |
border-radius: 24px;
|
| 279 |
-
color: #
|
| 280 |
margin-bottom: 2rem;
|
| 281 |
overflow: hidden;
|
| 282 |
-
box-shadow:
|
| 283 |
-
0 16px 36px -18px rgba(0, 0, 0, 0.5),
|
| 284 |
-
0 1px 3px rgba(0, 0, 0, 0.3);
|
| 285 |
animation: fadeInUp 0.6s ease;
|
| 286 |
}
|
| 287 |
.hero::before {
|
|
@@ -291,7 +289,7 @@ st.markdown("""
|
|
| 291 |
right: -80px;
|
| 292 |
width: 360px;
|
| 293 |
height: 360px;
|
| 294 |
-
|
| 295 |
border-radius: 50%;
|
| 296 |
animation: blob 14s ease-in-out infinite;
|
| 297 |
}
|
|
@@ -302,14 +300,14 @@ st.markdown("""
|
|
| 302 |
left: 30%;
|
| 303 |
width: 300px;
|
| 304 |
height: 300px;
|
| 305 |
-
|
| 306 |
border-radius: 50%;
|
| 307 |
animation: blob 18s ease-in-out infinite reverse;
|
| 308 |
}
|
| 309 |
.hero-pattern {
|
| 310 |
position: absolute;
|
| 311 |
inset: 0;
|
| 312 |
-
background-image:
|
| 313 |
background-size: 24px 24px;
|
| 314 |
opacity: 0.6;
|
| 315 |
pointer-events: none;
|
|
@@ -319,10 +317,10 @@ st.markdown("""
|
|
| 319 |
display: inline-flex;
|
| 320 |
align-items: center;
|
| 321 |
gap: 0.4rem;
|
| 322 |
-
background: rgba(
|
| 323 |
backdrop-filter: blur(10px);
|
| 324 |
-
border: 1px solid rgba(
|
| 325 |
-
color:
|
| 326 |
padding: 0.4rem 0.9rem;
|
| 327 |
border-radius: 999px;
|
| 328 |
font-size: 0.78rem;
|
|
@@ -332,7 +330,7 @@ st.markdown("""
|
|
| 332 |
text-transform: uppercase;
|
| 333 |
}
|
| 334 |
.hero .hero-title {
|
| 335 |
-
color: #
|
| 336 |
font-size: 2.75rem !important;
|
| 337 |
font-weight: 800 !important;
|
| 338 |
margin: 0 0 0.75rem 0 !important;
|
|
@@ -341,7 +339,7 @@ st.markdown("""
|
|
| 341 |
text-transform: uppercase !important;
|
| 342 |
}
|
| 343 |
.hero .hero-subtitle {
|
| 344 |
-
color: rgba(
|
| 345 |
font-size: 1.05rem !important;
|
| 346 |
font-weight: 400 !important;
|
| 347 |
max-width: 600px;
|
|
@@ -371,10 +369,10 @@ st.markdown("""
|
|
| 371 |
border: 2px solid rgba(255, 255, 255, 0.12);
|
| 372 |
}
|
| 373 |
.step-active .step-circle {
|
| 374 |
-
background:
|
| 375 |
-
color:
|
| 376 |
-
box-shadow:
|
| 377 |
-
animation:
|
| 378 |
}
|
| 379 |
.step-done .step-circle {
|
| 380 |
background: linear-gradient(135deg, #A8E6C6 0%, #5FB890 100%);
|
|
@@ -383,7 +381,7 @@ st.markdown("""
|
|
| 383 |
animation: stepPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
|
| 384 |
}
|
| 385 |
.step-label { font-size: 0.85rem; font-weight: 500; color: #8E86AC; white-space: nowrap; }
|
| 386 |
-
.step-active .step-label { color: #
|
| 387 |
.step-done .step-label { color: #7FD4A8; font-weight: 600; }
|
| 388 |
|
| 389 |
.step-bar {
|
|
@@ -394,17 +392,15 @@ st.markdown("""
|
|
| 394 |
}
|
| 395 |
.step-bar-fill {
|
| 396 |
position: absolute; inset: 0;
|
| 397 |
-
background:
|
| 398 |
transform-origin: left;
|
| 399 |
transition: transform 0.5s ease;
|
| 400 |
}
|
| 401 |
.step-bar-fill.empty { transform: scaleX(0); }
|
| 402 |
.step-bar-fill.full {
|
| 403 |
transform: scaleX(1);
|
| 404 |
-
background:
|
| 405 |
-
|
| 406 |
-
animation: growX 0.6s cubic-bezier(0.65, 0, 0.35, 1) 0.1s both,
|
| 407 |
-
barFlow 2.8s linear infinite;
|
| 408 |
}
|
| 409 |
|
| 410 |
/* βββ CARDS ββββββββββββββββββββββββββββββββββββββββββββββββββββ */
|
|
@@ -485,11 +481,10 @@ st.markdown("""
|
|
| 485 |
|
| 486 |
/* βββ BUTTONS ββββββββββββββββββββββββββββββββββββββββββββββββββ */
|
| 487 |
.stButton button[kind="primary"] {
|
| 488 |
-
background:
|
| 489 |
-
background-size: 200% 200% !important;
|
| 490 |
border: none !important;
|
| 491 |
-
color:
|
| 492 |
-
box-shadow:
|
| 493 |
font-weight: 700 !important;
|
| 494 |
height: 3.25rem !important;
|
| 495 |
font-size: 1.05rem !important;
|
|
@@ -497,9 +492,9 @@ st.markdown("""
|
|
| 497 |
border-radius: 12px !important;
|
| 498 |
}
|
| 499 |
.stButton button[kind="primary"]:hover {
|
| 500 |
-
transform: translateY(-
|
| 501 |
-
box-shadow:
|
| 502 |
-
background
|
| 503 |
}
|
| 504 |
.stButton button[kind="secondary"] {
|
| 505 |
background: rgba(123, 107, 184, 0.08) !important;
|
|
@@ -528,10 +523,10 @@ st.markdown("""
|
|
| 528 |
height: 3rem !important;
|
| 529 |
}
|
| 530 |
.stDownloadButton button {
|
| 531 |
-
background:
|
| 532 |
-
color:
|
| 533 |
border: none !important;
|
| 534 |
-
box-shadow:
|
| 535 |
font-weight: 700 !important;
|
| 536 |
height: 3.25rem !important;
|
| 537 |
font-size: 1.05rem !important;
|
|
@@ -539,8 +534,18 @@ st.markdown("""
|
|
| 539 |
transition: all 0.3s ease !important;
|
| 540 |
}
|
| 541 |
.stDownloadButton button:hover {
|
| 542 |
-
transform: translateY(-
|
| 543 |
-
box-shadow:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 544 |
}
|
| 545 |
|
| 546 |
/* βββ INPUTS β bulletproof dark styling ββββββββββββββββββββββββ */
|
|
@@ -1167,7 +1172,7 @@ with right_col:
|
|
| 1167 |
|
| 1168 |
st.markdown("<div style='height: 0.75rem;'></div>", unsafe_allow_html=True)
|
| 1169 |
|
| 1170 |
-
generate_clicked = st.button("
|
| 1171 |
type="primary",
|
| 1172 |
use_container_width=True,
|
| 1173 |
disabled=not step1_done)
|
|
|
|
| 243 |
to { opacity: 1; transform: translateY(0); }
|
| 244 |
}
|
| 245 |
@keyframes pulse {
|
| 246 |
+
0%, 100% { box-shadow: 0 0 0 0 rgba(227, 184, 113, 0.4); }
|
| 247 |
+
50% { box-shadow: 0 0 0 7px rgba(227, 184, 113, 0); }
|
| 248 |
}
|
| 249 |
@keyframes blob {
|
| 250 |
0%, 100% { transform: translate(0, 0) scale(1); }
|
|
|
|
| 273 |
/* βββ HERO βββββββββββββββββββββββββββββββββββββββββββββββββββββ */
|
| 274 |
.hero {
|
| 275 |
position: relative;
|
| 276 |
+
background: #EFD2A0;
|
| 277 |
padding: 2.75rem 2.5rem;
|
| 278 |
border-radius: 24px;
|
| 279 |
+
color: #4A3D78;
|
| 280 |
margin-bottom: 2rem;
|
| 281 |
overflow: hidden;
|
| 282 |
+
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.10);
|
|
|
|
|
|
|
| 283 |
animation: fadeInUp 0.6s ease;
|
| 284 |
}
|
| 285 |
.hero::before {
|
|
|
|
| 289 |
right: -80px;
|
| 290 |
width: 360px;
|
| 291 |
height: 360px;
|
| 292 |
+
display: none;
|
| 293 |
border-radius: 50%;
|
| 294 |
animation: blob 14s ease-in-out infinite;
|
| 295 |
}
|
|
|
|
| 300 |
left: 30%;
|
| 301 |
width: 300px;
|
| 302 |
height: 300px;
|
| 303 |
+
display: none;
|
| 304 |
border-radius: 50%;
|
| 305 |
animation: blob 18s ease-in-out infinite reverse;
|
| 306 |
}
|
| 307 |
.hero-pattern {
|
| 308 |
position: absolute;
|
| 309 |
inset: 0;
|
| 310 |
+
background-image: none;
|
| 311 |
background-size: 24px 24px;
|
| 312 |
opacity: 0.6;
|
| 313 |
pointer-events: none;
|
|
|
|
| 317 |
display: inline-flex;
|
| 318 |
align-items: center;
|
| 319 |
gap: 0.4rem;
|
| 320 |
+
background: rgba(50, 44, 82, 0.92);
|
| 321 |
backdrop-filter: blur(10px);
|
| 322 |
+
border: 1px solid rgba(50, 44, 82, 0.5);
|
| 323 |
+
color: #F5DEAC;
|
| 324 |
padding: 0.4rem 0.9rem;
|
| 325 |
border-radius: 999px;
|
| 326 |
font-size: 0.78rem;
|
|
|
|
| 330 |
text-transform: uppercase;
|
| 331 |
}
|
| 332 |
.hero .hero-title {
|
| 333 |
+
color: #4A3D78 !important;
|
| 334 |
font-size: 2.75rem !important;
|
| 335 |
font-weight: 800 !important;
|
| 336 |
margin: 0 0 0.75rem 0 !important;
|
|
|
|
| 339 |
text-transform: uppercase !important;
|
| 340 |
}
|
| 341 |
.hero .hero-subtitle {
|
| 342 |
+
color: rgba(74, 61, 120, 0.85) !important;
|
| 343 |
font-size: 1.05rem !important;
|
| 344 |
font-weight: 400 !important;
|
| 345 |
max-width: 600px;
|
|
|
|
| 369 |
border: 2px solid rgba(255, 255, 255, 0.12);
|
| 370 |
}
|
| 371 |
.step-active .step-circle {
|
| 372 |
+
background: #EFD2A0;
|
| 373 |
+
color: #4A3D78;
|
| 374 |
+
box-shadow: none;
|
| 375 |
+
animation: stepBreathe 2.6s ease-in-out infinite;
|
| 376 |
}
|
| 377 |
.step-done .step-circle {
|
| 378 |
background: linear-gradient(135deg, #A8E6C6 0%, #5FB890 100%);
|
|
|
|
| 381 |
animation: stepPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
|
| 382 |
}
|
| 383 |
.step-label { font-size: 0.85rem; font-weight: 500; color: #8E86AC; white-space: nowrap; }
|
| 384 |
+
.step-active .step-label { color: #EFD2A0; font-weight: 600; }
|
| 385 |
.step-done .step-label { color: #7FD4A8; font-weight: 600; }
|
| 386 |
|
| 387 |
.step-bar {
|
|
|
|
| 392 |
}
|
| 393 |
.step-bar-fill {
|
| 394 |
position: absolute; inset: 0;
|
| 395 |
+
background: #EFD2A0;
|
| 396 |
transform-origin: left;
|
| 397 |
transition: transform 0.5s ease;
|
| 398 |
}
|
| 399 |
.step-bar-fill.empty { transform: scaleX(0); }
|
| 400 |
.step-bar-fill.full {
|
| 401 |
transform: scaleX(1);
|
| 402 |
+
background: #EFD2A0;
|
| 403 |
+
animation: growX 0.6s cubic-bezier(0.65, 0, 0.35, 1) 0.1s both;
|
|
|
|
|
|
|
| 404 |
}
|
| 405 |
|
| 406 |
/* βββ CARDS ββββββββββββββββββββββββββββββββββββββββββββββββββββ */
|
|
|
|
| 481 |
|
| 482 |
/* βββ BUTTONS ββββββββββββββββββββββββββββββββββββββββββββββββββ */
|
| 483 |
.stButton button[kind="primary"] {
|
| 484 |
+
background: #EFD2A0 !important;
|
|
|
|
| 485 |
border: none !important;
|
| 486 |
+
color: #4A3D78 !important;
|
| 487 |
+
box-shadow: none !important;
|
| 488 |
font-weight: 700 !important;
|
| 489 |
height: 3.25rem !important;
|
| 490 |
font-size: 1.05rem !important;
|
|
|
|
| 492 |
border-radius: 12px !important;
|
| 493 |
}
|
| 494 |
.stButton button[kind="primary"]:hover {
|
| 495 |
+
transform: translateY(-1px);
|
| 496 |
+
box-shadow: none !important;
|
| 497 |
+
background: #E7C690 !important;
|
| 498 |
}
|
| 499 |
.stButton button[kind="secondary"] {
|
| 500 |
background: rgba(123, 107, 184, 0.08) !important;
|
|
|
|
| 523 |
height: 3rem !important;
|
| 524 |
}
|
| 525 |
.stDownloadButton button {
|
| 526 |
+
background: #EFD2A0 !important;
|
| 527 |
+
color: #4A3D78 !important;
|
| 528 |
border: none !important;
|
| 529 |
+
box-shadow: none !important;
|
| 530 |
font-weight: 700 !important;
|
| 531 |
height: 3.25rem !important;
|
| 532 |
font-size: 1.05rem !important;
|
|
|
|
| 534 |
transition: all 0.3s ease !important;
|
| 535 |
}
|
| 536 |
.stDownloadButton button:hover {
|
| 537 |
+
transform: translateY(-1px);
|
| 538 |
+
box-shadow: none !important;
|
| 539 |
+
background: #E7C690 !important;
|
| 540 |
+
}
|
| 541 |
+
/* Cream buttons render their label inside a stMarkdownContainer <p>, which the
|
| 542 |
+
global markdown rule forces to light text. Re-assert purple on the label text
|
| 543 |
+
and any Material-icon glyph so it stays readable on the cream surface. */
|
| 544 |
+
.stButton button[kind="primary"] [data-testid="stMarkdownContainer"] p,
|
| 545 |
+
.stButton button[kind="primary"] [data-testid="stMarkdownContainer"] span,
|
| 546 |
+
.stDownloadButton button [data-testid="stMarkdownContainer"] p,
|
| 547 |
+
.stDownloadButton button [data-testid="stMarkdownContainer"] span {
|
| 548 |
+
color: #4A3D78 !important;
|
| 549 |
}
|
| 550 |
|
| 551 |
/* βββ INPUTS β bulletproof dark styling ββββββββββββββββββββββββ */
|
|
|
|
| 1172 |
|
| 1173 |
st.markdown("<div style='height: 0.75rem;'></div>", unsafe_allow_html=True)
|
| 1174 |
|
| 1175 |
+
generate_clicked = st.button(":material/auto_awesome: ΰΈͺΰΈ£ΰΉΰΈ²ΰΈΰΉΰΈΰΈΰΈͺΰΈ²ΰΈ£",
|
| 1176 |
type="primary",
|
| 1177 |
use_container_width=True,
|
| 1178 |
disabled=not step1_done)
|