From 37b85d2fb7595eff8a35290e5839154d2089aab5 Mon Sep 17 00:00:00 2001 From: Sam Dornan Date: Thu, 12 Nov 2026 17:26:44 +0000 Subject: [PATCH] fix(frontend): give the bottom nav a wide, faint, theme-aware shadow The bar's --r-elev-1 shadow was tight and dark enough to read as a grey rim on the light theme. It now uses a 24px blur offset 6px with a new themed --r-color-bar-shadow token: 8% black on light, 35% on dark, where a faint shadow would vanish. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01NH5s4gd8SxSVBzdffah1Vz --- frontend/src/components/AppShell/BottomNav.vue | 2 +- frontend/src/styles/tokens.css | 1 + frontend/src/tokens/index.ts | 4 ++++ 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/frontend/src/components/AppShell/BottomNav.vue b/frontend/src/components/AppShell/BottomNav.vue index 43133ecb3..c8bcfe72d 100644 --- a/frontend/src/components/AppShell/BottomNav.vue +++ b/frontend/src/components/AppShell/BottomNav.vue @@ -123,7 +123,7 @@ html[data-bp~="xs"] .r-bottom-nav { inset 0 1px 0 color-mix(in srgb, white 28%, transparent), inset 0 -1px 0 color-mix(in srgb, white 6%, transparent), inset 0 0 18px color-mix(in srgb, white 5%, transparent), - var(--r-elev-1); + 0 6px 24px var(--r-color-bar-shadow); } /* A translucent capsule, so the tinted icon + label carry the selection. */ diff --git a/frontend/src/styles/tokens.css b/frontend/src/styles/tokens.css index 4439cc83a..37f2f6060 100644 --- a/frontend/src/styles/tokens.css +++ b/frontend/src/styles/tokens.css @@ -227,6 +227,7 @@ html.r-app { ); --r-color-switch-knob-on: light-dark(rgba(255, 255, 255, 0.95), #111117); --r-color-title-shadow: light-dark(transparent, rgba(0, 0, 0, 0.5)); + --r-color-bar-shadow: light-dark(rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.35)); --r-color-success: light-dark(#15a34a, #4ade80); --r-color-warning: light-dark(#ca8a04, #fbbf24); --r-color-danger: light-dark(#dc2626, #ff5050); diff --git a/frontend/src/tokens/index.ts b/frontend/src/tokens/index.ts index 359cbaea5..682c919dd 100644 --- a/frontend/src/tokens/index.ts +++ b/frontend/src/tokens/index.ts @@ -167,6 +167,9 @@ export const colorDark = { // background art. Light theme drops it (transparent): a dark blurred halo // under dark-on-light text just smudges. titleShadow: "rgba(0, 0, 0, 0.5)", + // Floating-bar drop shadow: wide and faint, so the bar lifts without a + // dark edge. Dark needs more to read at all. + barShadow: "rgba(0, 0, 0, 0.35)", } as const; export const colorLight = { @@ -215,6 +218,7 @@ export const colorLight = { // Detail-page title shadow: none on light (a dark blurred halo under the // dark-on-light title just smudges; the calm light backdrop needs no lift). titleShadow: "transparent", + barShadow: "rgba(0, 0, 0, 0.08)", } as const; // Cover-overlay surfaces: fixed dark glass values that never theme-flip.