Skip to content

Conversation

@DayuanJiang
Copy link
Owner

Summary

  • Fixes low contrast text in user message bubbles when using markdown formatting (bold, headings, etc.)
  • The @tailwindcss/typography prose plugin was overriding text colors, causing formatted text to blend with the dark primary background
  • Added [&_*]:!text-primary-foreground to force all child elements in user messages to use the correct foreground color

Test

Type a message with markdown like **bold text** in the chat input and verify the text is visible in the user message bubble.

The prose plugin was overriding text colors for markdown elements
(bold, headings, etc.) in user message bubbles, causing text to
blend with the dark primary background.

Added conditional styling that forces all child elements in user
messages to use text-primary-foreground color with !important to
override prose defaults.
@vercel
Copy link

vercel bot commented Dec 5, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
next-ai-draw-io Building Building Preview Comment Dec 5, 2025 2:16pm

@DayuanJiang DayuanJiang merged commit 96a1111 into main Dec 5, 2025
3 of 4 checks passed
@DayuanJiang DayuanJiang deleted the fix/user-message-markdown-text-color branch December 5, 2025 14:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants