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
|
|
@ -10,11 +10,11 @@
|
|||
.ngu-tl {
|
||||
/* Defaults match the site palette; History.tsx overrides accent and
|
||||
surface per section so the rail sits on the right background. */
|
||||
--tl-ink: #16343a;
|
||||
--tl-muted: #4a6b72;
|
||||
--tl-faint: #8aa7ad;
|
||||
--tl-rail: #cfe4e8;
|
||||
--tl-surface: #ffffff;
|
||||
--tl-ink: var(--color-ink);
|
||||
--tl-muted: var(--color-muted);
|
||||
--tl-faint: color-mix(in srgb, var(--color-muted) 70%, transparent);
|
||||
--tl-rail: color-mix(in srgb, var(--color-brand) 20%, transparent);
|
||||
--tl-surface: var(--color-surface);
|
||||
--tl-accent: #0f7183;
|
||||
--tl-accent-soft: color-mix(in srgb, var(--tl-accent) 12%, transparent);
|
||||
|
||||
|
|
@ -94,7 +94,7 @@
|
|||
line-height: 1.1;
|
||||
writing-mode: vertical-rl;
|
||||
text-orientation: sideways;
|
||||
color: var(--tl-accent);
|
||||
color: color-mix(in srgb, var(--tl-accent) var(--accent-text-mix), #fff);
|
||||
}
|
||||
|
||||
.ngu-tl__decade--pre .ngu-tl__decadeNum {
|
||||
|
|
@ -162,7 +162,7 @@
|
|||
}
|
||||
|
||||
.ngu-tl__yearBtn:hover .ngu-tl__yearLabel {
|
||||
color: var(--tl-accent);
|
||||
color: color-mix(in srgb, var(--tl-accent) var(--accent-text-mix), #fff);
|
||||
}
|
||||
|
||||
.ngu-tl__yearBtn:focus-visible {
|
||||
|
|
@ -323,7 +323,7 @@ a.ngu-tl__entry:focus-visible {
|
|||
}
|
||||
|
||||
a.ngu-tl__entry:hover .ngu-tl__entryTitle {
|
||||
color: var(--tl-accent);
|
||||
color: color-mix(in srgb, var(--tl-accent) var(--accent-text-mix), #fff);
|
||||
}
|
||||
|
||||
.ngu-tl__entryMeta {
|
||||
|
|
@ -441,7 +441,7 @@ a.ngu-tl__entry--featured:hover {
|
|||
}
|
||||
|
||||
.ngu-tl__toolbarBtn:hover {
|
||||
color: var(--tl-accent);
|
||||
color: color-mix(in srgb, var(--tl-accent) var(--accent-text-mix), #fff);
|
||||
border-color: var(--tl-accent);
|
||||
}
|
||||
|
||||
|
|
@ -505,7 +505,7 @@ a.ngu-tl__entry--featured:hover {
|
|||
}
|
||||
|
||||
.ngu-tl__upcomingBtn:hover {
|
||||
color: var(--tl-accent);
|
||||
color: color-mix(in srgb, var(--tl-accent) var(--accent-text-mix), #fff);
|
||||
}
|
||||
|
||||
.ngu-tl__upcomingBtn:focus-visible {
|
||||
|
|
@ -629,7 +629,7 @@ a.ngu-tl__entry--featured:hover {
|
|||
font-size: 0.625rem;
|
||||
font-weight: 600;
|
||||
letter-spacing: 0.02em;
|
||||
color: var(--tl-accent);
|
||||
color: color-mix(in srgb, var(--tl-accent) var(--accent-text-mix), #fff);
|
||||
}
|
||||
|
||||
.ngu-tl__personName {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue