@@ -51,37 +51,37 @@ const NoteMarkdown = memo(function NoteMarkdown({ content }: { content: string }
5151 remarkPlugins = { [ remarkGfm ] }
5252 components = { {
5353 p : ( { children } : any ) => (
54- < p className = 'mb-1 break-words text-[#E5E5E5 ] text-sm leading-[1.25rem] last:mb-0' >
54+ < p className = 'mb-1 break-words text-[var(--text-primary) ] text-sm leading-[1.25rem] last:mb-0' >
5555 { children }
5656 </ p >
5757 ) ,
5858 h1 : ( { children } : any ) => (
59- < h1 className = 'mt-3 mb-3 break-words font-semibold text-[#E5E5E5 ] text-lg first:mt-0' >
59+ < h1 className = 'mt-3 mb-3 break-words font-semibold text-[var(--text-primary) ] text-lg first:mt-0' >
6060 { children }
6161 </ h1 >
6262 ) ,
6363 h2 : ( { children } : any ) => (
64- < h2 className = 'mt-2.5 mb-2.5 break-words font-semibold text-[#E5E5E5 ] text-base first:mt-0' >
64+ < h2 className = 'mt-2.5 mb-2.5 break-words font-semibold text-[var(--text-primary) ] text-base first:mt-0' >
6565 { children }
6666 </ h2 >
6767 ) ,
6868 h3 : ( { children } : any ) => (
69- < h3 className = 'mt-2 mb-2 break-words font-semibold text-[#E5E5E5 ] text-sm first:mt-0' >
69+ < h3 className = 'mt-2 mb-2 break-words font-semibold text-[var(--text-primary) ] text-sm first:mt-0' >
7070 { children }
7171 </ h3 >
7272 ) ,
7373 h4 : ( { children } : any ) => (
74- < h4 className = 'mt-2 mb-2 break-words font-semibold text-[#E5E5E5 ] text-xs first:mt-0' >
74+ < h4 className = 'mt-2 mb-2 break-words font-semibold text-[var(--text-primary) ] text-xs first:mt-0' >
7575 { children }
7676 </ h4 >
7777 ) ,
7878 ul : ( { children } : any ) => (
79- < ul className = 'mt-1 mb-1 list-disc space-y-1 break-words pl-6 text-[#E5E5E5 ] text-sm' >
79+ < ul className = 'mt-1 mb-1 list-disc space-y-1 break-words pl-6 text-[var(--text-primary) ] text-sm' >
8080 { children }
8181 </ ul >
8282 ) ,
8383 ol : ( { children } : any ) => (
84- < ol className = 'mt-1 mb-1 list-decimal space-y-1 break-words pl-6 text-[#E5E5E5 ] text-sm' >
84+ < ol className = 'mt-1 mb-1 list-decimal space-y-1 break-words pl-6 text-[var(--text-primary) ] text-sm' >
8585 { children }
8686 </ ol >
8787 ) ,
@@ -93,7 +93,7 @@ const NoteMarkdown = memo(function NoteMarkdown({ content }: { content: string }
9393 return (
9494 < code
9595 { ...props }
96- className = 'whitespace-normal rounded bg-gray-200 px-1 py-0.5 font-mono text-[#F59E0B] text-xs dark:bg-[var(--border-1)] '
96+ className = 'whitespace-normal rounded bg-[var(--surface-5)] px-1 py-0.5 font-mono text-[#F59E0B] text-xs'
9797 >
9898 { children }
9999 </ code >
@@ -103,7 +103,7 @@ const NoteMarkdown = memo(function NoteMarkdown({ content }: { content: string }
103103 return (
104104 < code
105105 { ...props }
106- className = 'block whitespace-pre-wrap break-words rounded bg-[#1A1A1A ] p-2 text-[#E5E5E5 ] text-xs'
106+ className = 'block whitespace-pre-wrap break-words rounded bg-[var(--surface-5) ] p-2 text-[var(--text-primary) ] text-xs'
107107 >
108108 { children }
109109 </ code >
@@ -149,11 +149,15 @@ const NoteMarkdown = memo(function NoteMarkdown({ content }: { content: string }
149149 )
150150 } ,
151151 strong : ( { children } : any ) => (
152- < strong className = 'break-words font-semibold text-white' > { children } </ strong >
152+ < strong className = 'break-words font-semibold text-[var(--text-primary)]' >
153+ { children }
154+ </ strong >
155+ ) ,
156+ em : ( { children } : any ) => (
157+ < em className = 'break-words text-[var(--text-tertiary)]' > { children } </ em >
153158 ) ,
154- em : ( { children } : any ) => < em className = 'break-words text-[#B8B8B8]' > { children } </ em > ,
155159 blockquote : ( { children } : any ) => (
156- < blockquote className = 'my-4 break-words border-[var(--border-1)] border-l-4 py-1 pl-4 text-[#B8B8B8 ] italic' >
160+ < blockquote className = 'my-4 break-words border-[var(--border-1)] border-l-4 py-1 pl-4 text-[var(--text-tertiary) ] italic' >
157161 { children }
158162 </ blockquote >
159163 ) ,
0 commit comments