@@ -56,23 +56,23 @@ function CommentItem({
5656 } ;
5757
5858 return (
59- < div className = { depth > 0 ? 'ml-6 mt-4 border-l border-gray-200 pl-4' : 'mt-6' } >
59+ < div className = { depth > 0 ? 'ml-6 mt-4 border-l border-border pl-4' : 'mt-6' } >
6060 < div className = "flex items-center gap-2 text-sm" >
6161 < span className = "font-medium" > { comment . name } </ span >
6262 { comment . createdAt && (
63- < span className = "text-gray-400 " >
63+ < span className = "text-muted-foreground " >
6464 { new Date ( comment . createdAt ) . toLocaleDateString ( ) }
6565 </ span >
6666 ) }
6767 </ div >
68- < div className = "text-gray-700 mt-1" >
68+ < div className = "text-foreground mt-1" >
6969 < CommentText text = { comment . comment } />
7070 </ div >
71- < div className = "flex gap-4 mt-1 text-sm text-gray-500 " >
71+ < div className = "flex gap-4 mt-1 text-sm text-muted-foreground " >
7272 < button
7373 type = "button"
7474 onClick = { like }
75- className = { liked ? 'text-blue-600 ' : 'hover:underline' }
75+ className = { liked ? 'text-foreground font-medium ' : 'hover:underline' }
7676 >
7777 ♥ { likeCount }
7878 </ button >
@@ -178,14 +178,16 @@ export function CommentSection({
178178 { _ ( 'Comments' ) } ({ total } )
179179 </ h2 >
180180 { comments . length === 0 && (
181- < p className = "text-gray-500" > { _ ( 'No comments yet. Be the first!' ) } </ p >
181+ < p className = "text-muted-foreground" >
182+ { _ ( 'No comments yet. Be the first!' ) }
183+ </ p >
182184 ) }
183185 { comments . map ( ( c ) => (
184186 < CommentItem key = { c . uuid } comment = { c } depth = { 0 } onReply = { setReplyTo } />
185187 ) ) }
186188
187189 < form onSubmit = { submit } className = "mt-8 space-y-3" >
188- < h3 className = "text-lg font-semibold " >
190+ < h3 className = "h4 " >
189191 { replyTo
190192 ? _ ( 'Reply to ${name}' , { name : replyTo . name } )
191193 : _ ( 'Leave a comment' ) }
@@ -194,7 +196,7 @@ export function CommentSection({
194196 < button
195197 type = "button"
196198 onClick = { ( ) => setReplyTo ( null ) }
197- className = "text-sm text-blue-600 "
199+ className = "text-sm text-muted-foreground hover:text-foreground "
198200 >
199201 { _ ( 'Cancel reply' ) }
200202 </ button >
@@ -214,15 +216,15 @@ export function CommentSection({
214216 placeholder = { _ ( 'Name' ) }
215217 value = { form . name }
216218 onChange = { ( e ) => setForm ( { ...form , name : e . target . value } ) }
217- className = "border border-gray-300 rounded px-3 py-2"
219+ className = "border border-border rounded-md px-3 py-2"
218220 />
219221 < input
220222 required
221223 type = "email"
222224 placeholder = { _ ( 'Email (not published)' ) }
223225 value = { form . email }
224226 onChange = { ( e ) => setForm ( { ...form , email : e . target . value } ) }
225- className = "border border-gray-300 rounded px-3 py-2"
227+ className = "border border-border rounded-md px-3 py-2"
226228 />
227229 </ div >
228230 < textarea
@@ -231,7 +233,7 @@ export function CommentSection({
231233 value = { form . comment }
232234 onChange = { ( e ) => setForm ( { ...form , comment : e . target . value } ) }
233235 rows = { 4 }
234- className = "w-full border border-gray-300 rounded px-3 py-2"
236+ className = "w-full border border-border rounded-md px-3 py-2"
235237 />
236238 { /* Honeypot — hidden from humans, bots fill it. */ }
237239 < input
@@ -247,7 +249,7 @@ export function CommentSection({
247249 < button
248250 type = "submit"
249251 disabled = { submitting }
250- className = "bg-gray-900 text-white rounded px-4 py-2 disabled:opacity-50"
252+ className = "bg-primary text-primary-foreground rounded-md px-4 py-2 disabled:opacity-50 hover:bg-primary/80 transition-colors "
251253 >
252254 { submitting ? _ ( 'Submitting…' ) : _ ( 'Post comment' ) }
253255 </ button >
0 commit comments