From d726248e656bcd5819c4de527b98e960d67c3e32 Mon Sep 17 00:00:00 2001 From: Claude Date: Mon, 9 Feb 2026 07:25:41 +0000 Subject: [PATCH] Replace hardcoded values in bottom-tab-bar with theme constants - Add `surfaceGlass` semantic token for frosted glass background color - Add `breakpoints.mobile` constant (768px) for mobile/desktop media queries - Use theme constants in bottom-tab-bar.tsx instead of hardcoded rgba and media query - Add corresponding `--semantic-surface-glass` CSS variable - Document why !important is needed on background-color in index.css (overrides MUI CssBaseline's Emotion-injected styles) https://claude.ai/code/session_01XMnEqXu6R4M4sjuUdgmQsy --- .../web/app/components/bottom-tab-bar/bottom-tab-bar.tsx | 4 ++-- packages/web/app/components/index.css | 5 ++++- packages/web/app/theme/theme-config.ts | 6 ++++++ 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/packages/web/app/components/bottom-tab-bar/bottom-tab-bar.tsx b/packages/web/app/components/bottom-tab-bar/bottom-tab-bar.tsx index 0e539d62..17d56a91 100644 --- a/packages/web/app/components/bottom-tab-bar/bottom-tab-bar.tsx +++ b/packages/web/app/components/bottom-tab-bar/bottom-tab-bar.tsx @@ -281,13 +281,13 @@ function BottomTabBar({ boardDetails, angle, boardConfigs }: BottomTabBarProps) onChange={handleTabChange} showLabels sx={{ - background: 'rgba(255, 255, 255, 0.3)', + background: themeTokens.semantic.surfaceGlass, WebkitBackdropFilter: 'blur(5px)', backdropFilter: 'blur(5px)', borderRadius: `${themeTokens.borderRadius.xl}px`, py: `${themeTokens.spacing[2]}px`, height: 'auto', - '@media (min-width: 768px)': { display: 'none' }, + [`@media (min-width: ${themeTokens.breakpoints.mobile}px)`]: { display: 'none' }, }} >