@@ -137,45 +137,45 @@ export default function CopilotMarkdownRenderer({ content }: CopilotMarkdownRend
137137 ( ) => ( {
138138 // Paragraph
139139 p : ( { children } : React . HTMLAttributes < HTMLParagraphElement > ) => (
140- < p className = 'mb-1 font-base font-season text-[#1f2124 ] text-sm leading-[1.25rem] last:mb-0 dark:font-[470] dark:text-[#E8E8E8 ]' >
140+ < p className = 'mb-1 font-base font-season text-[var(--text-primary) ] text-sm leading-[1.25rem] last:mb-0 dark:font-[470]' >
141141 { children }
142142 </ p >
143143 ) ,
144144
145145 // Headings
146146 h1 : ( { children } : React . HTMLAttributes < HTMLHeadingElement > ) => (
147- < h1 className = 'mt-3 mb-3 font-season font-semibold text-2xl text-[var(--text-primary)] dark:text-[#F0F0F0] ' >
147+ < h1 className = 'mt-3 mb-3 font-season font-semibold text-2xl text-[var(--text-primary)]' >
148148 { children }
149149 </ h1 >
150150 ) ,
151151 h2 : ( { children } : React . HTMLAttributes < HTMLHeadingElement > ) => (
152- < h2 className = 'mt-2.5 mb-2.5 font-season font-semibold text-[var(--text-primary)] text-xl dark:text-[#F0F0F0] ' >
152+ < h2 className = 'mt-2.5 mb-2.5 font-season font-semibold text-[var(--text-primary)] text-xl' >
153153 { children }
154154 </ h2 >
155155 ) ,
156156 h3 : ( { children } : React . HTMLAttributes < HTMLHeadingElement > ) => (
157- < h3 className = 'mt-2 mb-2 font-season font-semibold text-[var(--text-primary)] text-lg dark:text-[#F0F0F0] ' >
157+ < h3 className = 'mt-2 mb-2 font-season font-semibold text-[var(--text-primary)] text-lg' >
158158 { children }
159159 </ h3 >
160160 ) ,
161161 h4 : ( { children } : React . HTMLAttributes < HTMLHeadingElement > ) => (
162- < h4 className = 'mt-5 mb-2 font-season font-semibold text-[var(--text-primary)] text-base dark:text-[#F0F0F0] ' >
162+ < h4 className = 'mt-5 mb-2 font-season font-semibold text-[var(--text-primary)] text-base' >
163163 { children }
164164 </ h4 >
165165 ) ,
166166
167167 // Lists
168168 ul : ( { children } : React . HTMLAttributes < HTMLUListElement > ) => (
169169 < ul
170- className = 'mt-1 mb-1 space-y-1 pl-6 font-base font-season text-[#1f2124 ] dark:font-[470] dark:text-[#E8E8E8 ]'
170+ className = 'mt-1 mb-1 space-y-1 pl-6 font-base font-season text-[var(--text-primary) ] dark:font-[470]'
171171 style = { { listStyleType : 'disc' } }
172172 >
173173 { children }
174174 </ ul >
175175 ) ,
176176 ol : ( { children } : React . HTMLAttributes < HTMLOListElement > ) => (
177177 < ol
178- className = 'mt-1 mb-1 space-y-1 pl-6 font-base font-season text-[#1f2124 ] dark:font-[470] dark:text-[#E8E8E8 ]'
178+ className = 'mt-1 mb-1 space-y-1 pl-6 font-base font-season text-[var(--text-primary) ] dark:font-[470]'
179179 style = { { listStyleType : 'decimal' } }
180180 >
181181 { children }
@@ -186,7 +186,7 @@ export default function CopilotMarkdownRenderer({ content }: CopilotMarkdownRend
186186 ordered,
187187 } : React . LiHTMLAttributes < HTMLLIElement > & { ordered ?: boolean } ) => (
188188 < li
189- className = 'font-base font-season text-[#1f2124 ] dark:font-[470] dark:text-[#E8E8E8 ]'
189+ className = 'font-base font-season text-[var(--text-primary) ] dark:font-[470]'
190190 style = { { display : 'list-item' } }
191191 >
192192 { children }
@@ -256,14 +256,14 @@ export default function CopilotMarkdownRenderer({ content }: CopilotMarkdownRend
256256 : 'javascript'
257257
258258 return (
259- < div className = 'my-6 w-0 min-w-full overflow-hidden rounded-md border border-[var(--border-1)] bg-[#1F1F1F ] text-sm' >
259+ < div className = 'my-6 w-0 min-w-full overflow-hidden rounded-md border border-[var(--border-1)] bg-[var(--surface-1) ] text-sm' >
260260 < div className = 'flex items-center justify-between border-[var(--border-1)] border-b px-4 py-1.5' >
261- < span className = 'font-season text-[#A3A3A3 ] text-xs' >
261+ < span className = 'font-season text-[var(--text-muted) ] text-xs' >
262262 { language === 'code' ? viewerLanguage : language }
263263 </ span >
264264 < button
265265 onClick = { handleCopy }
266- className = 'text-[#A3A3A3 ] transition-colors hover:text-gray-300 '
266+ className = 'text-[var(--text-muted) ] transition-colors hover:text-[var(--text-tertiary)] '
267267 title = 'Copy'
268268 >
269269 { showCopySuccess ? (
@@ -293,7 +293,7 @@ export default function CopilotMarkdownRenderer({ content }: CopilotMarkdownRend
293293 if ( inline ) {
294294 return (
295295 < code
296- className = 'whitespace-normal break-all rounded border border-[var(--border-1)] bg-[#1F1F1F ] px-1 py-0.5 font-mono text-[#eeeeee ] text-[0.9em ]'
296+ className = 'whitespace-normal break-all rounded border border-[var(--border-1)] bg-[var(--surface-1) ] px-1 py-0.5 font-mono text-[0.9em ] text-[var(--text-primary) ]'
297297 { ...props }
298298 >
299299 { children }
@@ -309,35 +309,33 @@ export default function CopilotMarkdownRenderer({ content }: CopilotMarkdownRend
309309
310310 // Bold text
311311 strong : ( { children } : React . HTMLAttributes < HTMLElement > ) => (
312- < strong className = 'font-semibold text-[var(--text-primary)] dark:text-[#F0F0F0]' >
313- { children }
314- </ strong >
312+ < strong className = 'font-semibold text-[var(--text-primary)]' > { children } </ strong >
315313 ) ,
316314
317315 // Bold text (alternative)
318316 b : ( { children } : React . HTMLAttributes < HTMLElement > ) => (
319- < b className = 'font-semibold text-[var(--text-primary)] dark:text-[#F0F0F0] ' > { children } </ b >
317+ < b className = 'font-semibold text-[var(--text-primary)]' > { children } </ b >
320318 ) ,
321319
322320 // Italic text
323321 em : ( { children } : React . HTMLAttributes < HTMLElement > ) => (
324- < em className = 'text-[#1f2124] italic dark: text-[#E8E8E8] ' > { children } </ em >
322+ < em className = 'text-[var(-- text-primary)] italic ' > { children } </ em >
325323 ) ,
326324
327325 // Italic text (alternative)
328326 i : ( { children } : React . HTMLAttributes < HTMLElement > ) => (
329- < i className = 'text-[#1f2124] italic dark: text-[#E8E8E8] ' > { children } </ i >
327+ < i className = 'text-[var(-- text-primary)] italic ' > { children } </ i >
330328 ) ,
331329
332330 // Blockquotes
333331 blockquote : ( { children } : React . HTMLAttributes < HTMLQuoteElement > ) => (
334- < blockquote className = 'my-4 border-[var(--border-1)] border-l-4 py-1 pl-4 font-season text-[#3a3d41] italic dark:border-gray-600 dark: text-[#E0E0E0] ' >
332+ < blockquote className = 'my-4 border-[var(--border-1)] border-l-4 py-1 pl-4 font-season text-[var(-- text-secondary)] italic ' >
335333 { children }
336334 </ blockquote >
337335 ) ,
338336
339337 // Horizontal rule
340- hr : ( ) => < hr className = 'my-8 border-[var(--divider)] border-t dark:border-gray-400/[.07] ' /> ,
338+ hr : ( ) => < hr className = 'my-8 border-[var(--divider)] border-t' /> ,
341339
342340 // Links
343341 a : ( { href, children, ...props } : React . AnchorHTMLAttributes < HTMLAnchorElement > ) => (
@@ -349,29 +347,31 @@ export default function CopilotMarkdownRenderer({ content }: CopilotMarkdownRend
349347 // Tables
350348 table : ( { children } : React . TableHTMLAttributes < HTMLTableElement > ) => (
351349 < div className = 'my-4 max-w-full overflow-x-auto' >
352- < table className = 'min-w-full table-auto border border-[var(--border)] font-season text-sm dark:border-gray-600 ' >
350+ < table className = 'min-w-full table-auto border border-[var(--border-1 )] font-season text-sm' >
353351 { children }
354352 </ table >
355353 </ div >
356354 ) ,
357355 thead : ( { children } : React . HTMLAttributes < HTMLTableSectionElement > ) => (
358- < thead className = 'bg-[var(--surface-5)] text-left dark:bg-[#2A2A2A]' > { children } </ thead >
356+ < thead className = 'bg-[var(--surface-5)] text-left dark:bg-[var(--surface-4)]' >
357+ { children }
358+ </ thead >
359359 ) ,
360360 tbody : ( { children } : React . HTMLAttributes < HTMLTableSectionElement > ) => (
361- < tbody className = 'divide-y divide-[var(--border)] dark:divide-gray-600 ' > { children } </ tbody >
361+ < tbody className = 'divide-y divide-[var(--border-1)] ' > { children } </ tbody >
362362 ) ,
363363 tr : ( { children } : React . HTMLAttributes < HTMLTableRowElement > ) => (
364- < tr className = 'border-[var(--border)] border-b transition-colors hover:bg-[var(--surface-5)] dark:border-gray-600 dark: hover:bg-[#2A2A2A ]/60' >
364+ < tr className = 'border-[var(--border-1 )] border-b transition-colors hover:bg-[var(--surface-5)] dark:hover:bg-[var(--surface-4) ]/60' >
365365 { children }
366366 </ tr >
367367 ) ,
368368 th : ( { children } : React . ThHTMLAttributes < HTMLTableCellElement > ) => (
369- < th className = 'border-[var(--border)] border-r px-4 py-2 align-top font-base text-[#3a3d41 ] last:border-r-0 dark:border-gray-600 dark: font-[470] dark:text-[#E0E0E0 ]' >
369+ < th className = 'border-[var(--border-1 )] border-r px-4 py-2 align-top font-base text-[var(--text-secondary) ] last:border-r-0 dark:font-[470]' >
370370 { children }
371371 </ th >
372372 ) ,
373373 td : ( { children } : React . TdHTMLAttributes < HTMLTableCellElement > ) => (
374- < td className = 'break-words border-[var(--border)] border-r px-4 py-2 align-top font-base text-[#1f2124 ] last:border-r-0 dark:border-gray-600 dark: font-[470] dark:text-[#E8E8E8 ]' >
374+ < td className = 'break-words border-[var(--border-1 )] border-r px-4 py-2 align-top font-base text-[var(--text-primary) ] last:border-r-0 dark:font-[470]' >
375375 { children }
376376 </ td >
377377 ) ,
@@ -390,7 +390,7 @@ export default function CopilotMarkdownRenderer({ content }: CopilotMarkdownRend
390390 )
391391
392392 return (
393- < div className = 'copilot-markdown-wrapper max-w-full space-y-3 break-words font-base font-season text-[#1f2124 ] text-sm leading-[1.25rem] dark:font-[470] dark:text-[#E8E8E8 ]' >
393+ < div className = 'copilot-markdown-wrapper max-w-full space-y-3 break-words font-base font-season text-[var(--text-primary) ] text-sm leading-[1.25rem] dark:font-[470]' >
394394 < ReactMarkdown remarkPlugins = { [ remarkGfm ] } components = { markdownComponents } >
395395 { content }
396396 </ ReactMarkdown >
0 commit comments