- 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>
309 lines
9.3 KiB
CSS
309 lines
9.3 KiB
CSS
@import '@fontsource/montserrat/400.css';
|
|
@import '@fontsource/montserrat/600.css';
|
|
@import '@fontsource/montserrat/700.css';
|
|
@import '@fontsource/poppins/400.css';
|
|
@import '@fontsource/poppins/600.css';
|
|
@import '@fontsource/poppins/700.css';
|
|
@import '@fontsource/poppins/800.css';
|
|
|
|
@import 'tailwindcss';
|
|
|
|
@theme {
|
|
--font-display: 'Poppins', sans-serif;
|
|
--font-body: 'Montserrat', sans-serif;
|
|
|
|
/* ── Colour tokens ─────────────────────────────────────────────
|
|
Named for what they do, not what they look like, because dark
|
|
mode (below) swaps the values. Use them as utilities
|
|
(text-muted, bg-surface, border-brand/20) or, in a style prop,
|
|
as var(--color-muted). Every text colour passes WCAG AA (4.5:1)
|
|
on surface, tint and tint-soft in both modes.
|
|
|
|
A colour that must stay the same in both modes (white text on
|
|
a dark band, a platform's own colour) stays a literal. Colours
|
|
that arrive as data (page accents, event and region colours) go
|
|
through withAlpha() and accentText() in src/lib/color.ts. */
|
|
--color-ink: #073d4a; /* headings */
|
|
--color-body: #26454c; /* body text */
|
|
--color-muted: #4a6b72; /* secondary text, quiet borders */
|
|
--color-link: #0f7183; /* links and teal text */
|
|
--color-brand: #138ba0; /* decoration: borders, rings, rules */
|
|
--color-action: #0f7183; /* button fills, under white text */
|
|
--color-action-hover: #0b5c6a;
|
|
--color-surface: #ffffff; /* page and cards */
|
|
--color-tint: #eef9fb; /* tinted sections and panels */
|
|
--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,
|
|
accentText): all of it on light, half (the rest white) on dark. */
|
|
:root {
|
|
--accent-text-mix: 100%;
|
|
}
|
|
|
|
/* Dark mode: the visitor's system setting, unless the header toggle
|
|
chose (data-theme on <html>, set before first paint in index.html
|
|
and by ThemeToggle). */
|
|
@custom-variant dark (&:where([data-theme="dark"], [data-theme="dark"] *));
|
|
|
|
@layer base {
|
|
:root[data-theme="dark"] {
|
|
--color-ink: #eaf6f8;
|
|
--color-body: #cde0e4;
|
|
--color-muted: #9fb9bf;
|
|
--color-link: #5ccbdc;
|
|
--color-brand: #2aa7bc;
|
|
--color-surface: #0c1d21;
|
|
--color-tint: #11292e;
|
|
--color-tint-soft: #0f2428;
|
|
--color-danger: #ff8a80;
|
|
--color-danger-tint: #3b1714;
|
|
--accent-text-mix: 50%;
|
|
color-scheme: dark;
|
|
}
|
|
@media (prefers-color-scheme: dark) {
|
|
:root:not([data-theme="light"]) {
|
|
--color-ink: #eaf6f8;
|
|
--color-body: #cde0e4;
|
|
--color-muted: #9fb9bf;
|
|
--color-link: #5ccbdc;
|
|
--color-brand: #2aa7bc;
|
|
--color-surface: #0c1d21;
|
|
--color-tint: #11292e;
|
|
--color-tint-soft: #0f2428;
|
|
--color-danger: #ff8a80;
|
|
--color-danger-tint: #3b1714;
|
|
--accent-text-mix: 50%;
|
|
color-scheme: dark;
|
|
}
|
|
}
|
|
}
|
|
|
|
* {
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
html {
|
|
scroll-behavior: smooth;
|
|
}
|
|
|
|
/* One visible focus ring for keyboard users, wherever a component
|
|
doesn't draw its own. */
|
|
:focus-visible {
|
|
outline: 2px solid var(--color-link);
|
|
outline-offset: 2px;
|
|
}
|
|
|
|
/* Visitors who ask for less motion get no smooth scrolling, slides
|
|
or hover zooms. */
|
|
@media (prefers-reduced-motion: reduce) {
|
|
html {
|
|
scroll-behavior: auto;
|
|
}
|
|
*,
|
|
*::before,
|
|
*::after {
|
|
animation-duration: 0.01ms !important;
|
|
animation-iteration-count: 1 !important;
|
|
transition-duration: 0.01ms !important;
|
|
}
|
|
}
|
|
|
|
body {
|
|
font-family: 'Montserrat', sans-serif;
|
|
background-color: var(--color-surface);
|
|
color: var(--color-ink);
|
|
-webkit-font-smoothing: antialiased;
|
|
}
|
|
|
|
h1, h2, h3, h4, h5, h6 {
|
|
font-family: 'Poppins', sans-serif;
|
|
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; }
|
|
::-webkit-scrollbar-thumb { background: rgba(19, 139, 160, 0.4); border-radius: 3px; }
|
|
|
|
|
|
|
|
.ig-icon { fill: currentColor; transition: fill 200ms ease; }
|
|
.ig-link:hover .ig-icon { fill: var(--ig-fill); }
|
|
.footer-icons:hover .ig-icon { fill: var(--ig-fill); }
|
|
.fb-icon:hover { fill: #0862f7; }
|
|
.ds-icon:hover { fill: #5865f1; }
|
|
|
|
|
|
/* Event Card Section */
|
|
.ev-card {
|
|
container-type: inline-size;
|
|
}
|
|
|
|
.ev-grid {
|
|
display: grid;
|
|
gap: 0.25rem 1.5rem;
|
|
grid-template-columns: 2fr 1fr;
|
|
grid-template-areas:
|
|
"ngu image"
|
|
"info image"
|
|
"desc desc";
|
|
}
|
|
|
|
.ev-ngu {
|
|
grid-area: ngu;
|
|
}
|
|
|
|
.ev-info {
|
|
grid-area: info;
|
|
}
|
|
|
|
.ev-image {
|
|
grid-area: image;
|
|
justify-self: stretch;
|
|
align-self: center;
|
|
max-height: 11rem;
|
|
}
|
|
|
|
.ev-desc {
|
|
grid-area: desc;
|
|
margin-top: 1rem;
|
|
}
|
|
|
|
@container (max-width: 30rem) {
|
|
.ev-grid {
|
|
grid-template-columns: 1fr;
|
|
grid-template-areas:
|
|
"ngu"
|
|
"info"
|
|
"desc";
|
|
}
|
|
|
|
.ev-grid .ev-image {
|
|
justify-self: start;
|
|
width: auto;
|
|
max-height: 7rem;
|
|
margin-bottom: 0.5rem;
|
|
}
|
|
}
|
|
|
|
/* ═══════════════════════════════════════════════════════════════
|
|
SKELETON
|
|
Holds roughly a card's height so the page doesn't jump when the
|
|
data arrives. The shimmer is decoration, so it goes away for
|
|
anyone who has asked for less motion.
|
|
═══════════════════════════════════════════════════════════════ */
|
|
|
|
.skeleton {
|
|
border-radius: 1.5rem;
|
|
min-height: 22rem;
|
|
background: linear-gradient(
|
|
100deg,
|
|
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;
|
|
}
|
|
|
|
@keyframes skeleton-shimmer {
|
|
from {
|
|
background-position: 200% 0;
|
|
}
|
|
to {
|
|
background-position: -200% 0;
|
|
}
|
|
}
|
|
|
|
@media (prefers-reduced-motion: reduce) {
|
|
.skeleton {
|
|
animation: none;
|
|
}
|
|
}
|
|
|
|
/* ═══════════════════════════════════════════════════════════════
|
|
UNITY REGIONS
|
|
Append to index.css. Scoped to .ur- so nothing here reaches the
|
|
rest of the site.
|
|
═══════════════════════════════════════════════════════════════ */
|
|
|
|
/* The 0fr → 1fr grid row animates to the panel's real height, so
|
|
nobody has to guess a max-height that's wrong the moment a
|
|
region's description grows. The inline style sets the value;
|
|
this sets how it moves. */
|
|
.ur-panel {
|
|
display: grid;
|
|
transition: grid-template-rows 300ms ease;
|
|
}
|
|
|
|
.ur-chevron {
|
|
transition: transform 200ms ease;
|
|
}
|
|
|
|
@media (prefers-reduced-motion: reduce) {
|
|
.ur-panel,
|
|
.ur-chevron {
|
|
transition: none;
|
|
}
|
|
}
|
|
|
|
/* ═══════════════════════════════════════════════════════════════
|
|
ORGANIZATION LIST
|
|
Append to index.css. Scoped to .ol- so nothing here reaches the
|
|
rest of the site.
|
|
═══════════════════════════════════════════════════════════════ */
|
|
|
|
/* The 0fr → 1fr grid row animates to the panel's real height, so
|
|
nobody has to guess a max-height that's wrong the moment a
|
|
description grows. The inline style sets the value; this sets
|
|
how it moves. */
|
|
.ol-panel {
|
|
display: grid;
|
|
transition: grid-template-rows 300ms ease;
|
|
}
|
|
|
|
.ol-chevron {
|
|
transition: transform 200ms ease;
|
|
}
|
|
|
|
@media (prefers-reduced-motion: reduce) {
|
|
.ol-panel,
|
|
.ol-chevron {
|
|
transition: none;
|
|
}
|
|
}
|