From d0f73130f26cab9317dd58ea3cd4bfa74b8ba025 Mon Sep 17 00:00:00 2001 From: OpenClaw Bot Date: Thu, 19 Feb 2026 08:50:55 -0600 Subject: [PATCH] Fix markdown styling - remove incompatible typography plugin - Tailwind v4 doesn't support @tailwindcss/typography - Replaced with custom CSS classes for markdown content - Added proper styling for h1, h2, h3, p, ul, li, a, hr, strong - Links are blue with hover effects - All working now on http://localhost:3003 --- src/app/globals.css | 63 ++++++++++++++++++++++++++++++++++++++++++++- src/app/page.tsx | 23 +---------------- 2 files changed, 63 insertions(+), 23 deletions(-) diff --git a/src/app/globals.css b/src/app/globals.css index 4749bfd..18bc052 100644 --- a/src/app/globals.css +++ b/src/app/globals.css @@ -1,5 +1,4 @@ @import "tailwindcss"; -@import "@tailwindcss/typography"; :root { --background: #ffffff; @@ -25,3 +24,65 @@ body { color: var(--foreground); font-family: Arial, Helvetica, sans-serif; } + +/* Markdown content styles */ +.markdown-content h1 { + font-size: 1.5rem; + font-weight: 700; + color: #f4f4f5; + margin-bottom: 0.75rem; + margin-top: 1rem; +} + +.markdown-content h2 { + font-size: 1.25rem; + font-weight: 600; + color: #e4e4e7; + margin-bottom: 0.5rem; + margin-top: 0.75rem; +} + +.markdown-content h3 { + font-size: 1.125rem; + font-weight: 600; + color: #d4d4d8; + margin-bottom: 0.5rem; + margin-top: 0.75rem; +} + +.markdown-content p { + color: #a1a1aa; + margin-bottom: 0.75rem; + line-height: 1.625; +} + +.markdown-content ul { + list-style-type: disc; + list-style-position: inside; + margin-bottom: 0.75rem; +} + +.markdown-content li { + color: #a1a1aa; + margin-bottom: 0.25rem; +} + +.markdown-content a { + color: #60a5fa; + text-decoration: none; +} + +.markdown-content a:hover { + color: #93c5fd; + text-decoration: underline; +} + +.markdown-content hr { + border-color: #3f3f46; + margin: 1rem 0; +} + +.markdown-content strong { + color: #e4e4e7; + font-weight: 600; +} diff --git a/src/app/page.tsx b/src/app/page.tsx index 8b8ef1d..f332e5e 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -156,7 +156,7 @@ export default function Home() { )}
-
+
), - h1: ({ node, ...props }) => ( -

- ), - h2: ({ node, ...props }) => ( -

- ), - h3: ({ node, ...props }) => ( -

- ), - ul: ({ node, ...props }) => ( -
    - ), - li: ({ node, ...props }) => ( -
  • - ), - p: ({ node, ...props }) => ( -

    - ), - hr: ({ node, ...props }) => ( -


    - ), }} > {msg.content}