From d09aaff78f858d64b459bc2370eea6ca168845b5 Mon Sep 17 00:00:00 2001 From: dcccrypto Date: Thu, 16 Jul 2026 08:43:28 +0100 Subject: [PATCH] fix(theme): light-mode contrast stragglers MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - DEVNET header pill: var(--warning) instead of hardcoded amber-400 (#fbbf24 is ~1.7:1 on the light theme's white header) - Trade utility row: address chip, copy button, Analytics link, usd/tokens toggle, and the mobile sheet close button move from --text-dim (ghost decoration tier, ~1.5:1) to --text-muted — they carry information or are interactive, so they shouldn't sit in the deliberately-invisible tier - Dashboard connect-gate preview: crisp ghost (opacity only) instead of blur-sm, which dissolved into shapeless smudges on the light theme Co-Authored-By: Claude Fable 5 --- app/app/dashboard/page.tsx | 7 +++++-- app/app/trade/[slab]/page.tsx | 12 ++++++------ app/components/layout/Header.tsx | 7 +++++-- 3 files changed, 16 insertions(+), 10 deletions(-) diff --git a/app/app/dashboard/page.tsx b/app/app/dashboard/page.tsx index b9998fba..7e441de4 100644 --- a/app/app/dashboard/page.tsx +++ b/app/app/dashboard/page.tsx @@ -240,9 +240,12 @@ export default function DashboardPage() { Your personal command centre for trading on Percolator

- {/* Blurred preview */} + {/* Ghost preview of the dashboard layout behind the connect gate. + Crisp at reduced opacity, NOT blurred: blur-sm + near-white + panels on the light theme's white bg dissolved into shapeless + smudges that read as a rendering glitch rather than a preview. */}
-
+
{[1, 2, 3, 4].map((i) => (
diff --git a/app/app/trade/[slab]/page.tsx b/app/app/trade/[slab]/page.tsx index 651ba6a0..5706fcab 100644 --- a/app/app/trade/[slab]/page.tsx +++ b/app/app/trade/[slab]/page.tsx @@ -93,7 +93,7 @@ function UsdToggleButton() { "rounded-sm px-2 py-0.5 text-[9px] font-medium transition-colors duration-150", !showUsd ? "bg-[var(--accent)]/10 text-[var(--accent)]" - : "text-[var(--text-dim)] hover:text-[var(--text-secondary)]", + : "text-[var(--text-muted)] hover:text-[var(--text-secondary)]", ].join(" ")} > tokens @@ -104,7 +104,7 @@ function UsdToggleButton() { "rounded-sm px-2 py-0.5 text-[9px] font-medium transition-colors duration-150", showUsd ? "bg-[var(--accent)]/10 text-[var(--accent)]" - : "text-[var(--text-dim)] hover:text-[var(--text-secondary)]", + : "text-[var(--text-muted)] hover:text-[var(--text-secondary)]", ].join(" ")} > usd @@ -124,7 +124,7 @@ function CopyButton({ text }: { text: string }) { toast("Address copied to clipboard!", "success"); setTimeout(() => setCopied(false), 1500); }} - className="inline-flex items-center text-[var(--text-dim)] transition-colors duration-150 hover:text-[var(--accent)]" + className="inline-flex items-center text-[var(--text-muted)] transition-colors duration-150 hover:text-[var(--accent)]" title="Copy address" > {copied ? ( @@ -301,7 +301,7 @@ function MobileOrderSheet({ slab }: { slab: string }) { >
Order ticket -
@@ -517,7 +517,7 @@ function TradePageInner({ slab }: { slab: string }) { Shown on all breakpoints (the pre-rebuild page only showed this on mobile; desktop had no equivalent, which was inconsistent). */}
- + {shortAddress} @@ -542,7 +542,7 @@ function TradePageInner({ slab }: { slab: string }) { Analytics → diff --git a/app/components/layout/Header.tsx b/app/components/layout/Header.tsx index f32851b3..14dd6c42 100644 --- a/app/components/layout/Header.tsx +++ b/app/components/layout/Header.tsx @@ -207,12 +207,15 @@ export const Header: FC = () => { {/* Right */}
- {/* DEVNET badge — non-interactive pill */} + {/* DEVNET badge — non-interactive pill. var(--warning), not + hardcoded amber-400: #fbbf24 lands at ~1.7:1 on the light + theme's white header (near-invisible); the token resolves to a + readable amber-700 in light mode and stays amber in dark. */} {network === "devnet" && ( devnet