diff --git a/static/app.js b/static/app.js index 99a02e9..3bd7c77 100644 --- a/static/app.js +++ b/static/app.js @@ -319,12 +319,12 @@ function scrollTableToToday(host, today, hasFc) { // Tier css class -> literal color (mirrors style.css; needed because the chart is // rasterized to PNG, where CSS variables aren't available). const TIER_COLORS = { - "rec-hot": "#8f0e20", "very-hot": "#dd6b52", "hot": "#ef9351", "warm": "#f6c18a", - "normal": "#4a9d5b", - "cool": "#92c5de", "cold": "#4393c3", "very-cold": "#2166ac", "rec-cold": "#0a2f6b", - "dry": "#c9a24a", - "wet-1": "#d9f0d3", "wet-2": "#b7e2b1", "wet-3": "#8fd18f", "wet-4": "#5cba9f", "wet-5": "#35a1c0", - "wet-6": "#2b8cbe", "wet-7": "#226bb3", "wet-8": "#164a97", "wet-9": "#08306b", + "rec-hot": "#7d1a49", "very-hot": "#db2777", "hot": "#f472b6", "warm": "#f9a8d4", + "normal": "#f0dce8", + "cool": "#cbb6f7", "cold": "#9b6ef0", "very-cold": "#6d28d9", "rec-cold": "#3b0764", + "dry": "#cbb26a", + "wet-1": "#f3e8ff", "wet-2": "#e9d5ff", "wet-3": "#d8b4fe", "wet-4": "#c084fc", "wet-5": "#a855f7", + "wet-6": "#9333ea", "wet-7": "#7e22ce", "wet-8": "#6b21a8", "wet-9": "#4c1d95", }; // Percentile grade scale, low -> high. Names are deliberately *relative* to each @@ -370,18 +370,18 @@ function chartPalette() { const css = getComputedStyle(document.documentElement); const v = (name, f) => (css.getPropertyValue(name).trim() || f); const dark = matchMedia("(prefers-color-scheme: dark)").matches; - const hi = v("--very-hot", "#dd6b52"); // daily-high series = warm tier red - const lo = v("--cold", "#4393c3"); // daily-low series = cool tier blue + const hi = v("--very-hot", "#db2777"); // daily-high series = warm tier magenta + const lo = v("--cold", "#9b6ef0"); // daily-low series = cool tier violet return { surface: v("--surface-2", dark ? "#1e242c" : "#eef1f5"), ink: v("--text", dark ? "#e7ecf2" : "#1a2029"), muted: v("--muted", dark ? "#9aa6b2" : "#5b6673"), grid: v("--border", dark ? "#2a323c" : "#dde3ea"), - accent: v("--accent", "#f0803c"), + accent: v("--accent", "#ec4899"), hi, lo, // Distinct line/point accents for the three added series; the graded fan // behind them still uses the shared diverging tier colors (same as temps). - feels: v("--accent", "#f0803c"), // "feels like" = orange accent + feels: v("--accent", "#ec4899"), // "feels like" = magenta accent humid: "#2ea9bf", // humidity = cyan wind: "#5aa9a3", // wind speed = teal gust: "#8f86d8", // wind gust = periwinkle @@ -633,11 +633,11 @@ function precipChart(days, n, xFor, C) { // "Days since last rain" dry-streak color: rain days are blue; each dry day warms // from a light base toward dark red, saturating at 14 consecutive dry days. // (Mirrors the calendar's dry-streak ramp.) -const DRY_BASE = [247, 217, 176], DRY_MAX = [122, 13, 26], DRY_CAP = 14; +const DRY_BASE = [247, 214, 226], DRY_MAX = [125, 26, 73], DRY_CAP = 14; const lerpRgb = (a, b, t) => `rgb(${a.map((x, i) => Math.round(x + (b[i] - x) * t)).join(",")})`; function drynessColor(dsr) { if (dsr == null) return ""; - if (dsr === 0) return "#2b7bba"; // measurable rain that day + if (dsr === 0) return "#6d28d9"; // measurable rain that day return lerpRgb(DRY_BASE, DRY_MAX, Math.min(dsr, DRY_CAP) / DRY_CAP); } diff --git a/static/calendar.js b/static/calendar.js index 1d7f69b..5a47d30 100644 --- a/static/calendar.js +++ b/static/calendar.js @@ -4,26 +4,26 @@ // intentionally re-declares the small shared tier constants so it stays independent // of app.js (the map page). -// 9-step diverging temperature scale (cold navy -> green -> hot red). +// 9-step diverging temperature scale ("Orchid Sunset": violet -> blush -> magenta). const TIER_COLORS = { - "rec-hot": "#8f0e20", "very-hot": "#dd6b52", "hot": "#ef9351", "warm": "#f6c18a", - "normal": "#4a9d5b", - "cool": "#92c5de", "cold": "#4393c3", "very-cold": "#2166ac", "rec-cold": "#0a2f6b", + "rec-hot": "#7d1a49", "very-hot": "#db2777", "hot": "#f472b6", "warm": "#f9a8d4", + "normal": "#f0dce8", + "cool": "#cbb6f7", "cold": "#9b6ef0", "very-cold": "#6d28d9", "rec-cold": "#3b0764", }; -// 9-step rain-intensity ramp (rain-day percentile): light green -> teal -> dark navy. +// 9-step rain-intensity ramp (rain-day percentile): light lilac -> orchid -> deep violet. const PRECIP_COLORS = { - "wet-1": "#d9f0d3", "wet-2": "#b7e2b1", "wet-3": "#8fd18f", "wet-4": "#5cba9f", "wet-5": "#35a1c0", - "wet-6": "#2b8cbe", "wet-7": "#226bb3", "wet-8": "#164a97", "wet-9": "#08306b", + "wet-1": "#f3e8ff", "wet-2": "#e9d5ff", "wet-3": "#d8b4fe", "wet-4": "#c084fc", "wet-5": "#a855f7", + "wet-6": "#9333ea", "wet-7": "#7e22ce", "wet-8": "#6b21a8", "wet-9": "#4c1d95", }; // "Days since last rain" dry-streak color: rain days are blue; each dry day warms // from a light base toward dark red, saturating at 14 consecutive dry days. -const DRY_BASE = [247, 217, 176], DRY_MAX = [122, 13, 26], DRY_CAP = 14; +const DRY_BASE = [247, 214, 226], DRY_MAX = [125, 26, 73], DRY_CAP = 14; const lerpRgb = (a, b, t) => `rgb(${a.map((x, i) => Math.round(x + (b[i] - x) * t)).join(",")})`; function drynessColor(dsr) { if (dsr == null) return ""; - if (dsr === 0) return "#2b7bba"; // measurable rain that day + if (dsr === 0) return "#6d28d9"; // measurable rain that day return lerpRgb(DRY_BASE, DRY_MAX, Math.min(dsr, DRY_CAP) / DRY_CAP); } // low -> high percentile scale, per metric (temp vs precip use different classes) diff --git a/static/day.js b/static/day.js index 920c8b8..006488f 100644 --- a/static/day.js +++ b/static/day.js @@ -6,15 +6,15 @@ // so the page stays independent of app.js. const TIER_COLORS = { - "rec-hot": "#8f0e20", "very-hot": "#dd6b52", "hot": "#ef9351", "warm": "#f6c18a", - "normal": "#4a9d5b", - "cool": "#92c5de", "cold": "#4393c3", "very-cold": "#2166ac", "rec-cold": "#0a2f6b", + "rec-hot": "#7d1a49", "very-hot": "#db2777", "hot": "#f472b6", "warm": "#f9a8d4", + "normal": "#f0dce8", + "cool": "#cbb6f7", "cold": "#9b6ef0", "very-cold": "#6d28d9", "rec-cold": "#3b0764", }; const PRECIP_COLORS = { - "wet-1": "#d9f0d3", "wet-2": "#b7e2b1", "wet-3": "#8fd18f", "wet-4": "#5cba9f", "wet-5": "#35a1c0", - "wet-6": "#2b8cbe", "wet-7": "#226bb3", "wet-8": "#164a97", "wet-9": "#08306b", + "wet-1": "#f3e8ff", "wet-2": "#e9d5ff", "wet-3": "#d8b4fe", "wet-4": "#c084fc", "wet-5": "#a855f7", + "wet-6": "#9333ea", "wet-7": "#7e22ce", "wet-8": "#6b21a8", "wet-9": "#4c1d95", }; -const DRY_COLOR = "#c9a24a"; +const DRY_COLOR = "#cbb26a"; const fmtTemp = (v) => (v == null ? "—" : `${Math.round(v)}°`); const fmtPrecip = (v) => (v == null ? "—" : `${v.toFixed(2)}"`); diff --git a/static/style.css b/static/style.css index cc8ebfe..59c2062 100644 --- a/static/style.css +++ b/static/style.css @@ -5,31 +5,32 @@ --border: #2a323c; --text: #e7ecf2; --muted: #9aa6b2; - --accent: #f0803c; + --accent: #ec4899; - /* temperature grades: 9-step diverging cold -> green -> hot (colorblind-safe). - rec-* are the "Near Record" danger tiers — deliberately dark/saturated. */ - --rec-cold: #0a2f6b; - --very-cold: #2166ac; - --cold: #4393c3; - --cool: #92c5de; - --normal: #4a9d5b; /* middle of the diverging temp scale = green */ - --warm: #f6c18a; - --hot: #ef9351; - --very-hot: #dd6b52; - --rec-hot: #8f0e20; + /* temperature grades: 9-step diverging cold -> neutral -> hot ("Orchid Sunset"). + Cool end = violet/lavender, warm end = rose/magenta; rec-* are the "Near Record" + danger tiers — deliberately dark/saturated. */ + --rec-cold: #3b0764; + --very-cold: #6d28d9; + --cold: #9b6ef0; + --cool: #cbb6f7; + --normal: #f0dce8; /* middle of the diverging temp scale = soft blush (see light-theme override) */ + --warm: #f9a8d4; + --hot: #f472b6; + --very-hot: #db2777; + --rec-hot: #7d1a49; - /* precipitation: "dry" + 9 rain-intensity tiers, light green -> teal -> dark navy */ - --dry: #c9a24a; - --wet-1: #d9f0d3; - --wet-2: #b7e2b1; - --wet-3: #8fd18f; - --wet-4: #5cba9f; - --wet-5: #35a1c0; /* middle of the rain scale */ - --wet-6: #2b8cbe; - --wet-7: #226bb3; - --wet-8: #164a97; - --wet-9: #08306b; + /* precipitation: "dry" + 9 rain-intensity tiers, light lilac -> orchid -> deep violet */ + --dry: #cbb26a; + --wet-1: #f3e8ff; + --wet-2: #e9d5ff; + --wet-3: #d8b4fe; + --wet-4: #c084fc; + --wet-5: #a855f7; /* middle of the rain scale */ + --wet-6: #9333ea; + --wet-7: #7e22ce; + --wet-8: #6b21a8; + --wet-9: #4c1d95; } @media (prefers-color-scheme: light) { @@ -40,6 +41,11 @@ --border: #dde3ea; --text: #1a2029; --muted: #5b6673; + /* The soft-blush middle tiers vanish on a white surface — darken them just + enough to stay legible as swatches, cell fills, and grade text. */ + --normal: #c05a8a; + --warm: #ef7fbe; + --cool: #a98bf0; } } @@ -161,12 +167,12 @@ main { max-width: 1200px; margin: 0 auto; padding: 20px 24px 60px; } display: flex; align-items: center; gap: 13px; width: 100%; margin: 0 0 20px; padding: 14px 16px; min-height: 60px; border: none; border-radius: 13px; text-decoration: none; - color: #1a1206; background: linear-gradient(135deg, #f79556, #ea722c); - box-shadow: 0 4px 16px rgba(240, 128, 60, .3); + color: #2a0716; background: linear-gradient(135deg, #f472b6, #db2777); + box-shadow: 0 4px 16px rgba(219, 39, 119, .3); transition: transform .12s ease, box-shadow .12s ease, filter .12s ease; } -.cta-cal:hover { transform: translateY(-1px); box-shadow: 0 7px 22px rgba(240, 128, 60, .42); filter: brightness(1.04); } -.cta-cal:active { transform: translateY(0); box-shadow: 0 3px 10px rgba(240, 128, 60, .34); } +.cta-cal:hover { transform: translateY(-1px); box-shadow: 0 7px 22px rgba(219, 39, 119, .42); filter: brightness(1.04); } +.cta-cal:active { transform: translateY(0); box-shadow: 0 3px 10px rgba(219, 39, 119, .34); } .cta-cal:focus-visible { outline: 3px solid var(--text); outline-offset: 2px; } .cta-cal-icon { font-size: 26px; line-height: 1; flex-shrink: 0; } .cta-cal-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; } @@ -194,7 +200,7 @@ main { max-width: 1200px; margin: 0 auto; padding: 20px 24px 60px; } .chart-toggle button.active[data-metric="wind"] { background: #5aa9a3; color: #08201e; } .chart-toggle button.active[data-metric="gust"] { background: #8f86d8; color: #100c26; } .chart-toggle button.active[data-metric="precip"] { background: var(--wet-6); color: #fff; } -.chart-toggle button.active[data-metric="dry"] { background: #c9a24a; color: #241a04; } +.chart-toggle button.active[data-metric="dry"] { background: #cbb26a; color: #241a04; } .chart-legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12px; color: var(--muted); margin-bottom: 8px; }