From edcff21be7c8532b942e4ab94bdb965238a81e25 Mon Sep 17 00:00:00 2001 From: Ajax Davis Date: Wed, 7 Jan 2026 13:46:28 +1000 Subject: [PATCH] fix: replace hardcoded colors with theme-aware tokens in Markdown component MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Closes #12 - Replace zinc-900/zinc-100 with text-foreground for headings - Replace zinc-700/zinc-300 with text-foreground-secondary for paragraphs, lists, blockquotes - Replace zinc-* borders with border-border - Replace zinc-100/zinc-800 backgrounds with bg-surface-secondary - README content now properly respects the page theme context 🤖 Generated with [Claude Code](https://claude.ai/claude-code) Co-Authored-By: Claude --- apps/web/src/components/Markdown.tsx | 37 +++++++++++++--------------- 1 file changed, 17 insertions(+), 20 deletions(-) diff --git a/apps/web/src/components/Markdown.tsx b/apps/web/src/components/Markdown.tsx index a6bc1cc..e77655d 100644 --- a/apps/web/src/components/Markdown.tsx +++ b/apps/web/src/components/Markdown.tsx @@ -16,28 +16,28 @@ interface MarkdownProps { /** * Markdown renderer component * Safely renders markdown content with GitHub Flavored Markdown support - * Styled to match npm.com's beautiful README rendering + * Styled with theme-aware semantic tokens for proper light/dark mode support */ export function Markdown({ content, className = '' }: MarkdownProps): React.ReactElement { return (
{ return ( -
+
{children}
); @@ -106,11 +106,8 @@ export function Markdown({ content, className = '' }: MarkdownProps): React.Reac // Better table styling with improved readability table: ({ children, ...props }) => { return ( -
- +
+
{children}
@@ -119,7 +116,7 @@ export function Markdown({ content, className = '' }: MarkdownProps): React.Reac // Table header with better styling thead: ({ children, ...props }) => { return ( - + {children} ); @@ -128,7 +125,7 @@ export function Markdown({ content, className = '' }: MarkdownProps): React.Reac th: ({ children, ...props }) => { return ( {children} @@ -138,7 +135,7 @@ export function Markdown({ content, className = '' }: MarkdownProps): React.Reac // Table data cells with better spacing td: ({ children, ...props }) => { return ( - + {children} ); @@ -147,7 +144,7 @@ export function Markdown({ content, className = '' }: MarkdownProps): React.Reac tr: ({ children, ...props }) => { return ( {children}