From ed280b81fc1af1a78bbd9abf16ffc541a29b4dd3 Mon Sep 17 00:00:00 2001 From: Astrenix <121576066+Astrenix@users.noreply.github.com> Date: Sun, 19 Jul 2026 02:45:41 +0800 Subject: [PATCH] style(frontend): align dark-mode surfaces with the slate dark palette MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The project's dark theme uses the custom slate-based dark-* palette (928 dark:bg-dark-* / 787 dark:border-dark-* occurrences), but a minority of surfaces still used Tailwind's neutral gray-* scale, which has a visibly cooler hue next to slate cards — most noticeably the filter dropdown panels on the usage, accounts and subscriptions pages. Migrate the remaining dark:bg-gray-* / dark:border-gray-* (and their hover: variants) to the dark-* palette across 12 components: filter dropdowns, chart card borders, menu separators, and small badges. 49 class-string substitutions, no structural or logic changes; dark:text-gray-* is untouched since gray text on dark surfaces is the established project-wide convention. Co-Authored-By: Claude Fable 5 --- .../account/OpenAIQuotaResetCell.vue | 8 +++---- .../account/UpstreamBillingRateCell.vue | 2 +- .../components/admin/usage/UsageFilters.vue | 12 +++++----- .../charts/EndpointDistributionChart.vue | 6 ++--- .../charts/GroupDistributionChart.vue | 4 ++-- .../charts/ModelDistributionChart.vue | 8 +++---- .../charts/UserBreakdownSubTable.vue | 2 +- .../components/common/AutoRefreshButton.vue | 6 ++--- .../user/dashboard/UserDashboardCharts.vue | 2 +- frontend/src/views/admin/AccountsView.vue | 24 +++++++++---------- .../src/views/admin/SubscriptionsView.vue | 18 +++++++------- .../ops/components/OpsDashboardHeader.vue | 6 ++--- 12 files changed, 49 insertions(+), 49 deletions(-) diff --git a/frontend/src/components/account/OpenAIQuotaResetCell.vue b/frontend/src/components/account/OpenAIQuotaResetCell.vue index b7da95cf2..c1b5e1eec 100644 --- a/frontend/src/components/account/OpenAIQuotaResetCell.vue +++ b/frontend/src/components/account/OpenAIQuotaResetCell.vue @@ -66,7 +66,7 @@
{{ t('admin.accounts.openaiQuotaReset.expiresAt', { time: formatResetCreditExpiry(primaryResetCreditExpiry, 'short') }) }} @@ -75,7 +75,7 @@ v-if="hiddenResetCreditCount > 0" type="button" data-testid="reset-credit-expiry-toggle" - class="inline-flex items-center rounded-full bg-gray-100 px-1.5 py-0.5 text-[10px] font-medium leading-4 text-gray-600 transition-colors hover:bg-gray-200 dark:bg-gray-800 dark:text-gray-300 dark:hover:bg-gray-700" + class="inline-flex items-center rounded-full bg-gray-100 px-1.5 py-0.5 text-[10px] font-medium leading-4 text-gray-600 transition-colors hover:bg-gray-200 dark:bg-dark-800 dark:text-gray-300 dark:hover:bg-dark-700" :aria-expanded="showResetCreditDetails" :aria-label="resetCreditDetailsToggleLabel" :title="resetCreditDetailsTitle" @@ -88,7 +88,7 @@
{{ t('admin.accounts.openaiQuotaReset.expirationDetails') }} - + {{ formatResetCreditExpiry(expiresAt, 'short') }}
diff --git a/frontend/src/components/account/UpstreamBillingRateCell.vue b/frontend/src/components/account/UpstreamBillingRateCell.vue index 98e5671b6..f0c86dcab 100644 --- a/frontend/src/components/account/UpstreamBillingRateCell.vue +++ b/frontend/src/components/account/UpstreamBillingRateCell.vue @@ -3,7 +3,7 @@