Add colour tokens, dark mode and drop gradients
- Colour tokens in index.css named by role (ink, body, muted, link, brand, action, surface, tint, danger), used everywhere instead of hex - Dark mode: follows the system, a header toggle (site and admin) overrides it and is remembered; set before first paint in index.html - Data colours go through src/lib/color.ts: withAlpha for tints, accentText (lighter on dark) for text in an accent, readableOn for text on one, so an admin's pale colour still reads - Migration 040 drops events.gradient: a card is its photo or plain, with its colour as the border; other decorative gradients are solid - The countdown and a hero event without a photo mix their colour toward ink behind white text Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
ee61568911
commit
c74ad746f5
70 changed files with 829 additions and 596 deletions
|
|
@ -15,7 +15,7 @@ const PAGE = sitePage("/history");
|
|||
const PROGRAM_START_YEAR = 2000;
|
||||
|
||||
const ACCENT = "#0f7183";
|
||||
const BACKGROUND = "#ffffff";
|
||||
const BACKGROUND = "var(--color-surface)";
|
||||
|
||||
export default function History() {
|
||||
const { items, loading, error, reload } = useHistory();
|
||||
|
|
@ -37,7 +37,7 @@ export default function History() {
|
|||
|
||||
if (loading) {
|
||||
content = wrap(
|
||||
<p className="py-12 text-[#4a6b72]" role="status">
|
||||
<p className="py-12 text-muted" role="status">
|
||||
Loading the timeline…
|
||||
</p>,
|
||||
);
|
||||
|
|
@ -47,11 +47,11 @@ export default function History() {
|
|||
// organization with no history.
|
||||
content = wrap(
|
||||
<div className="py-12">
|
||||
<p className="text-[#b3261e]">Couldn’t load the timeline. {error}</p>
|
||||
<p className="text-danger">Couldn’t load the timeline. {error}</p>
|
||||
<button
|
||||
type="button"
|
||||
onClick={reload}
|
||||
className="mt-3 rounded-full border border-[#138ba0] px-4 py-1.5 text-sm font-medium text-[#0f7183] transition-colors hover:bg-[#eef9fb]"
|
||||
className="mt-3 rounded-full border border-brand px-4 py-1.5 text-sm font-medium text-link transition-colors hover:bg-tint"
|
||||
>
|
||||
Try again
|
||||
</button>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue