Fix dark mode and bring the public design in line with the taste audit
- Dark mode: the countdown card, timeline section, Giving text, error text, the Leadership button, skeletons and the admin's dark text all follow the tokens; logos get a light plate in dark mode - One BRAND accent (the button token, so the admin palette reaches every page) and one ACCENTS family in color.ts, replacing 20 local teal constants and the purple, ochre and rust section colours; neon green and gold become mint and brand green - Shadows are tinted with the site's ink; glow shadows are gone - One giving label, Give, in the nav, footer and Giving page - Phosphor icons replace the hand-drawn SVGs and the glyph icons; Pathfinder paths pick a named icon (emoji still shown) and lose the watermark - Home keeps two eyebrows; StatsBand's title is a real heading; section headings step down under the page title - Nav links switch to the menu below lg, so they never wrap; jump links land clear of the header; press feedback on buttons - Empty sections say what's coming and who to ask; loading is a skeleton; form placeholders and borders are readable; one corner-radius rule; theme-color for both modes Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
f72a9604d2
commit
048c7599ce
59 changed files with 416 additions and 350 deletions
|
|
@ -15,13 +15,13 @@
|
|||
need an email, since the answer has to go somewhere.
|
||||
═══════════════════════════════════════════════════════════════ */
|
||||
|
||||
import { CaretDown } from '@phosphor-icons/react';
|
||||
import { useState } from "react";
|
||||
import { post, ApiError } from "../../lib/api.ts";
|
||||
import { PAGE_LINKS, PAGE_SECTIONS } from "../../navConfig.ts";
|
||||
import { DATA_REQUEST, FEEDBACK_TYPES } from "../../data/feedbackTypes.ts";
|
||||
import { accentText } from '../../lib/color.ts'
|
||||
import { accentText, BRAND } from '../../lib/color.ts'
|
||||
|
||||
const ACCENT = "#0f7183";
|
||||
const MUTED = "var(--color-muted)";
|
||||
const MAX_CHARS = 1500;
|
||||
const MIN_MESSAGE = 10; // matches the server
|
||||
|
|
@ -35,8 +35,8 @@ const WHOLE_PAGE = "";
|
|||
/* ── Shared field chrome ─────────────────────────────────────── */
|
||||
|
||||
const fieldClass =
|
||||
"w-full rounded-xl border border-muted/25 bg-surface px-4 py-3 text-body " +
|
||||
"placeholder:text-muted/50 outline-none transition-colors " +
|
||||
"w-full rounded-xl border border-muted/50 bg-surface px-4 py-3 text-body " +
|
||||
"placeholder:text-muted outline-none transition-colors " +
|
||||
"focus:border-brand focus:ring-2 focus:ring-brand/25";
|
||||
|
||||
const errorFieldClass = "border-danger focus:border-danger focus:ring-danger/20";
|
||||
|
|
@ -76,21 +76,7 @@ function Select({ id, label, value, onChange, children }) {
|
|||
>
|
||||
{children}
|
||||
</select>
|
||||
<svg
|
||||
aria-hidden="true"
|
||||
viewBox="0 0 20 20"
|
||||
fill="none"
|
||||
className="pointer-events-none absolute right-4 top-1/2 h-4 w-4 -translate-y-1/2"
|
||||
style={{ color: MUTED }}
|
||||
>
|
||||
<path
|
||||
d="M5 8l5 5 5-5"
|
||||
stroke="currentColor"
|
||||
strokeWidth="2"
|
||||
strokeLinecap="round"
|
||||
strokeLinejoin="round"
|
||||
/>
|
||||
</svg>
|
||||
<CaretDown aria-hidden="true" weight="bold" className="pointer-events-none absolute right-4 top-1/2 h-4 w-4 -translate-y-1/2" style={{ color: MUTED }} />
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
|
|
@ -297,7 +283,7 @@ export default function FeedbackForm({ fixedType }: { fixedType?: string } = {})
|
|||
aria-live="polite"
|
||||
className="rounded-2xl border border-brand/20 bg-surface p-8 sm:p-10"
|
||||
>
|
||||
<h3 className="text-2xl font-bold" style={{ color: accentText(ACCENT) }}>
|
||||
<h3 className="text-2xl font-bold" style={{ color: accentText(BRAND) }}>
|
||||
Thanks, we've got it
|
||||
</h3>
|
||||
{where && (
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue