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
|
|
@ -35,6 +35,16 @@
|
|||
--color-tint-soft: #f6fbfc; /* hover rows, faint panels */
|
||||
--color-danger: #b3261e;
|
||||
--color-danger-tint: #fdf3f2;
|
||||
|
||||
/* Tailwind's shadows, tinted with the site's deep ink instead of
|
||||
black, so a card's shadow belongs to the page. */
|
||||
--shadow-2xs: 0 1px rgb(4 38 46 / 0.05);
|
||||
--shadow-xs: 0 1px 2px 0 rgb(4 38 46 / 0.05);
|
||||
--shadow-sm: 0 1px 3px 0 rgb(4 38 46 / 0.1), 0 1px 2px -1px rgb(4 38 46 / 0.1);
|
||||
--shadow-md: 0 4px 6px -1px rgb(4 38 46 / 0.1), 0 2px 4px -2px rgb(4 38 46 / 0.1);
|
||||
--shadow-lg: 0 10px 15px -3px rgb(4 38 46 / 0.12), 0 4px 6px -4px rgb(4 38 46 / 0.1);
|
||||
--shadow-xl: 0 20px 25px -5px rgb(4 38 46 / 0.12), 0 8px 10px -6px rgb(4 38 46 / 0.1);
|
||||
--shadow-2xl: 0 25px 50px -12px rgb(4 38 46 / 0.3);
|
||||
}
|
||||
|
||||
/* How much of an accent colour its text keeps (src/lib/color.ts,
|
||||
|
|
@ -123,6 +133,28 @@ h1, h2, h3, h4, h5, h6 {
|
|||
font-weight: bold;
|
||||
}
|
||||
|
||||
/* A logo on a dark page: many are drawn for white paper (dark marks,
|
||||
transparent background) and would vanish. .logo-plate gives them
|
||||
a small light backing in dark mode only. */
|
||||
:root[data-theme="dark"] .logo-plate {
|
||||
background: #eef9fb;
|
||||
border-radius: 0.75rem;
|
||||
padding: 0.25rem;
|
||||
}
|
||||
@media (prefers-color-scheme: dark) {
|
||||
:root:not([data-theme="light"]) .logo-plate {
|
||||
background: #eef9fb;
|
||||
border-radius: 0.75rem;
|
||||
padding: 0.25rem;
|
||||
}
|
||||
}
|
||||
|
||||
/* Corners, one rule for the site: actions (buttons, pills, chips)
|
||||
are rounded-full; cards and panels are rounded-3xl when large and
|
||||
rounded-2xl when small; media and logos inside a card are
|
||||
rounded-xl. PeopleTiles' 2-3px photo frame is its own deliberate
|
||||
exception. */
|
||||
|
||||
/* Scrollbar hide */
|
||||
::-webkit-scrollbar { width: 6px; }
|
||||
::-webkit-scrollbar-track { background: transparent; }
|
||||
|
|
@ -201,9 +233,9 @@ h1, h2, h3, h4, h5, h6 {
|
|||
min-height: 22rem;
|
||||
background: linear-gradient(
|
||||
100deg,
|
||||
rgba(0, 0, 0, 0.04) 30%,
|
||||
rgba(0, 0, 0, 0.08) 50%,
|
||||
rgba(0, 0, 0, 0.04) 70%
|
||||
color-mix(in srgb, var(--color-muted) 8%, transparent) 30%,
|
||||
color-mix(in srgb, var(--color-muted) 16%, transparent) 50%,
|
||||
color-mix(in srgb, var(--color-muted) 8%, transparent) 70%
|
||||
);
|
||||
background-size: 200% 100%;
|
||||
animation: skeleton-shimmer 1.4s ease-in-out infinite;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue