ui: weave purples back into the palette
Cobb course-corrected — wants more purple. Palette now: Greens forest #1f2d1f, panel #2d3a2a, swamp #3a4a35, meadow #6b8e5a/#88a87a Purples deep #2a1f3a, amethyst #4a2d5e, heather #6b4a8a, light #9b78c4 Cream #f0e6cc text, #ddd4ba lede, #c9b27c warn Where purples land: - h1 in heather (was meadow); h2 stays meadow for hierarchy - Background a subtle linear-gradient toward #251f30 in the lower right - Panel left-border accent in heather - Links default to light heather; underline in deep amethyst - kv dt labels in heather small-caps for the magic-grimoire feel - Code blocks on deep purple bg - Form input focus ring in light heather - New .btn-purple variant for primary purple actions - HR uses a gradient image-border heather→swamp→fade - Brand tagline in heather italic small-caps Greens still own structure (panels, body bg base, secondary headers, buttons primary action). Purples are the magic.
This commit is contained in:
parent
b18ab1103d
commit
ede799f94e
1 changed files with 32 additions and 20 deletions
|
|
@ -248,34 +248,46 @@ def create_app() -> Flask:
|
|||
|
||||
|
||||
_PALETTE_CSS = """
|
||||
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600&display=swap');
|
||||
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600;700&display=swap');
|
||||
/*
|
||||
Palette — forest base + aged-purple magic accents.
|
||||
Greens : #1f2d1f bg, #2d3a2a panel, #3a4a35 swamp, #6b8e5a/#88a87a meadow
|
||||
Purples : #2a1f3a deep, #4a2d5e amethyst, #6b4a8a heather, #9b78c4 light
|
||||
Cream : #f0e6cc text, #ddd4ba lede, #c9b27c warn
|
||||
*/
|
||||
* { box-sizing: border-box; }
|
||||
body { font-family: system-ui, -apple-system, sans-serif; background: #1f2d1f; color: #f0e6cc; max-width: 720px; margin: 0 auto; padding: 3em 1.5em; line-height: 1.65; }
|
||||
h1, h2 { font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 500; color: #88a87a; margin: 0 0 .2em 0; letter-spacing: 0.01em; }
|
||||
h1 { font-size: 2.6em; }
|
||||
h2 { font-size: 1.6em; color: #6b8e5a; margin-top: 1.6em; }
|
||||
.lede { color: #ddd4ba; font-size: 1.05em; }
|
||||
a { color: #88a87a; text-decoration: none; border-bottom: 1px dotted #4d5d3a; }
|
||||
a:hover { color: #ddd4ba; border-bottom-color: #88a87a; }
|
||||
.panel { background: #2d3a2a; border: 1px solid #3a4a35; padding: 1.2em 1.4em; margin: 1.4em 0; border-radius: 3px; }
|
||||
body {
|
||||
font-family: system-ui, -apple-system, sans-serif;
|
||||
background: linear-gradient(160deg, #1f2d1f 0%, #1f2d1f 60%, #251f30 100%);
|
||||
color: #f0e6cc; max-width: 720px; margin: 0 auto; padding: 3em 1.5em; line-height: 1.65;
|
||||
min-height: 100vh;
|
||||
}
|
||||
h1 { font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 600; color: #9b78c4; margin: 0 0 .2em 0; letter-spacing: 0.01em; font-size: 2.7em; text-shadow: 0 1px 0 rgba(0,0,0,.3); }
|
||||
h2 { font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 500; color: #88a87a; margin: 1.6em 0 .2em 0; font-size: 1.6em; letter-spacing: 0.02em; }
|
||||
.lede { color: #ddd4ba; font-size: 1.05em; font-style: italic; }
|
||||
a { color: #9b78c4; text-decoration: none; border-bottom: 1px dotted #4a2d5e; }
|
||||
a:hover { color: #ddd4ba; border-bottom-color: #6b4a8a; }
|
||||
.panel { background: #2d3a2a; border: 1px solid #3a4a35; border-left: 3px solid #6b4a8a; padding: 1.2em 1.4em; margin: 1.4em 0; border-radius: 3px; }
|
||||
.panel-row { display: flex; justify-content: space-between; align-items: baseline; gap: 1em; }
|
||||
.muted { color: #6b8e5a; font-size: .9em; }
|
||||
.kv { display: grid; grid-template-columns: max-content 1fr; gap: .4em 1em; margin: .8em 0; }
|
||||
.kv dt { color: #6b8e5a; font-size: .9em; }
|
||||
.kv dt { color: #6b4a8a; font-size: .9em; font-variant: small-caps; letter-spacing: .05em; }
|
||||
.kv dd { margin: 0; color: #f0e6cc; font-family: ui-monospace, Menlo, monospace; font-size: .92em; word-break: break-all; }
|
||||
.btn { display: inline-block; padding: .55em 1.3em; background: #6b8e5a; color: #1f2d1f !important; border: none; font-weight: 600; cursor: pointer; font-size: .95em; border-bottom: none; }
|
||||
.btn { display: inline-block; padding: .55em 1.3em; background: #6b8e5a; color: #1f2d1f !important; border: none; font-weight: 600; cursor: pointer; font-size: .95em; border-bottom: none; border-radius: 2px; }
|
||||
.btn:hover { background: #88a87a; color: #1f2d1f !important; }
|
||||
.btn-secondary { background: transparent; color: #88a87a !important; border: 1px solid #4d5d3a; }
|
||||
.btn-secondary:hover { background: #2d3a2a; color: #ddd4ba !important; border-color: #88a87a; }
|
||||
.btn-purple { background: #6b4a8a; color: #f0e6cc !important; }
|
||||
.btn-purple:hover { background: #8a64a8; color: #f0e6cc !important; }
|
||||
.btn-secondary { background: transparent; color: #9b78c4 !important; border: 1px solid #4a2d5e; }
|
||||
.btn-secondary:hover { background: #2a1f3a; color: #ddd4ba !important; border-color: #6b4a8a; }
|
||||
.btn-row { display: flex; gap: .8em; flex-wrap: wrap; align-items: center; }
|
||||
input[type=text] { width: 100%; padding: .65em; background: #2d3a2a; border: 1px solid #4d5d3a; color: #f0e6cc; font-family: ui-monospace, Menlo, monospace; font-size: .92em; }
|
||||
input[type=text]:focus { outline: none; border-color: #88a87a; }
|
||||
input[type=text] { width: 100%; padding: .65em; background: #2d3a2a; border: 1px solid #4d5d3a; color: #f0e6cc; font-family: ui-monospace, Menlo, monospace; font-size: .92em; border-radius: 2px; }
|
||||
input[type=text]:focus { outline: none; border-color: #9b78c4; box-shadow: 0 0 0 2px rgba(155, 120, 196, .15); }
|
||||
ol li, ul li { margin: .4em 0; }
|
||||
code { background: #1f2d1f; padding: .1em .45em; border: 1px solid #3a4a35; font-family: ui-monospace, Menlo, monospace; font-size: .9em; }
|
||||
.status-ok { color: #88a87a; }
|
||||
.status-warn { color: #c9b27c; }
|
||||
.brand { color: #6b8e5a; font-family: 'Cormorant Garamond', serif; font-size: .95em; letter-spacing: .15em; text-transform: uppercase; margin-bottom: .2em; }
|
||||
hr { border: none; border-top: 1px solid #3a4a35; margin: 2em 0; }
|
||||
code { background: #2a1f3a; padding: .1em .45em; border: 1px solid #4a2d5e; color: #ddd4ba; font-family: ui-monospace, Menlo, monospace; font-size: .9em; border-radius: 2px; }
|
||||
.status-ok { color: #88a87a; font-variant: small-caps; letter-spacing: .08em; }
|
||||
.status-warn { color: #c9b27c; font-variant: small-caps; letter-spacing: .08em; }
|
||||
.brand { color: #9b78c4; font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 1.05em; letter-spacing: .25em; text-transform: uppercase; margin-bottom: .2em; }
|
||||
hr { border: none; border-top: 1px solid; border-image: linear-gradient(90deg, transparent, #4a2d5e, #3a4a35, transparent) 1; margin: 2em 0; }
|
||||
"""
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue