refactor(theming): blue-* → accent-* in admin/internal usages

Sweep non-brand blue across admin pages, AnalyticsTab, TvQuickConnect, and menuLayout
style picker to accent tokens. Telegram-brand blue kept in BroadcastPreview (TG chat
mockup), the blocking screens (TG channel/bot CTAs), and the SuccessNotificationModal hero.
This commit is contained in:
c0mrade
2026-05-26 11:24:28 +03:00
parent 3df2134cba
commit 9bb1c2339a
7 changed files with 12 additions and 12 deletions

View File

@@ -208,7 +208,7 @@ interface MethodBadgeProps {
function MethodBadge({ method }: MethodBadgeProps) {
const colorMap: Record<string, string> = {
GET: 'bg-blue-500/20 text-blue-400',
GET: 'bg-accent-500/20 text-accent-400',
POST: 'bg-success-500/20 text-success-400',
PUT: 'bg-warning-500/20 text-warning-400',
PATCH: 'bg-warning-500/20 text-warning-400',

View File

@@ -76,7 +76,7 @@ const EmailIcon = () => (
function ChannelBadge({ channel }: { channel?: BroadcastChannel }) {
if (!channel || channel === 'telegram') {
return (
<span className="flex items-center gap-1 rounded-full bg-blue-500/20 px-2 py-0.5 text-xs text-blue-400">
<span className="flex items-center gap-1 rounded-full bg-accent-500/20 px-2 py-0.5 text-xs text-accent-400">
<TelegramIcon />
<span className="hidden sm:inline">Telegram</span>
</span>

View File

@@ -106,7 +106,7 @@ export default function AdminSalesStats() {
<StatCard
label={t('admin.salesStats.summary.newTrials')}
value={summaryLoading ? '...' : (summary?.new_trials ?? 0)}
valueClassName="text-blue-400"
valueClassName="text-accent-400"
/>
<StatCard
label={t('admin.salesStats.summary.conversion')}

View File

@@ -1691,8 +1691,8 @@ export default function AdminUserDetail() {
disabled={actionLoading}
className={`rounded-lg px-3 py-2 text-sm font-medium transition-all disabled:opacity-50 ${
confirmingAction === 'resetTrial'
? 'bg-blue-500 text-white'
: 'bg-blue-500/15 text-blue-400 hover:bg-blue-500/25'
? 'bg-accent-500 text-white'
: 'bg-accent-500/15 text-accent-400 hover:bg-accent-500/25'
}`}
>
{confirmingAction === 'resetTrial'
@@ -3174,7 +3174,7 @@ export default function AdminUserDetail() {
<span
className={`rounded-full border px-1.5 py-0.5 ${
{
open: 'border-blue-500/30 bg-blue-500/20 text-blue-400',
open: 'border-accent-500/30 bg-accent-500/20 text-accent-400',
pending: 'border-warning-500/30 bg-warning-500/20 text-warning-400',
answered: 'border-success-500/30 bg-success-500/20 text-success-400',
closed: 'border-dark-500 bg-dark-600 text-dark-400',
@@ -3313,7 +3313,7 @@ export default function AdminUserDetail() {
<div className="space-y-2">
{tickets.map((ticket) => {
const statusStyles: Record<string, string> = {
open: 'bg-blue-500/20 text-blue-400 border-blue-500/30',
open: 'bg-accent-500/20 text-accent-400 border-accent-500/30',
pending: 'bg-warning-500/20 text-warning-400 border-warning-500/30',
answered: 'bg-success-500/20 text-success-400 border-success-500/30',
closed: 'bg-dark-600 text-dark-400 border-dark-500',