mirror of
https://github.com/rommapp/romm.git
synced 2026-12-06 15:54:45 +01:00
First pass of the dual-theme audit (premise #5). Replaces hardcoded rgba(255, 255, 255, ...) with token references on the surfaces a user sees first when toggling theme. Started at 429 hardcoded sites; this commit migrates ~69 across 19 files. The rest is debt — see CLAUDE.md §X. Surfaces now theme-aware: - AppShell: AppNav (classic-UI pill), UserMenu (avatar pill, chevron) - Home: section header colors, CardRow head/count/arrows, empty state - Galleries: GalleryToolbar (floating + kebab), Platform/Collection empty states, GameCard label, GameList row text/thumb, LetterGroupedGrid heading/load-more/empty, AlphaStrip letter colors, InfoPanel border/title - Tiles: PlatformTile (background/border/hover/count), CollectionTile (name/count), CollectionMosaic (background/empty) - Settings: SettingsShell (panel/subtitle), SettingsNav (panel/links), UserInterface (sections/cards/desc), MetadataSources (tiles/logos/ indicators) Tokens used: --r-color-bg-elevated, --r-color-surface, --r-color-surface-hover, --r-color-border, --r-color-border-strong, --r-color-fg, --r-color-fg-secondary, --r-color-fg-muted, --r-color-fg-faint. The verbose `:global(.r-v2.r-v2-light) X { ... }` override blocks collapse into single-token rules; tokens already flip when html toggles between r-v2-dark and r-v2-light. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>