From 211287aed57fe0335250686f0e0f11345004aaef Mon Sep 17 00:00:00 2001 From: Keysat Date: Tue, 16 Jun 2026 23:36:42 -0500 Subject: [PATCH] Consolidate UI colors behind CSS custom properties; fix design drift Phase 1 of the design-contract conformance cleanup. Add a canonical :root token block (single source of truth, mirroring design/tokens.tokens.json) to public/index.html's stylesheet and migrate the whole diff --git a/public/index.html b/public/index.html index c809d84..d9169c8 100644 --- a/public/index.html +++ b/public/index.html @@ -42,12 +42,50 @@ @@ -3454,8 +3492,8 @@
Copy
+ style="display:block;padding:10px 18px;font-size:13px;font-weight:600;background:#818cf8;color:#fff;border-radius:8px;text-decoration:none;"> ⚡ Open in wallet
@@ -5659,7 +5697,7 @@ // cookies I lose this" risk. const isAnon = isMulti() && !state.account?.user; const anonWarning = isAnon - ? `
+ ? `
Heads up: Credits you buy now are tied to this browser. Sign up for a free Recaps account (30 seconds) to save them across devices and protect them if you clear cookies.
` : ""; @@ -5760,7 +5798,7 @@ style="flex-shrink:0;padding:7px 12px;font-size:11px;font-weight:600;">Copy
+ style="display:block;padding:10px 18px;font-size:13px;font-weight:600;background:#818cf8;color:#fff;border-radius:8px;text-decoration:none;"> ⚡ Open in wallet
@@ -6332,7 +6370,7 @@ return `
-

${escHtml(tierName)}

+

${escHtml(tierName)}

${escHtml(priceLine)}

+ style="width:100%;padding:11px 14px;font-size:15px;background:#0a0e1a;color:#f1f5f9;border:1px solid #1e293b;border-radius:8px;outline:none;font-family:inherit;-webkit-text-fill-color:#f1f5f9;-webkit-box-shadow:0 0 0 1000px #0a0e1a inset;" /> `, + style="padding:4px 10px;font-size:11px;font-weight:600;border:1px solid #334155;border-radius:6px;cursor:pointer;background:${ops.activityHours === o.v ? "#818cf8" : "#1e293b"};color:${ops.activityHours === o.v ? "#fff" : "#94a3b8"};">${o.label}`, ) .join(""); let body = ""; @@ -7773,7 +7811,7 @@ autocomplete="off" autocapitalize="off" spellcheck="false" style="flex:1;min-width:0;padding:8px 10px;background:#0f172a;border:1px solid #334155;border-radius:6px;color:#e2e8f0;font-size:12px;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;outline:none;" />
@@ -8050,7 +8088,7 @@
+ style="padding:6px 14px;font-size:12px;font-weight:600;background:#818cf8;color:#fff;border:none;border-radius:6px;cursor:pointer;">Sign up Sign in
`; @@ -8160,7 +8198,7 @@
Not signed in
+ style="padding:6px 14px;font-size:12px;font-weight:600;background:#818cf8;color:#fff;border:none;border-radius:6px;cursor:pointer;">Sign up Sign in
`; @@ -8180,8 +8218,8 @@ '
' + 'Export your full library (summaries, folders, subscriptions) to transfer between devices, or import a library from another instance.' + '
' + - '' + + '' + '
@@ -10251,7 +10289,7 @@ state.account?.state === "anonymous" && (state.account?.available_trial_credits || 0) > 0; const anonCreditsLine = showAnonCreditsHint - ? `
+ ? `
${state.account.available_trial_credits} free credit${state.account.available_trial_credits === 1 ? "" : "s"} — paste a link to claim ${state.account.available_trial_credits === 1 ? "it" : "them"}. Sign up after for more.
` : ""; @@ -11108,9 +11146,9 @@ // early. Don't "simplify" either away. const SHARE_PAGE_CSS = '*{box-sizing:border-box}' + - 'body{margin:0;background:#0b1120;color:#e2e8f0;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;line-height:1.5}' + + 'body{margin:0;background:#0a0e1a;color:#e2e8f0;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;line-height:1.5}' + '.wrap{max-width:860px;margin:0 auto;padding:20px 16px 64px}' + - '.rc-head h1{font-size:20px;font-weight:680;color:#f1f5f9;margin:0 0 6px;line-height:1.3}' + + '.rc-head h1{font-size:20px;font-weight:700;color:#f1f5f9;margin:0 0 6px;line-height:1.3}' + '.rc-meta{font-size:12px;color:#64748b;margin:0 0 16px}' + '.rc-meta a{color:#818cf8;text-decoration:none}' + '.rc-meta a:hover{text-decoration:underline}' + @@ -11130,7 +11168,7 @@ '.chunk.now-playing .chunk-play-btn{background:#22c55e;color:#fff}' + '.chunk-info{flex:1;min-width:0}' + '.chunk-title-row{display:flex;align-items:baseline;gap:6px;flex-wrap:wrap}' + - '.chunk-title{font-size:13px;font-weight:650;color:#f1f5f9;line-height:1.3}' + + '.chunk-title{font-size:13px;font-weight:600;color:#f1f5f9;line-height:1.3}' + '.chunk-time{font-size:10px;color:#475569;font-weight:500;font-family:"SF Mono",Menlo,monospace;white-space:nowrap}' + '.chunk-summary{margin:3px 0 0;font-size:12px;line-height:1.5;color:#94a3b8}' + '.chunk-arrow{font-size:22px;color:#475569;transition:transform 0.2s;flex-shrink:0;padding:4px 8px;border-radius:6px;line-height:1}' + @@ -12381,7 +12419,7 @@ style="padding:9px 12px;font-size:13px;background:#0a0e1a;color:#e2e8f0;border:1px solid #334155;border-radius:8px;outline:none;" />