refactor(theming): yellow-* → warning-* for status/pending semantics

Sweep yellow color classes that signal pending/warning status (admin pending pills,
withdrawal status, risk indicators) → warning-* tokens. Telegram Stars / fortune wheel
yellow kept as brand (TopUpAmount + Wheel + FortuneWheel).
This commit is contained in:
c0mrade
2026-05-26 11:21:16 +03:00
parent ae7da0c86a
commit d7cbbe077a
6 changed files with 13 additions and 12 deletions

View File

@@ -24,8 +24,8 @@ export type StatusBadge = { labelKey: string; color: string; bgColor: string };
export const withdrawalStatusBadgeConfig: Record<string, StatusBadge> = {
pending: {
labelKey: 'admin.withdrawals.status.pending',
color: 'text-yellow-400',
bgColor: 'bg-yellow-500/20',
color: 'text-warning-400',
bgColor: 'bg-warning-500/20',
},
approved: {
labelKey: 'admin.withdrawals.status.approved',
@@ -62,7 +62,8 @@ export function getWithdrawalStatusBadge(status: string): StatusBadge {
export function getRiskColor(score: number): { text: string; bg: string; bar: string } {
if (score < 30)
return { text: 'text-success-400', bg: 'bg-success-500/20', bar: 'bg-success-500' };
if (score < 50) return { text: 'text-yellow-400', bg: 'bg-yellow-500/20', bar: 'bg-yellow-500' };
if (score < 50)
return { text: 'text-warning-400', bg: 'bg-warning-500/20', bar: 'bg-warning-500' };
if (score < 70) return { text: 'text-orange-400', bg: 'bg-orange-500/20', bar: 'bg-orange-500' };
return { text: 'text-error-400', bg: 'bg-error-500/20', bar: 'bg-error-500' };
}
@@ -72,7 +73,7 @@ export function getRiskLevelColor(level: string): { text: string; bg: string } {
case 'low':
return { text: 'text-success-400', bg: 'bg-success-500/20' };
case 'medium':
return { text: 'text-yellow-400', bg: 'bg-yellow-500/20' };
return { text: 'text-warning-400', bg: 'bg-warning-500/20' };
case 'high':
return { text: 'text-orange-400', bg: 'bg-orange-500/20' };
case 'critical':