From f2edde0305374cc227a56bba0cc56a759df090ef Mon Sep 17 00:00:00 2001 From: zurdi Date: Tue, 28 Apr 2026 15:55:18 +0000 Subject: [PATCH] feat(frontend-v2): migrate visible surfaces to theme-aware tokens MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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) --- .../src/v2/components/AppShell/AppNav.vue | 10 +++---- .../src/v2/components/AppShell/UserMenu.vue | 8 +++--- .../Collections/CollectionMosaic.vue | 11 ++------ .../components/Collections/CollectionTile.vue | 14 ++-------- .../src/v2/components/Gallery/AlphaStrip.vue | 10 +++---- .../v2/components/Gallery/GalleryToolbar.vue | 21 ++++---------- .../components/Gallery/GameCard/GameCard.vue | 4 +-- .../src/v2/components/Gallery/GameList.vue | 8 +++--- .../src/v2/components/Gallery/InfoPanel.vue | 12 ++------ .../components/Gallery/LetterGroupedGrid.vue | 12 ++++---- frontend/src/v2/components/Home/CardRow.vue | 15 ++++------ .../v2/components/Platforms/PlatformTile.vue | 28 ++++--------------- .../v2/components/Settings/SettingsNav.vue | 10 +++---- .../v2/components/Settings/SettingsShell.vue | 6 ++-- frontend/src/v2/views/Gallery/Collection.vue | 2 +- frontend/src/v2/views/Gallery/Platform.vue | 2 +- frontend/src/v2/views/Home.vue | 2 +- .../src/v2/views/Settings/MetadataSources.vue | 22 +++++++-------- .../src/v2/views/Settings/UserInterface.vue | 24 ++++++++-------- 19 files changed, 85 insertions(+), 136 deletions(-) diff --git a/frontend/src/v2/components/AppShell/AppNav.vue b/frontend/src/v2/components/AppShell/AppNav.vue index 5135434a3..1f7f60bae 100644 --- a/frontend/src/v2/components/AppShell/AppNav.vue +++ b/frontend/src/v2/components/AppShell/AppNav.vue @@ -141,14 +141,14 @@ const activeTab = computed(() => { /* Ghost-pill styling for the "classic UI" button (matches the old RIconBtn ghost variant — translucent glass, subtle border). */ .r-v2-nav__classic { - background: rgba(255, 255, 255, 0.08) !important; - border: 1px solid rgba(255, 255, 255, 0.12) !important; - color: rgba(255, 255, 255, 0.8) !important; + background: var(--r-color-surface) !important; + border: 1px solid var(--r-color-border-strong) !important; + color: var(--r-color-fg-secondary) !important; opacity: 1; } .r-v2-nav__classic:hover { - background: rgba(255, 255, 255, 0.16) !important; - color: #fff !important; + background: var(--r-color-surface-hover) !important; + color: var(--r-color-fg) !important; } @media (max-width: 768px) { diff --git a/frontend/src/v2/components/AppShell/UserMenu.vue b/frontend/src/v2/components/AppShell/UserMenu.vue index 7d49dd41c..ad9ebe703 100644 --- a/frontend/src/v2/components/AppShell/UserMenu.vue +++ b/frontend/src/v2/components/AppShell/UserMenu.vue @@ -240,8 +240,8 @@ async function onLogout() { diff --git a/frontend/src/v2/components/Collections/CollectionTile.vue b/frontend/src/v2/components/Collections/CollectionTile.vue index 1c4351750..0a2d7d863 100644 --- a/frontend/src/v2/components/Collections/CollectionTile.vue +++ b/frontend/src/v2/components/Collections/CollectionTile.vue @@ -137,7 +137,7 @@ const morphStyle = computed(() => 0 0 18px rgba(139, 116, 232, 0.55); } .coll-tile:focus-visible .coll-tile__name { - color: #fff; + color: var(--r-color-fg); } .coll-tile__kind { @@ -157,27 +157,19 @@ const morphStyle = computed(() => .coll-tile__name { font-size: 12.5px; font-weight: var(--r-font-weight-semibold); - color: rgba(255, 255, 255, 0.85); + color: var(--r-color-fg-secondary); padding: 0 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } -:global(.r-v2.r-v2-light) .coll-tile__name { - color: rgba(17, 17, 23, 0.85); -} - .coll-tile__count { font-size: 11px; - color: rgba(255, 255, 255, 0.35); + color: var(--r-color-fg-muted); padding: 0 2px; } -:global(.r-v2.r-v2-light) .coll-tile__count { - color: rgba(17, 17, 23, 0.45); -} - @media (max-width: 768px) { .coll-tile--row { width: 120px; diff --git a/frontend/src/v2/components/Gallery/AlphaStrip.vue b/frontend/src/v2/components/Gallery/AlphaStrip.vue index e8bed5779..0aab15084 100644 --- a/frontend/src/v2/components/Gallery/AlphaStrip.vue +++ b/frontend/src/v2/components/Gallery/AlphaStrip.vue @@ -91,7 +91,7 @@ function isActive(letter: string): boolean { font-family: inherit; font-size: 10px; font-weight: var(--r-font-weight-bold); - color: rgba(255, 255, 255, 0.14); + color: var(--r-color-fg-faint); cursor: default; line-height: 1; padding: 2.5px 0; @@ -104,12 +104,12 @@ function isActive(letter: string): boolean { } .alpha-strip__btn--has { - color: rgba(255, 255, 255, 0.5); + color: var(--r-color-fg-muted); cursor: pointer; } .alpha-strip__btn--has:hover { - color: #fff; - background: rgba(255, 255, 255, 0.1); + color: var(--r-color-fg); + background: var(--r-color-surface); } /* Scroll-spied letter — primary brand colour to stand out against the @@ -117,7 +117,7 @@ function isActive(letter: string): boolean { .alpha-strip__btn--current, .alpha-strip__btn--has.alpha-strip__btn--current { color: var(--r-color-brand-primary) !important; - background: rgba(255, 255, 255, 0.15); + background: var(--r-color-surface-hover); } .alpha-strip__btn--has.alpha-strip__btn--current:hover { color: var(--r-color-brand-primary-hover) !important; diff --git a/frontend/src/v2/components/Gallery/GalleryToolbar.vue b/frontend/src/v2/components/Gallery/GalleryToolbar.vue index ad126b8d3..9d498f4a2 100644 --- a/frontend/src/v2/components/Gallery/GalleryToolbar.vue +++ b/frontend/src/v2/components/Gallery/GalleryToolbar.vue @@ -216,8 +216,8 @@ function setSearch(value: string) { right: 14px; z-index: 5; padding: 4px; - background: rgba(7, 7, 15, 0.65); - border: 1px solid rgba(255, 255, 255, 0.08); + background: var(--r-color-bg-elevated); + border: 1px solid var(--r-color-border); border-radius: var(--r-radius-pill); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); @@ -263,10 +263,10 @@ function setSearch(value: string) { width: 32px !important; height: 32px !important; padding: 0 !important; - border: 1px solid rgba(255, 255, 255, 0.08) !important; - background: rgba(255, 255, 255, 0.05) !important; + border: 1px solid var(--r-color-border) !important; + background: var(--r-color-bg-elevated) !important; border-radius: 50% !important; - color: rgba(255, 255, 255, 0.7) !important; + color: var(--r-color-fg-secondary) !important; transition: background var(--r-motion-fast) var(--r-motion-ease-out), color var(--r-motion-fast) var(--r-motion-ease-out); @@ -276,16 +276,7 @@ function setSearch(value: string) { min-width: 0; } .gallery-toolbar__kebab:hover { - background: rgba(255, 255, 255, 0.12) !important; - color: #fff !important; -} -:global(.r-v2.r-v2-light) .gallery-toolbar__kebab { - border-color: rgba(17, 17, 23, 0.08) !important; - background: rgba(17, 17, 23, 0.05) !important; - color: rgba(17, 17, 23, 0.7) !important; -} -:global(.r-v2.r-v2-light) .gallery-toolbar__kebab:hover { - background: rgba(17, 17, 23, 0.12) !important; + background: var(--r-color-surface-hover) !important; color: var(--r-color-fg) !important; } diff --git a/frontend/src/v2/components/Gallery/GameCard/GameCard.vue b/frontend/src/v2/components/Gallery/GameCard/GameCard.vue index 58778ef40..15df464b8 100644 --- a/frontend/src/v2/components/Gallery/GameCard/GameCard.vue +++ b/frontend/src/v2/components/Gallery/GameCard/GameCard.vue @@ -373,7 +373,7 @@ const morphStyle = computed(() => { .r-gc__label { margin-top: 7px; font-size: 11.5px; - color: rgba(255, 255, 255, 0.55); + color: var(--r-color-fg-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; @@ -384,7 +384,7 @@ const morphStyle = computed(() => { .r-gc:hover .r-gc__label, .r-gc:focus-visible .r-gc__label, .r-gc--focused .r-gc__label { - color: rgba(255, 255, 255, 0.9); + color: var(--r-color-fg); } /* ── Hero (16:9) variant ──────────────────────────────────── */ diff --git a/frontend/src/v2/components/Gallery/GameList.vue b/frontend/src/v2/components/Gallery/GameList.vue index 1a3eef622..79464feaa 100644 --- a/frontend/src/v2/components/Gallery/GameList.vue +++ b/frontend/src/v2/components/Gallery/GameList.vue @@ -263,7 +263,7 @@ function ratingValue(rom: SimpleRom): string { flex-shrink: 0; border-radius: 4px; overflow: hidden; - background: rgba(255, 255, 255, 0.06); + background: var(--r-color-surface); display: grid; place-items: center; } @@ -278,7 +278,7 @@ function ratingValue(rom: SimpleRom): string { .game-list__thumb-fallback { font-size: 10px; font-weight: var(--r-font-weight-bold); - color: rgba(255, 255, 255, 0.4); + color: var(--r-color-fg-muted); } .game-list__meta { @@ -291,7 +291,7 @@ function ratingValue(rom: SimpleRom): string { .game-list__name { font-size: 13px; font-weight: var(--r-font-weight-medium); - color: rgba(255, 255, 255, 0.92); + color: var(--r-color-fg); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; @@ -300,7 +300,7 @@ function ratingValue(rom: SimpleRom): string { .game-list__filename { font-size: 11px; - color: rgba(255, 255, 255, 0.35); + color: var(--r-color-fg-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; diff --git a/frontend/src/v2/components/Gallery/InfoPanel.vue b/frontend/src/v2/components/Gallery/InfoPanel.vue index d8eee0198..66f079341 100644 --- a/frontend/src/v2/components/Gallery/InfoPanel.vue +++ b/frontend/src/v2/components/Gallery/InfoPanel.vue @@ -50,14 +50,10 @@ withDefaults(defineProps(), { align-items: center; gap: 40px; padding: 28px 0; - border-bottom: 1px solid rgba(255, 255, 255, 0.07); + border-bottom: 1px solid var(--r-color-border); margin-bottom: 12px; } -:global(.r-v2.r-v2-light) .info-panel { - border-bottom-color: rgba(17, 17, 23, 0.08); -} - .info-panel--no-border { border-bottom: 0; } @@ -82,15 +78,11 @@ withDefaults(defineProps(), { font-size: var(--r-font-size-3xl); font-weight: var(--r-font-weight-extrabold); letter-spacing: -0.025em; - color: #fff; + color: var(--r-color-fg); line-height: 1.1; margin: 0 0 10px 0; } -:global(.r-v2.r-v2-light) .info-panel__title { - color: var(--r-color-fg); -} - .info-panel__tags { display: flex; gap: 7px; diff --git a/frontend/src/v2/components/Gallery/LetterGroupedGrid.vue b/frontend/src/v2/components/Gallery/LetterGroupedGrid.vue index 6abe6cb96..2d2028c74 100644 --- a/frontend/src/v2/components/Gallery/LetterGroupedGrid.vue +++ b/frontend/src/v2/components/Gallery/LetterGroupedGrid.vue @@ -90,7 +90,7 @@ defineEmits<{ (e: "load-more"): void }>(); font-weight: var(--r-font-weight-bold); letter-spacing: 0.1em; text-transform: uppercase; - color: rgba(255, 255, 255, 0.22); + color: var(--r-color-fg-faint); margin-bottom: 12px; } @@ -104,9 +104,9 @@ defineEmits<{ (e: "load-more"): void }>(); margin: 24px auto 0; display: flex; appearance: none; - background: rgba(255, 255, 255, 0.08); - border: 1px solid rgba(255, 255, 255, 0.12); - color: rgba(255, 255, 255, 0.85); + background: var(--r-color-surface); + border: 1px solid var(--r-color-border-strong); + color: var(--r-color-fg-secondary); border-radius: var(--r-radius-pill); padding: 8px 22px; font-size: 13px; @@ -115,7 +115,7 @@ defineEmits<{ (e: "load-more"): void }>(); font-family: inherit; } .r-v2-lgg__more:hover:not(:disabled) { - background: rgba(255, 255, 255, 0.14); + background: var(--r-color-surface-hover); } .r-v2-lgg__more:disabled { opacity: 0.5; @@ -124,7 +124,7 @@ defineEmits<{ (e: "load-more"): void }>(); .r-v2-lgg__empty { padding: 80px 0; - color: rgba(255, 255, 255, 0.25); + color: var(--r-color-fg-faint); font-size: 13.5px; text-align: center; } diff --git a/frontend/src/v2/components/Home/CardRow.vue b/frontend/src/v2/components/Home/CardRow.vue index 809abf545..27f7e9594 100644 --- a/frontend/src/v2/components/Home/CardRow.vue +++ b/frontend/src/v2/components/Home/CardRow.vue @@ -153,10 +153,7 @@ onMounted(() => { /* gap is driven inline via the --card-row icon gap prop. */ padding: 0 var(--r-row-pad); margin-bottom: 12px; - color: rgba(255, 255, 255, 0.88); -} -:global(.r-v2.r-v2-light) .card-row__head { - color: rgba(17, 17, 23, 0.88); + color: var(--r-color-fg-secondary); } /* Icon slot — sizes to its content so the caller's RIcon `size` drives @@ -182,7 +179,7 @@ onMounted(() => { .card-row__count { font-size: 12px; font-weight: var(--r-font-weight-regular); - color: rgba(255, 255, 255, 0.3); + color: var(--r-color-fg-faint); margin-left: 4px; } @@ -210,7 +207,7 @@ onMounted(() => { display: grid; place-items: center; cursor: pointer; - color: rgba(255, 255, 255, 0.85); + color: var(--r-color-fg-secondary); transition: color 0.2s, opacity 0.2s; @@ -218,12 +215,12 @@ onMounted(() => { .card-row__arrow--left { left: 0; - background: linear-gradient(to right, rgba(7, 7, 15, 0.9), transparent); + background: linear-gradient(to right, var(--r-color-bg), transparent); border-radius: 0 6px 6px 0; } .card-row__arrow--right { right: 0; - background: linear-gradient(to left, rgba(7, 7, 15, 0.9), transparent); + background: linear-gradient(to left, var(--r-color-bg), transparent); border-radius: 6px 0 0 6px; } @@ -232,7 +229,7 @@ onMounted(() => { } .card-row__arrow:hover { - color: #fff; + color: var(--r-color-fg); } @media (max-width: 768px) { diff --git a/frontend/src/v2/components/Platforms/PlatformTile.vue b/frontend/src/v2/components/Platforms/PlatformTile.vue index d7cceced7..adbec35e9 100644 --- a/frontend/src/v2/components/Platforms/PlatformTile.vue +++ b/frontend/src/v2/components/Platforms/PlatformTile.vue @@ -99,10 +99,10 @@ const morphStyle = computed(() => align-items: center; gap: 12px; padding: 24px 16px 18px; - background: rgba(255, 255, 255, 0.045); - border: 1px solid rgba(255, 255, 255, 0.07); + background: var(--r-color-bg-elevated); + border: 1px solid var(--r-color-border); border-radius: var(--r-radius-card); - color: rgba(255, 255, 255, 0.75); + color: var(--r-color-fg-secondary); text-decoration: none; cursor: pointer; transition: @@ -111,25 +111,13 @@ const morphStyle = computed(() => transform var(--r-motion-fast); } -:global(.r-v2.r-v2-light) .plat-tile { - background: rgba(17, 17, 23, 0.035); - border-color: rgba(17, 17, 23, 0.07); - color: rgba(17, 17, 23, 0.75); -} - .plat-tile:hover, .plat-tile:focus-visible { - background: rgba(255, 255, 255, 0.09); - border-color: rgba(255, 255, 255, 0.18); + background: var(--r-color-surface); + border-color: var(--r-color-border-strong); transform: translateY(-2px); } -:global(.r-v2.r-v2-light) .plat-tile:hover, -:global(.r-v2.r-v2-light) .plat-tile:focus-visible { - background: rgba(17, 17, 23, 0.07); - border-color: rgba(17, 17, 23, 0.15); -} - /* Keyboard / gamepad focus — stronger border + stacked brand glow so the focused tile reads distinctly from a hover. */ .plat-tile:focus-visible { @@ -171,11 +159,7 @@ const morphStyle = computed(() => .plat-tile__count { font-size: 11px; - color: rgba(255, 255, 255, 0.35); -} - -:global(.r-v2.r-v2-light) .plat-tile__count { - color: rgba(17, 17, 23, 0.45); + color: var(--r-color-fg-muted); } @media (max-width: 768px) { diff --git a/frontend/src/v2/components/Settings/SettingsNav.vue b/frontend/src/v2/components/Settings/SettingsNav.vue index 1ebab08fd..d56c8df4a 100644 --- a/frontend/src/v2/components/Settings/SettingsNav.vue +++ b/frontend/src/v2/components/Settings/SettingsNav.vue @@ -94,8 +94,8 @@ const entries = computed(() => [ flex-wrap: wrap; gap: 6px; padding: 6px; - background: rgba(13, 17, 23, 0.55); - border: 1px solid rgba(255, 255, 255, 0.06); + background: var(--r-color-bg-elevated); + border: 1px solid var(--r-color-border); border-radius: var(--r-radius-lg); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); @@ -108,7 +108,7 @@ const entries = computed(() => [ padding: 8px 14px; border-radius: var(--r-radius-pill); text-decoration: none; - color: rgba(255, 255, 255, 0.65); + color: var(--r-color-fg-secondary); font-size: 13px; font-weight: var(--r-font-weight-medium); transition: @@ -117,8 +117,8 @@ const entries = computed(() => [ white-space: nowrap; } .r-v2-settings-nav__link:hover { - background: rgba(255, 255, 255, 0.06); - color: rgba(255, 255, 255, 0.9); + background: var(--r-color-surface); + color: var(--r-color-fg); } .r-v2-settings-nav__link--active { background: rgba(139, 116, 232, 0.18); diff --git a/frontend/src/v2/components/Settings/SettingsShell.vue b/frontend/src/v2/components/Settings/SettingsShell.vue index 084dc6931..37bf8fc8e 100644 --- a/frontend/src/v2/components/Settings/SettingsShell.vue +++ b/frontend/src/v2/components/Settings/SettingsShell.vue @@ -105,7 +105,7 @@ setBgArt(null); .r-v2-settings__subtitle { margin: 2px 0 0; - color: rgba(255, 255, 255, 0.55); + color: var(--r-color-fg-secondary); font-size: var(--r-font-size-sm); max-width: 560px; } @@ -116,8 +116,8 @@ setBgArt(null); } .r-v2-settings__panel { - background: rgba(13, 17, 23, 0.7); - border: 1px solid rgba(255, 255, 255, 0.07); + background: var(--r-color-bg-elevated); + border: 1px solid var(--r-color-border); border-radius: var(--r-radius-lg); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); diff --git a/frontend/src/v2/views/Gallery/Collection.vue b/frontend/src/v2/views/Gallery/Collection.vue index c1f682002..15b4d0ee7 100644 --- a/frontend/src/v2/views/Gallery/Collection.vue +++ b/frontend/src/v2/views/Gallery/Collection.vue @@ -358,7 +358,7 @@ function onListSort(options: { sortBy: SortEntry[] }) { .r-v2-coll__empty { padding: 80px 0; - color: rgba(255, 255, 255, 0.25); + color: var(--r-color-fg-faint); font-size: 13.5px; text-align: center; } diff --git a/frontend/src/v2/views/Gallery/Platform.vue b/frontend/src/v2/views/Gallery/Platform.vue index 31122f89e..41b959fa7 100644 --- a/frontend/src/v2/views/Gallery/Platform.vue +++ b/frontend/src/v2/views/Gallery/Platform.vue @@ -350,7 +350,7 @@ function onListSort(options: { sortBy: SortEntry[] }) { .r-v2-plat__empty { padding: 80px 0; - color: rgba(255, 255, 255, 0.25); + color: var(--r-color-fg-faint); font-size: 13.5px; text-align: center; } diff --git a/frontend/src/v2/views/Home.vue b/frontend/src/v2/views/Home.vue index a13a28395..b01763ac1 100644 --- a/frontend/src/v2/views/Home.vue +++ b/frontend/src/v2/views/Home.vue @@ -227,7 +227,7 @@ function collectionCovers(pathCovers: string[] | undefined): string[] { } .r-v2-home__empty { - color: rgba(255, 255, 255, 0.25); + color: var(--r-color-fg-faint); font-size: 13px; padding: 24px var(--r-row-pad); } diff --git a/frontend/src/v2/views/Settings/MetadataSources.vue b/frontend/src/v2/views/Settings/MetadataSources.vue index 25cef07cb..f6ceb67fb 100644 --- a/frontend/src/v2/views/Settings/MetadataSources.vue +++ b/frontend/src/v2/views/Settings/MetadataSources.vue @@ -230,8 +230,8 @@ onMounted(() => { flex-direction: column; gap: 12px; padding: 14px; - background: rgba(13, 17, 23, 0.7); - border: 1px solid rgba(255, 255, 255, 0.07); + background: var(--r-color-bg-elevated); + border: 1px solid var(--r-color-border); border-radius: var(--r-radius-lg); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); @@ -257,8 +257,8 @@ onMounted(() => { width: 40px; height: 40px; border-radius: var(--r-radius-sm); - background: rgba(255, 255, 255, 0.04); - border: 1px solid rgba(255, 255, 255, 0.06); + background: var(--r-color-bg-elevated); + border: 1px solid var(--r-color-border); display: grid; place-items: center; padding: 4px; @@ -278,12 +278,12 @@ onMounted(() => { margin: 0; font-size: 14px; font-weight: var(--r-font-weight-semibold); - color: rgba(255, 255, 255, 0.9); + color: var(--r-color-fg); } .r-v2-meta__status { margin: 2px 0 0; font-size: 11px; - color: rgba(255, 255, 255, 0.55); + color: var(--r-color-fg-secondary); } .r-v2-meta__indicators { @@ -300,9 +300,9 @@ onMounted(() => { border-radius: var(--r-radius-pill); font-size: 11px; font-weight: var(--r-font-weight-medium); - background: rgba(255, 255, 255, 0.04); - color: rgba(255, 255, 255, 0.55); - border: 1px solid rgba(255, 255, 255, 0.07); + background: var(--r-color-bg-elevated); + color: var(--r-color-fg-secondary); + border: 1px solid var(--r-color-border); } .r-v2-meta__indicator--on { background: rgba(34, 197, 94, 0.12); @@ -320,7 +320,7 @@ onMounted(() => { color: #facc15; } .r-v2-meta__indicator--muted { - background: rgba(255, 255, 255, 0.03); - color: rgba(255, 255, 255, 0.35); + background: var(--r-color-bg-elevated); + color: var(--r-color-fg-muted); } diff --git a/frontend/src/v2/views/Settings/UserInterface.vue b/frontend/src/v2/views/Settings/UserInterface.vue index aa2cf987a..f615dcecd 100644 --- a/frontend/src/v2/views/Settings/UserInterface.vue +++ b/frontend/src/v2/views/Settings/UserInterface.vue @@ -141,8 +141,8 @@ const uiVersionCards = computed(() => [