@@ -94,7 +94,12 @@ export default function Chats() {
9494 </ Button >
9595 </ div >
9696
97- < label className = 'border-input focus-within:ring-ring flex h-12 w-full items-center space-x-0 rounded-md border ps-2 focus-within:ring-1 focus-within:outline-hidden' >
97+ < label
98+ className = { cn (
99+ 'focus-within:ring-ring focus-within:ring-1 focus-within:outline-hidden' ,
100+ 'border-border flex h-10 w-full items-center space-x-0 rounded-md border ps-2'
101+ ) }
102+ >
98103 < SearchIcon size = { 15 } className = 'me-2 stroke-slate-500' />
99104 < span className = 'sr-only' > Search</ span >
100105 < input
@@ -120,7 +125,8 @@ export default function Chats() {
120125 < button
121126 type = 'button'
122127 className = { cn (
123- `hover:bg-secondary/75 -mx-1 flex w-full rounded-md px-2 py-2 text-start text-sm` ,
128+ 'group hover:bg-accent hover:text-accent-foreground' ,
129+ `flex w-full rounded-md px-2 py-2 text-start text-sm` ,
124130 selectedUser ?. id === id && 'sm:bg-muted'
125131 ) }
126132 onClick = { ( ) => {
@@ -137,7 +143,7 @@ export default function Chats() {
137143 < span className = 'col-start-2 row-span-2 font-medium' >
138144 { fullName }
139145 </ span >
140- < span className = 'text-muted-foreground col-start-2 row-span-2 row-start-2 line-clamp-2 text-ellipsis' >
146+ < span className = 'text-muted-foreground group-hover:text-accent-foreground/90 col-start-2 row-span-2 row-start-2 line-clamp-2 text-ellipsis' >
141147 { lastMsg }
142148 </ span >
143149 </ div >
@@ -154,12 +160,12 @@ export default function Chats() {
154160 { selectedUser ? (
155161 < div
156162 className = { cn (
157- 'bg-primary-foreground absolute inset-0 start-full z-50 hidden w-full flex-1 flex-col rounded-md border shadow-xs transition-all duration-200 sm:static sm:z-auto sm:flex' ,
163+ 'bg-background absolute inset-0 start-full z-50 hidden w-full flex-1 flex-col rounded-md border shadow-xs sm:static sm:z-auto sm:flex' ,
158164 mobileSelectedUser && 'start-0 flex'
159165 ) }
160166 >
161167 { /* Top Part */ }
162- < div className = 'bg-secondary mb-1 flex flex-none justify-between rounded-t-md p-4 shadow-lg' >
168+ < div className = 'bg-card mb-1 flex flex-none justify-between rounded-t-md p-4 shadow-lg' >
163169 { /* Left */ }
164170 < div className = 'flex gap-3' >
165171 < Button
@@ -229,15 +235,16 @@ export default function Chats() {
229235 className = { cn (
230236 'chat-box max-w-72 px-3 py-2 break-words shadow-lg' ,
231237 msg . sender === 'You'
232- ? 'bg-primary/85 text-primary-foreground/75 self-end rounded-[16px_16px_0_16px]'
233- : 'bg-secondary self-start rounded-[16px_16px_16px_0]'
238+ ? 'bg-primary/90 text-primary-foreground/75 self-end rounded-[16px_16px_0_16px]'
239+ : 'bg-muted self-start rounded-[16px_16px_16px_0]'
234240 ) }
235241 >
236242 { msg . message } { ' ' }
237243 < span
238244 className = { cn (
239- 'text-muted-foreground mt-1 block text-xs font-light italic' ,
240- msg . sender === 'You' && 'text-end'
245+ 'text-foreground/75 mt-1 block text-xs font-light italic' ,
246+ msg . sender === 'You' &&
247+ 'text-primary-foreground/85 text-end'
241248 ) }
242249 >
243250 { format ( msg . timestamp , 'h:mm a' ) }
@@ -251,7 +258,7 @@ export default function Chats() {
251258 </ div >
252259 </ div >
253260 < form className = 'flex w-full flex-none gap-2' >
254- < div className = 'border-input focus-within:ring-ring flex flex-1 items-center gap-2 rounded-md border px-2 py-1 focus-within:ring-1 focus-within:outline-hidden lg:gap-4' >
261+ < div className = 'border-input bg-card focus-within:ring-ring flex flex-1 items-center gap-2 rounded-md border px-2 py-1 focus-within:ring-1 focus-within:outline-hidden lg:gap-4' >
255262 < div className = 'space-x-1' >
256263 < Button
257264 size = 'icon'
@@ -309,7 +316,7 @@ export default function Chats() {
309316 ) : (
310317 < div
311318 className = { cn (
312- 'bg-primary-foreground absolute inset-0 start-full z-50 hidden w-full flex-1 flex-col justify-center rounded-md border shadow-xs transition-all duration-200 sm:static sm:z-auto sm:flex'
319+ 'bg-card absolute inset-0 start-full z-50 hidden w-full flex-1 flex-col justify-center rounded-md border shadow-xs sm:static sm:z-auto sm:flex'
313320 ) }
314321 >
315322 < div className = 'flex flex-col items-center space-y-6' >
@@ -322,10 +329,7 @@ export default function Chats() {
322329 Send a message to start a chat.
323330 </ p >
324331 </ div >
325- < Button
326- className = 'bg-blue-500 px-6 text-white hover:bg-blue-600'
327- onClick = { ( ) => setCreateConversationDialog ( true ) }
328- >
332+ < Button onClick = { ( ) => setCreateConversationDialog ( true ) } >
329333 Send message
330334 </ Button >
331335 </ div >
0 commit comments