Skip to content

Commit c88e391

Browse files
fix(web): sync VIP ghost chat UI with global dark mode theme
- Replaced hardcoded emerald colors in dark mode with theme-compliant discord-main and neon-blue - Explicitly styled Brush, Ghost, and HatGlasses icons to respect dark mode palettes - Added custom dark mode placeholder text colors for the VIP chat input state
1 parent da210e8 commit c88e391

1 file changed

Lines changed: 14 additions & 6 deletions

File tree

apps/web/src/components/Arena/ArenaChat.tsx

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -233,8 +233,8 @@ export const ArenaChat = () => {
233233
: msg.isGhost
234234
? // VIP GHOST CHAT STYLING
235235
msg.senderId === userId
236-
? 'bg-emerald-600 dark:bg-emerald-800 text-white self-end rounded-2xl rounded-br-sm border-2 border-emerald-400 border-dashed drop-shadow-md'
237-
: 'bg-emerald-50 dark:bg-emerald-900/40 border-2 border-emerald-400 border-dashed dark:text-emerald-100 self-start rounded-2xl rounded-bl-sm drop-shadow-md'
236+
? 'bg-emerald-600 dark:bg-blue-900/80 text-white dark:text-blue-50 self-end rounded-2xl rounded-br-sm border-2 border-emerald-400 dark:border-neon-blue border-dashed drop-shadow-md'
237+
: 'bg-emerald-50 dark:bg-discord-main border-2 border-emerald-400 dark:border-neon-blue border-dashed dark:text-blue-100 self-start rounded-2xl rounded-bl-sm drop-shadow-md'
238238
: // STANDARD CHAT STYLING
239239
msg.senderId === userId
240240
? 'bg-green-500 dark:bg-neon-blue text-white self-end rounded-2xl rounded-br-sm'
@@ -264,9 +264,17 @@ export const ArenaChat = () => {
264264
>
265265
{msg.senderName}
266266
{isMessageFromDrawer ? (
267-
<Brush size={12} strokeWidth={3} className="shrink-0" />
267+
<Brush
268+
size={12}
269+
strokeWidth={3}
270+
className="shrink-0 text-emerald-300 dark:text-neon-blue"
271+
/>
268272
) : msg.isGhost ? (
269-
<Ghost size={12} strokeWidth={3} className="shrink-0" />
273+
<Ghost
274+
size={12}
275+
strokeWidth={3}
276+
className="shrink-0 text-emerald-300 dark:text-neon-blue"
277+
/>
270278
) : null}
271279
</span>
272280
)}
@@ -310,7 +318,7 @@ export const ArenaChat = () => {
310318
>
311319
<div className="relative flex-1 min-w-0">
312320
{isVIP && (
313-
<div className="absolute left-3 top-1/2 -translate-y-1/2 text-emerald-500 dark:text-emerald-400 pointer-events-none">
321+
<div className="absolute left-3 top-1/2 -translate-y-1/2 text-emerald-500 dark:text-neon-blue pointer-events-none">
314322
<HatGlasses size={18} strokeWidth={2.5} />
315323
</div>
316324
)}
@@ -321,7 +329,7 @@ export const ArenaChat = () => {
321329
onChange={(e) => setMessage(e.target.value)}
322330
disabled={false}
323331
placeholder={isVIP ? 'Secret VIP Chat...' : 'Type guess...'}
324-
className={`w-full py-2 pr-4 bg-gray-100 dark:bg-discord-main border-2 border-gray-200 dark:border-gray-800 rounded-xl font-bold text-sm text-gray-900 dark:text-gray-100 focus:outline-none focus:border-green-500 dark:focus:border-neon-blue transition-colors ${isVIP ? 'pl-10' : 'pl-4'}`}
332+
className={`w-full py-2 pr-4 bg-gray-100 dark:bg-discord-main border-2 border-gray-200 dark:border-gray-800 rounded-xl font-bold text-sm text-gray-900 dark:text-gray-100 focus:outline-none focus:border-green-500 dark:focus:border-neon-blue transition-colors ${isVIP ? 'pl-10 placeholder-emerald-500/70 dark:placeholder-neon-blue/70' : 'pl-4'}`}
325333
/>
326334
</div>
327335
<motion.button

0 commit comments

Comments
 (0)