Session 33: Design system Phase A+B — tokens, fonts, glitch CSS, shared components (1792 tests)
VYNDR 2.0 design-system conversion, foundation only (pages/mobile/systems are Sessions 34+). Frontend-only; zero backend changes. Phase A: §2 token set + token-wired typography + Inter/JetBrains Mono fonts + §4 glitch keyframes (ported verbatim from the prototype's vyndr.css) + scanline texture + §10 a11y data-* layer in globals.css. Legacy alias block kept. Phase B: web/src/lib/vyndrTokens.js (CommonJS helpers) + 9 shared components under web/src/components/vyndr/ (Wordmark, GradeBadge, SportBadge, TerminalInput, SectionHead, VBtn, Card, Sparkline, Ticker). 74 new design-system tests. Backend 1718 -> 1792, 141 suites, zero regressions. Web build clean. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
+426
-7
@@ -54,14 +54,50 @@
|
||||
--radius-lg: 16px;
|
||||
--radius-xl: 24px;
|
||||
|
||||
/* Glitch intensity — 0..1, can be tuned per-section */
|
||||
--glitch: 0.5;
|
||||
/* Glitch intensity — 0..1, can be tuned per-section.
|
||||
VYNDR 2.0 (§2) sets this to 1 — full intensity is the design baseline. */
|
||||
--glitch: 1;
|
||||
--scan-opacity: calc(0.04 + 0.06 * var(--glitch));
|
||||
--grain-opacity: calc(0.02 + 0.02 * var(--glitch));
|
||||
--rgb-shift: calc(0.5px + 1.5px * var(--glitch));
|
||||
--slash-opacity: calc(0.06 + 0.08 * var(--glitch));
|
||||
--sweep-opacity: calc(0.08 + 0.12 * var(--glitch));
|
||||
|
||||
/* ─────────────────────────────────────────────────────────
|
||||
VYNDR 2.0 DESIGN TOKENS (§2 — exact values from vyndr.css).
|
||||
The new canonical short-name token set. Legacy aliases below
|
||||
keep every existing component resolving during the migration.
|
||||
───────────────────────────────────────────────────────── */
|
||||
/* Grade tokens (the product's core color language) */
|
||||
--g-ap: #00ffb8; /* A+ rarest, max glow */
|
||||
--g-a: #00d4a0; /* A workhorse green / primary CTA */
|
||||
--g-b: #4a9eff; /* B blue */
|
||||
--g-c: #ffb347; /* C amber */
|
||||
--g-d: #ff5252; /* D red */
|
||||
|
||||
/* Sport tokens */
|
||||
--s-nba: #e94b3c;
|
||||
--s-mlb: #1e90ff;
|
||||
--s-wnba: #f7944a;
|
||||
--s-soccer: #3ddc84;
|
||||
|
||||
/* Amber / system glow (LOADING, LIVE, 404, warnings) */
|
||||
--amber: #ffb347;
|
||||
--amber-glow: 0 0 12px rgba(255, 179, 71, 0.6);
|
||||
|
||||
/* Semantic */
|
||||
--live: #ff3b3b;
|
||||
--hit: #00d4a0;
|
||||
--miss: #ff5252;
|
||||
|
||||
/* Scanline base opacity + hero grade color */
|
||||
--scan-op: 0.04;
|
||||
--grade-hero: var(--g-a);
|
||||
|
||||
/* Type — Inter for chrome/UI, JetBrains Mono for ALL data */
|
||||
--sans: 'Inter', system-ui, sans-serif;
|
||||
--mono: 'JetBrains Mono', 'SF Mono', ui-monospace, monospace;
|
||||
|
||||
/* ── Legacy aliases — every existing component still resolves ── */
|
||||
--bg-primary: var(--bg-0);
|
||||
--bg-surface: var(--bg-1);
|
||||
@@ -106,7 +142,7 @@ html {
|
||||
body {
|
||||
background: var(--bg-0);
|
||||
color: var(--text-0);
|
||||
font-family: 'Instrument Sans', 'SF Pro Display', system-ui, -apple-system, sans-serif;
|
||||
font-family: var(--sans);
|
||||
font-weight: 400;
|
||||
line-height: 1.6;
|
||||
letter-spacing: -0.01em;
|
||||
@@ -117,7 +153,7 @@ body {
|
||||
}
|
||||
|
||||
h1, h2, h3, h4, h5, h6 {
|
||||
font-family: 'Instrument Sans', 'SF Pro Display', system-ui, sans-serif;
|
||||
font-family: var(--sans);
|
||||
font-weight: 700;
|
||||
letter-spacing: -0.02em;
|
||||
line-height: 1.15;
|
||||
@@ -126,17 +162,17 @@ h1, h2, h3, h4, h5, h6 {
|
||||
|
||||
.font-mono,
|
||||
.mono {
|
||||
font-family: 'IBM Plex Mono', 'JetBrains Mono', 'SF Mono', ui-monospace, monospace;
|
||||
font-family: var(--mono);
|
||||
font-feature-settings: 'tnum' 1;
|
||||
font-variant-numeric: tabular-nums;
|
||||
}
|
||||
.num {
|
||||
font-family: 'IBM Plex Mono', 'JetBrains Mono', 'SF Mono', ui-monospace, monospace;
|
||||
font-family: var(--mono);
|
||||
font-variant-numeric: tabular-nums;
|
||||
font-weight: 700;
|
||||
}
|
||||
.lbl {
|
||||
font-family: 'IBM Plex Mono', 'JetBrains Mono', 'SF Mono', ui-monospace, monospace;
|
||||
font-family: var(--mono);
|
||||
font-size: 10px;
|
||||
font-weight: 700;
|
||||
letter-spacing: 0.1em;
|
||||
@@ -802,3 +838,386 @@ body.tex-grain::before {
|
||||
0% { background-position: -100% 0; }
|
||||
100% { background-position: 100% 0; }
|
||||
}
|
||||
|
||||
/* ============================================================
|
||||
VYNDR 2.0 DESIGN SYSTEM (§4 — ported verbatim from vyndr.css)
|
||||
Glitch + animation system. Applied ONLY to chrome (wordmark,
|
||||
headers, dividers, loaders, the living layer). DATA NEVER
|
||||
GLITCHES. Where keyframe/class names collide with the legacy
|
||||
block above, these definitions are authoritative (later wins).
|
||||
============================================================ */
|
||||
|
||||
/* ===================== SCANLINE TEXTURE ===================== */
|
||||
.scanlines, .scanlines-bg { position: relative; }
|
||||
.scanlines::after {
|
||||
content: "";
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
pointer-events: none;
|
||||
background: repeating-linear-gradient(0deg, transparent 50%, rgba(0,0,0,1) 50%);
|
||||
background-size: 100% 2px;
|
||||
opacity: var(--scan-op);
|
||||
z-index: 1;
|
||||
}
|
||||
/* Intelligence surface (Level 3) — green + drifting scanlines: "VYNDR is speaking" */
|
||||
.intel-surface {
|
||||
position: relative;
|
||||
background: linear-gradient(160deg, var(--acc-0), var(--acc-1));
|
||||
overflow: hidden;
|
||||
}
|
||||
.intel-surface::after {
|
||||
content: "";
|
||||
position: absolute;
|
||||
inset: -4px 0 -4px 0;
|
||||
pointer-events: none;
|
||||
background: repeating-linear-gradient(0deg, transparent 0 2px, rgba(0,0,0,0.85) 2px 4px);
|
||||
opacity: calc(var(--scan-op) * 1.25 + 0.01);
|
||||
animation: scan-drift 4s linear infinite;
|
||||
z-index: 1;
|
||||
}
|
||||
@keyframes scan-drift {
|
||||
from { transform: translateY(0); }
|
||||
to { transform: translateY(4px); }
|
||||
}
|
||||
|
||||
/* ===================== WORDMARK GLITCH ===================== */
|
||||
.wm {
|
||||
position: relative;
|
||||
display: inline-block;
|
||||
flex: none;
|
||||
white-space: nowrap;
|
||||
font-family: var(--sans);
|
||||
font-weight: 800;
|
||||
letter-spacing: 0.04em;
|
||||
color: var(--text-0);
|
||||
text-shadow: 0 0 1px rgba(232,232,240,.25);
|
||||
animation: wm-tear 5s steps(1, end) infinite;
|
||||
}
|
||||
.wm::before, .wm::after {
|
||||
content: attr(data-text);
|
||||
position: absolute;
|
||||
top: 0; left: 0;
|
||||
width: 100%;
|
||||
pointer-events: none;
|
||||
opacity: calc(0.92 * var(--glitch));
|
||||
}
|
||||
.wm::before {
|
||||
color: #ff2d6f;
|
||||
transform: translateX(calc(-1.9px * var(--glitch)));
|
||||
animation: glitch-shift-r 5s steps(1, end) infinite;
|
||||
mix-blend-mode: screen;
|
||||
}
|
||||
.wm::after {
|
||||
color: #2dffd5;
|
||||
transform: translateX(calc(1.9px * var(--glitch)));
|
||||
animation: glitch-shift-b 5s steps(1, end) infinite;
|
||||
mix-blend-mode: screen;
|
||||
}
|
||||
/* the locked green R — permanent phosphor highlight */
|
||||
.wm-r {
|
||||
position: relative;
|
||||
z-index: 4;
|
||||
color: var(--g-a);
|
||||
text-shadow: 0 0 9px rgba(0,212,160,.7), 0 0 22px rgba(0,212,160,.38);
|
||||
}
|
||||
/* live terminal caret after the R — alive, mid-type flicker */
|
||||
.wm-cursor {
|
||||
position: relative;
|
||||
z-index: 4;
|
||||
display: inline-block;
|
||||
width: 0.11em;
|
||||
height: 0.82em;
|
||||
margin-left: 0.14em;
|
||||
transform: translateY(0.04em);
|
||||
background: var(--g-a);
|
||||
box-shadow: 0 0 9px rgba(0,212,160,.9), 0 0 18px rgba(0,212,160,.4);
|
||||
animation: wm-caret 1.15s steps(1, end) infinite;
|
||||
}
|
||||
@keyframes wm-caret {
|
||||
0%, 44% { opacity: 1; }
|
||||
45%, 55% { opacity: 0.12; }
|
||||
56%, 70% { opacity: 1; }
|
||||
71%, 100% { opacity: 0.12; }
|
||||
}
|
||||
/* BETA clearance pill */
|
||||
.wm-beta {
|
||||
font-family: var(--mono);
|
||||
font-size: 11px;
|
||||
font-weight: 700;
|
||||
letter-spacing: 0.2em;
|
||||
color: var(--g-a);
|
||||
border: 1px solid color-mix(in srgb, var(--g-a) 50%, transparent);
|
||||
background: rgba(0,212,160,.08);
|
||||
padding: 3px 7px 3px 9px;
|
||||
border-radius: 5px;
|
||||
line-height: 1;
|
||||
box-shadow: 0 0 16px -5px rgba(0,212,160,.6);
|
||||
}
|
||||
@keyframes wm-tear {
|
||||
0%, 4%, 100% { transform: translate(0); }
|
||||
5% { filter: hue-rotate(40deg) brightness(1.15); transform: translate(calc(2.4px*var(--glitch))) skew(calc(-3deg*var(--glitch))); }
|
||||
6% { filter: brightness(1.05); transform: translate(calc(-1.4px*var(--glitch))) skew(calc(1deg*var(--glitch))); }
|
||||
7% { filter: none; transform: translate(0); }
|
||||
47% { transform: translate(0); }
|
||||
48% { filter: hue-rotate(-30deg) brightness(1.12); transform: translate(calc(-2.4px*var(--glitch))) skew(calc(1.5deg*var(--glitch))); }
|
||||
49% { transform: translate(calc(1.4px*var(--glitch))); }
|
||||
50% { filter: none; transform: translate(0); }
|
||||
}
|
||||
@keyframes glitch-shift-r {
|
||||
0%,4%,8%,46%,52%,100% { clip-path: inset(0 0 0 0); transform: translateX(calc(-1.5px*var(--glitch))); }
|
||||
5% { clip-path: inset(10% 0 60% 0); transform: translateX(calc(-4px*var(--glitch))); }
|
||||
6% { clip-path: inset(40% 0 20% 0); transform: translateX(calc(3px*var(--glitch))); }
|
||||
48% { clip-path: inset(20% 0 55% 0); transform: translateX(calc(-3px*var(--glitch))); }
|
||||
49% { clip-path: inset(60% 0 10% 0); transform: translateX(calc(2px*var(--glitch))); }
|
||||
}
|
||||
@keyframes glitch-shift-b {
|
||||
0%,4%,8%,46%,52%,100% { clip-path: inset(0 0 0 0); transform: translateX(calc(1.5px*var(--glitch))); }
|
||||
5% { clip-path: inset(55% 0 15% 0); transform: translateX(calc(4px*var(--glitch))); }
|
||||
6% { clip-path: inset(15% 0 50% 0); transform: translateX(calc(-3px*var(--glitch))); }
|
||||
48% { clip-path: inset(50% 0 25% 0); transform: translateX(calc(3px*var(--glitch))); }
|
||||
49% { clip-path: inset(5% 0 70% 0); transform: translateX(calc(-2px*var(--glitch))); }
|
||||
}
|
||||
|
||||
/* Section-header glitch on hover */
|
||||
.glitch-hover { position: relative; display: inline-block; }
|
||||
.glitch-hover:hover { animation: head-tear 0.32s steps(1,end) 1; }
|
||||
@keyframes head-tear {
|
||||
0% { transform: translate(0); text-shadow: none; }
|
||||
25% { transform: translate(calc(2px*var(--glitch))) skew(calc(-3deg*var(--glitch)));
|
||||
text-shadow: calc(-2px*var(--glitch)) 0 #ff2d6f, calc(2px*var(--glitch)) 0 #2dffd5; }
|
||||
50% { transform: translate(calc(-1px*var(--glitch))); }
|
||||
75% { transform: translate(calc(1px*var(--glitch))); text-shadow: calc(1px*var(--glitch)) 0 #2dffd5; }
|
||||
100% { transform: translate(0); text-shadow: none; }
|
||||
}
|
||||
|
||||
/* ===================== CRT SWEEP ===================== */
|
||||
.crt-sweep {
|
||||
position: fixed;
|
||||
left: 0; right: 0; top: 0;
|
||||
height: 38vh;
|
||||
pointer-events: none;
|
||||
z-index: 9999;
|
||||
background: linear-gradient(180deg,
|
||||
transparent 0%,
|
||||
rgba(0,212,160,0.04) 40%,
|
||||
rgba(0,255,184,0.14) 50%,
|
||||
rgba(255,255,255,0.10) 51%,
|
||||
rgba(0,212,160,0.04) 60%,
|
||||
transparent 100%);
|
||||
animation: crt-sweep 0.7s ease-in 1;
|
||||
}
|
||||
@keyframes crt-sweep {
|
||||
0% { opacity: 0; transform: translateY(-40vh); }
|
||||
10% { opacity: 1; }
|
||||
90% { opacity: 1; }
|
||||
100% { opacity: 0; transform: translateY(120vh); }
|
||||
}
|
||||
/* Local sweep within a card (grade-card reveal) */
|
||||
.crt-sweep-local {
|
||||
position: absolute;
|
||||
left: 0; right: 0; top: 0;
|
||||
height: 60%;
|
||||
pointer-events: none;
|
||||
z-index: 6;
|
||||
background: linear-gradient(180deg,
|
||||
transparent, rgba(0,255,184,0.12) 48%, rgba(255,255,255,0.10) 50%,
|
||||
rgba(0,255,184,0.08) 52%, transparent);
|
||||
animation: crt-sweep-local 0.65s ease-in 1;
|
||||
}
|
||||
@keyframes crt-sweep-local {
|
||||
0% { opacity: 0; transform: translateY(-60%); }
|
||||
15% { opacity: 1; }
|
||||
100% { opacity: 0; transform: translateY(220%); }
|
||||
}
|
||||
|
||||
/* ===================== PHOSPHOR PULSE ===================== */
|
||||
.phosphor-cursor {
|
||||
display: inline-block;
|
||||
width: 9px; height: 1.05em;
|
||||
background: var(--g-a);
|
||||
margin-left: 2px;
|
||||
vertical-align: text-bottom;
|
||||
box-shadow: 0 0 8px rgba(0,212,160,0.8);
|
||||
animation: phosphor-pulse 1.05s ease-in-out infinite;
|
||||
}
|
||||
.phosphor-cursor.amber { background: var(--amber); box-shadow: var(--amber-glow); }
|
||||
@keyframes phosphor-pulse {
|
||||
0%,100% { opacity: 0.5; transform: scaleX(0.6); }
|
||||
50% { opacity: 1; transform: scaleX(1); }
|
||||
}
|
||||
|
||||
/* ===================== GRADE REVEAL ===================== */
|
||||
@keyframes grade-reveal {
|
||||
0% { transform: scale(0.82); }
|
||||
60% { transform: scale(1.05); }
|
||||
100% { transform: scale(1); }
|
||||
}
|
||||
.grade-reveal { animation: grade-reveal 0.42s cubic-bezier(.2,1.3,.4,1) both; }
|
||||
|
||||
/* ===================== TICKER ===================== */
|
||||
@keyframes ticker-scroll {
|
||||
0% { transform: translateX(0); }
|
||||
100% { transform: translateX(-50%); }
|
||||
}
|
||||
.ticker-track {
|
||||
display: inline-flex;
|
||||
white-space: nowrap;
|
||||
animation: ticker-scroll 38s linear infinite;
|
||||
}
|
||||
|
||||
/* ===================== LIVE PULSE ===================== */
|
||||
.live-dot {
|
||||
display: inline-block;
|
||||
width: 8px; height: 8px;
|
||||
border-radius: 50%;
|
||||
background: var(--live);
|
||||
box-shadow: 0 0 0 0 rgba(255,59,59,0.7);
|
||||
animation: live-pulse 1.4s ease-out infinite;
|
||||
}
|
||||
@keyframes live-pulse {
|
||||
0% { box-shadow: 0 0 0 0 rgba(255,59,59,0.6); }
|
||||
70% { box-shadow: 0 0 0 7px rgba(255,59,59,0); }
|
||||
100% { box-shadow: 0 0 0 0 rgba(255,59,59,0); }
|
||||
}
|
||||
|
||||
/* ===================== LINE FLASH (odds cell changes) ===================== */
|
||||
@keyframes flash-up { 0% { background: rgba(0,212,160,0.45); } 100% { background: transparent; } }
|
||||
@keyframes flash-down { 0% { background: rgba(255,82,82,0.45); } 100% { background: transparent; } }
|
||||
.flash-up { animation: flash-up 0.6s ease-out 1; }
|
||||
.flash-down { animation: flash-down 0.6s ease-out 1; }
|
||||
|
||||
/* ===================== UTILITY ===================== */
|
||||
.mono { font-family: var(--mono); }
|
||||
.label {
|
||||
font-family: var(--mono);
|
||||
text-transform: uppercase;
|
||||
font-size: 11px;
|
||||
letter-spacing: 0.12em;
|
||||
color: var(--text-1);
|
||||
}
|
||||
.amber-glow { color: var(--amber); text-shadow: var(--amber-glow); }
|
||||
|
||||
/* ===================== LIVING LAYER (the brain) ===================== */
|
||||
/* EKG heartbeat strip */
|
||||
@keyframes ekg-scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
|
||||
.ekg-track { display: inline-flex; animation: ekg-scroll 6s linear infinite; }
|
||||
|
||||
/* Neural node pulse */
|
||||
@keyframes node-pulse {
|
||||
0%, 100% { opacity: 0.35; r: 2.4; }
|
||||
50% { opacity: 1; r: 3.4; }
|
||||
}
|
||||
.brain-node { animation: node-pulse 2.6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
|
||||
|
||||
/* Synapse traveling pulse along connections */
|
||||
@keyframes synapse-travel { from { stroke-dashoffset: 26; } to { stroke-dashoffset: 0; } }
|
||||
.brain-link { stroke-dasharray: 3 23; animation: synapse-travel 2.2s linear infinite; }
|
||||
|
||||
/* Number tick pop when a counter increments */
|
||||
@keyframes count-tick {
|
||||
0% { transform: translateY(0); color: var(--text-0); }
|
||||
30% { transform: translateY(-2px); color: var(--g-a); text-shadow: 0 0 10px rgba(0,212,160,.6); }
|
||||
100% { transform: translateY(0); }
|
||||
}
|
||||
.count-tick { animation: count-tick 0.5s ease-out 1; }
|
||||
|
||||
/* Factor ignite — sequential light-up during grade processing */
|
||||
@keyframes factor-ignite {
|
||||
0% { opacity: 0; transform: translateX(-6px); }
|
||||
100% { opacity: 1; transform: translateX(0); }
|
||||
}
|
||||
.factor-ignite { animation: factor-ignite 0.34s ease-out both; }
|
||||
|
||||
/* Signal feed item entering */
|
||||
@keyframes signal-in {
|
||||
0% { opacity: 0; transform: translateY(-8px); background: rgba(0,212,160,.16); }
|
||||
100% { opacity: 1; transform: translateY(0); background: transparent; }
|
||||
}
|
||||
.signal-in { animation: signal-in 0.6s ease-out 1; }
|
||||
|
||||
/* Processing scan bar (grade thinking) */
|
||||
@keyframes proc-scan {
|
||||
0% { transform: translateY(-100%); opacity: 0; }
|
||||
20% { opacity: 1; }
|
||||
80% { opacity: 1; }
|
||||
100% { transform: translateY(280%); opacity: 0; }
|
||||
}
|
||||
.proc-scan { animation: proc-scan 1.1s ease-in-out infinite; }
|
||||
|
||||
/* Soft data-stream blink */
|
||||
@keyframes data-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }
|
||||
.data-blink { animation: data-blink 1.6s ease-in-out infinite; }
|
||||
|
||||
/* ── Entrance keyframes — each FLOORS at the visible state so a paused/
|
||||
backgrounded frame never renders invisible (learned the hard way, §4). ── */
|
||||
@keyframes toast-in { 0% { transform: translateX(24px); } 100% { transform: translateX(0); } }
|
||||
.toast-in { animation: toast-in 0.26s cubic-bezier(.2,1,.4,1) both; }
|
||||
|
||||
@keyframes sheet-up { 0% { transform: translateY(40px); } 100% { transform: translateY(0); } }
|
||||
.sheet-up { animation: sheet-up 0.24s ease-out both; }
|
||||
|
||||
@keyframes cmd-in { 0% { transform: translateY(-10px); } 100% { transform: translateY(0); } }
|
||||
.cmd-in { animation: cmd-in 0.18s ease-out both; }
|
||||
|
||||
@keyframes fade-in { from { opacity: 0.6; } to { opacity: 1; } }
|
||||
.fade-in { animation: fade-in 0.2s ease-out both; }
|
||||
|
||||
/* Reduced-motion: kill the living layer + glitch chrome outright */
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
.wm, .wm::before, .wm::after, .ticker-track, .live-dot,
|
||||
.intel-surface::after, .phosphor-cursor,
|
||||
.ekg-track, .brain-node, .brain-link, .proc-scan, .data-blink { animation: none !important; }
|
||||
}
|
||||
|
||||
/* ============================================================
|
||||
ACCESSIBILITY + PREFERENCES (§10 — driven by <html data-*>)
|
||||
============================================================ */
|
||||
:focus-visible { outline: 2px solid var(--g-a); outline-offset: 2px; border-radius: 3px; }
|
||||
|
||||
/* Reduce motion (manual toggle, independent of OS setting) */
|
||||
html[data-motion="reduced"] *,
|
||||
html[data-motion="reduced"] *::before,
|
||||
html[data-motion="reduced"] *::after {
|
||||
animation-duration: 0.001s !important;
|
||||
animation-iteration-count: 1 !important;
|
||||
transition-duration: 0.001s !important;
|
||||
scroll-behavior: auto !important;
|
||||
}
|
||||
|
||||
/* High contrast */
|
||||
html[data-contrast="high"] {
|
||||
--text-0: #ffffff;
|
||||
--text-1: #cdcde0;
|
||||
--text-2: #a0a0bc;
|
||||
--border: #4c4c6a;
|
||||
--border-hi: #70709a;
|
||||
--bg-0: #000005;
|
||||
--bg-1: #0c0c16;
|
||||
--bg-2: #16161f;
|
||||
}
|
||||
html[data-contrast="high"] .scanlines::after,
|
||||
html[data-contrast="high"] .intel-surface::after { opacity: 0.015 !important; }
|
||||
|
||||
/* Text size — zoom scales the whole UI predictably */
|
||||
html[data-text="sm"] body { zoom: 0.92; }
|
||||
html[data-text="lg"] body { zoom: 1.12; }
|
||||
html[data-text="xl"] body { zoom: 1.25; }
|
||||
|
||||
/* Colorblind-safe — retunes red→orange; meaning never rests on color alone */
|
||||
html[data-cb="1"] {
|
||||
--miss: #fe6100;
|
||||
--g-d: #fe6100;
|
||||
--live: #fe6100;
|
||||
--s-nba: #ff6f3c;
|
||||
}
|
||||
html[data-cb="1"] .cb-neg { text-decoration: underline; text-underline-offset: 2px; }
|
||||
html[data-cb="1"] .cb-pos { text-decoration: underline; text-underline-offset: 2px; }
|
||||
|
||||
/* Readable font — high-legibility stack for dyslexia/low-vision */
|
||||
html[data-font="readable"] {
|
||||
--sans: "Atkinson Hyperlegible", "Verdana", "Trebuchet MS", system-ui, sans-serif;
|
||||
--mono: "Atkinson Hyperlegible Mono", "DejaVu Sans Mono", ui-monospace, monospace;
|
||||
letter-spacing: 0.01em;
|
||||
}
|
||||
html[data-font="readable"] .wm::before,
|
||||
html[data-font="readable"] .wm::after { opacity: 0.45 !important; }
|
||||
|
||||
@@ -107,8 +107,10 @@ export default async function RootLayout({ children }: { children: React.ReactNo
|
||||
<head>
|
||||
<link rel="preconnect" href="https://fonts.googleapis.com" />
|
||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossOrigin="anonymous" />
|
||||
{/* VYNDR 2.0 (§2): Inter for chrome/UI, JetBrains Mono for ALL data.
|
||||
IBM Plex Mono + Instrument Sans kept while pages migrate session-by-session. */}
|
||||
<link
|
||||
href="https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600;700;800&family=Instrument+Sans:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;700;800&display=swap"
|
||||
href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;600;700;800&family=IBM+Plex+Mono:wght@400;500;600;700;800&family=Instrument+Sans:wght@400;500;600;700&display=swap"
|
||||
rel="stylesheet"
|
||||
/>
|
||||
</head>
|
||||
|
||||
Reference in New Issue
Block a user