Adopt the new palette; square corners, superellipse buttons
The theme defaults (light and dark) come from the 16-color grid, kept as PALETTE in src/lib/color.ts; every text pair passes the admin's 4.5:1 check. Nothing is rounded any more except buttons, which share one btn utility (Poppins Bold, a superellipse corner where the browser has corner-shape) and true dots. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
ecdcd4ec37
commit
d81f7bd856
62 changed files with 416 additions and 384 deletions
122
src/index.css
122
src/index.css
|
|
@ -23,28 +23,28 @@
|
|||
a dark band, a platform's own color) stays a literal. Colors
|
||||
that arrive as data (page accents, event and region colors) 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-ink: #001011; /* headings */
|
||||
--color-body: #004552; /* body text */
|
||||
--color-muted: #004c52; /* secondary text, quiet borders */
|
||||
--color-link: #004552; /* links and teal text */
|
||||
--color-brand: #008fa8; /* decoration: borders, rings, rules */
|
||||
--color-action: #004552; /* button fills, under white text */
|
||||
--color-action-hover: #001011;
|
||||
--color-surface: #fcfffd; /* page and cards */
|
||||
--color-tint: #c2f6ff; /* tinted sections and panels */
|
||||
--color-tint-soft: #dfebd6; /* 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);
|
||||
--shadow-2xs: 0 1px rgb(0 16 17 / 0.05);
|
||||
--shadow-xs: 0 1px 2px 0 rgb(0 16 17 / 0.05);
|
||||
--shadow-sm: 0 1px 3px 0 rgb(0 16 17 / 0.1), 0 1px 2px -1px rgb(0 16 17 / 0.1);
|
||||
--shadow-md: 0 4px 6px -1px rgb(0 16 17 / 0.1), 0 2px 4px -2px rgb(0 16 17 / 0.1);
|
||||
--shadow-lg: 0 10px 15px -3px rgb(0 16 17 / 0.12), 0 4px 6px -4px rgb(0 16 17 / 0.1);
|
||||
--shadow-xl: 0 20px 25px -5px rgb(0 16 17 / 0.12), 0 8px 10px -6px rgb(0 16 17 / 0.1);
|
||||
--shadow-2xl: 0 25px 50px -12px rgb(0 16 17 / 0.3);
|
||||
}
|
||||
|
||||
/* How much of an accent color its text keeps (src/lib/color.ts,
|
||||
|
|
@ -60,14 +60,16 @@
|
|||
|
||||
@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-ink: #fcfffd;
|
||||
--color-body: #c2f6ff;
|
||||
--color-muted: #aac992;
|
||||
--color-link: #5ce7ff;
|
||||
--color-brand: #008fa8;
|
||||
--color-action: #004c52;
|
||||
--color-action-hover: #004552;
|
||||
--color-surface: #001011;
|
||||
--color-tint: #004552;
|
||||
--color-tint-soft: #27371b;
|
||||
--color-danger: #ff8a80;
|
||||
--color-danger-tint: #3b1714;
|
||||
--accent-text-mix: 50%;
|
||||
|
|
@ -75,14 +77,16 @@
|
|||
}
|
||||
@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-ink: #fcfffd;
|
||||
--color-body: #c2f6ff;
|
||||
--color-muted: #aac992;
|
||||
--color-link: #5ce7ff;
|
||||
--color-brand: #008fa8;
|
||||
--color-action: #004c52;
|
||||
--color-action-hover: #004552;
|
||||
--color-surface: #001011;
|
||||
--color-tint: #004552;
|
||||
--color-tint-soft: #27371b;
|
||||
--color-danger: #ff8a80;
|
||||
--color-danger-tint: #3b1714;
|
||||
--accent-text-mix: 50%;
|
||||
|
|
@ -137,14 +141,12 @@ h1, h2, h3, h4, h5, h6 {
|
|||
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;
|
||||
background: #fcfffd;
|
||||
padding: 0.25rem;
|
||||
}
|
||||
@media (prefers-color-scheme: dark) {
|
||||
:root:not([data-theme="light"]) .logo-plate {
|
||||
background: #eef9fb;
|
||||
border-radius: 0.75rem;
|
||||
background: #fcfffd;
|
||||
padding: 0.25rem;
|
||||
}
|
||||
}
|
||||
|
|
@ -156,14 +158,14 @@ h1, h2, h3, h4, h5, h6 {
|
|||
@media print {
|
||||
:root,
|
||||
:root[data-theme="dark"] {
|
||||
--color-ink: #073d4a;
|
||||
--color-body: #26454c;
|
||||
--color-muted: #4a6b72;
|
||||
--color-link: #0f7183;
|
||||
--color-brand: #138ba0;
|
||||
--color-surface: #ffffff;
|
||||
--color-tint: #eef9fb;
|
||||
--color-tint-soft: #f6fbfc;
|
||||
--color-ink: #001011;
|
||||
--color-body: #004552;
|
||||
--color-muted: #004c52;
|
||||
--color-link: #004552;
|
||||
--color-brand: #008fa8;
|
||||
--color-surface: #fcfffd;
|
||||
--color-tint: #c2f6ff;
|
||||
--color-tint-soft: #dfebd6;
|
||||
--color-danger: #b3261e;
|
||||
--color-danger-tint: #fdf3f2;
|
||||
--accent-text-mix: 100%;
|
||||
|
|
@ -189,16 +191,33 @@ iframe[src*="churchcenter"] {
|
|||
color-scheme: light;
|
||||
}
|
||||
|
||||
/* 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. */
|
||||
/* Corners, one rule for the site: none. Everything is square except
|
||||
buttons, which get a superellipse (the btn utility below, or
|
||||
var(--btn-radius) with corner-shape in plain CSS), and things that
|
||||
are round by nature: dots and radio marks. Browsers without
|
||||
corner-shape draw the button corner as a small plain radius. */
|
||||
:root {
|
||||
--btn-radius: 0.5rem;
|
||||
}
|
||||
@supports (corner-shape: squircle) {
|
||||
:root {
|
||||
--btn-radius: 1.25rem;
|
||||
}
|
||||
}
|
||||
|
||||
/* Buttons, and links drawn as buttons: Poppins Bold, superellipse
|
||||
corners. Color, size and border stay with each button. */
|
||||
@utility btn {
|
||||
font-family: var(--font-display);
|
||||
font-weight: 700;
|
||||
border-radius: var(--btn-radius);
|
||||
corner-shape: squircle;
|
||||
}
|
||||
|
||||
/* Scrollbar hide */
|
||||
::-webkit-scrollbar { width: 6px; }
|
||||
::-webkit-scrollbar-track { background: transparent; }
|
||||
::-webkit-scrollbar-thumb { background: rgba(19, 139, 160, 0.4); border-radius: 3px; }
|
||||
::-webkit-scrollbar-thumb { background: color-mix(in srgb, var(--color-brand) 40%, transparent); }
|
||||
|
||||
|
||||
|
||||
|
|
@ -269,7 +288,6 @@ iframe[src*="churchcenter"] {
|
|||
═══════════════════════════════════════════════════════════════ */
|
||||
|
||||
.skeleton {
|
||||
border-radius: 1.5rem;
|
||||
min-height: 22rem;
|
||||
background: linear-gradient(
|
||||
100deg,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue