From 17b0959f1059f0cf6e9eca3765580db811e56329 Mon Sep 17 00:00:00 2001 From: jerelvelarde Date: Fri, 27 Mar 2026 07:09:06 -0700 Subject: [PATCH 1/2] fix: make demo gallery readable in dark mode on mobile Give the drawer an opaque background and increase card/chip contrast in dark mode so text is legible over the animated background. Closes #73 --- apps/app/src/app/globals.css | 15 +++++++++++++++ .../components/demo-gallery/category-filter.tsx | 2 +- .../app/src/components/demo-gallery/demo-card.tsx | 2 +- 3 files changed, 17 insertions(+), 2 deletions(-) diff --git a/apps/app/src/app/globals.css b/apps/app/src/app/globals.css index caa5763..54422d2 100644 --- a/apps/app/src/app/globals.css +++ b/apps/app/src/app/globals.css @@ -637,6 +637,21 @@ body, html { } } +/* === Demo Gallery Dark Mode Readability Fix === */ +:root.dark .demo-gallery-drawer { + background: #1a1a2e !important; +} + +:root.dark .demo-gallery-drawer .demo-gallery-card { + background: rgba(255, 255, 255, 0.08) !important; + border-color: rgba(255, 255, 255, 0.1) !important; +} + +:root.dark .demo-gallery-drawer .demo-gallery-chip { + background: rgba(255, 255, 255, 0.08); + border-color: rgba(255, 255, 255, 0.1); +} + /* === Flash Animation === */ .content-flash { animation: content-flash 700ms ease-out; diff --git a/apps/app/src/components/demo-gallery/category-filter.tsx b/apps/app/src/components/demo-gallery/category-filter.tsx index 3d09f09..4929aee 100644 --- a/apps/app/src/components/demo-gallery/category-filter.tsx +++ b/apps/app/src/components/demo-gallery/category-filter.tsx @@ -19,7 +19,7 @@ export function CategoryFilter({ selected, onSelect }: CategoryFilterProps) {