From 16ac7ca2b9c9a843dcbae39e9b60febb71927112 Mon Sep 17 00:00:00 2001 From: Sepehr Ramezani Date: Fri, 1 May 2026 16:48:15 +0200 Subject: [PATCH] fix(ui): profile page light mode color fixes - Replace all accent colors with primary (accent is near-white in light mode) - Add dark: variants for status colors (emerald, red, amber) that were dark-only - Fix usage bar fill color from bg-accent to bg-primary - Fix alert boxes with proper light/dark variants (bg-amber-50/dark:bg-amber-500/10) - Fix danger zone title with dark: variant - Fix info banner with proper muted background Co-Authored-By: Claude Opus 4.5 --- frontend/src/app/dashboard/profile/page.tsx | 38 ++++++++++----------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/frontend/src/app/dashboard/profile/page.tsx b/frontend/src/app/dashboard/profile/page.tsx index 124bad3..c66dc7f 100644 --- a/frontend/src/app/dashboard/profile/page.tsx +++ b/frontend/src/app/dashboard/profile/page.tsx @@ -73,8 +73,8 @@ function UsageBar({ label, used, limit, icon }: UsageBarProps) {
{icon} {label}
= 90 ? 'text-red-400' : p >= 70 ? 'text-amber-400' : 'text-muted-foreground' + isUnlimited ? 'text-emerald-600 dark:text-emerald-400' : + p >= 90 ? 'text-red-600 dark:text-red-400' : p >= 70 ? 'text-amber-600 dark:text-amber-400' : 'text-muted-foreground' )}> {isUnlimited ? '∞' : `${used} / ${limit}`} @@ -84,7 +84,7 @@ function UsageBar({ label, used, limit, icon }: UsageBarProps) {
= 90 ? 'bg-red-500' : p >= 70 ? 'bg-amber-500' : 'bg-accent' + p >= 90 ? 'bg-red-500' : p >= 70 ? 'bg-amber-500' : 'bg-primary' )} style={{ width: `${p}%` }} /> @@ -172,7 +172,7 @@ export default function ProfilePage() { if (loading) { return (
- +
); } @@ -261,7 +261,7 @@ export default function ProfilePage() { - + Mon abonnement @@ -293,7 +293,7 @@ export default function ProfilePage() {
{!isFreePlan && user?.subscription_ends_at && ( -
+
{isCanceling @@ -334,7 +334,7 @@ export default function ProfilePage() { {!isFreePlan && !isCanceling && ( - + Zone danger @@ -377,7 +377,7 @@ export default function ProfilePage() { - + Utilisation ce mois-ci Réinitialisation le {nextResetDate()} @@ -399,20 +399,20 @@ export default function ProfilePage() { /> {extraCredits > 0 && ( -
- - +
+ + {extraCredits} crédit{extraCredits > 1 ? 's' : ''} supplémentaire{extraCredits > 1 ? 's' : ''} disponible{extraCredits > 1 ? 's' : ''}
)} {usage?.upgrade_required && ( -
- +
+
-

Quota atteint

-

Passez à un forfait supérieur pour continuer à traduire.

+

Quota atteint

+

Passez à un forfait supérieur pour continuer à traduire.