From c9bef8bc054fbbabb8d71989da8917b4da79761e Mon Sep 17 00:00:00 2001 From: Bohdan Triapitsyn Date: Mon, 7 Sep 2026 19:00:08 +0300 Subject: [PATCH] style: increase chat text and heading contrast Boosted assistant message text opacity for better readability Styled markdown headings with a slightly stronger foreground color --- packages/ui/src/components/chat/message/MessageBody.tsx | 2 +- packages/ui/src/index.css | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/ui/src/components/chat/message/MessageBody.tsx b/packages/ui/src/components/chat/message/MessageBody.tsx index e2738cd5..3d066526 100644 --- a/packages/ui/src/components/chat/message/MessageBody.tsx +++ b/packages/ui/src/components/chat/message/MessageBody.tsx @@ -2162,7 +2162,7 @@ const AssistantMessageBody = React.memo(({ ) : null}
{renderedParts} {showErrorMessage && ( diff --git a/packages/ui/src/index.css b/packages/ui/src/index.css index fbfc67d2..1e613762 100644 --- a/packages/ui/src/index.css +++ b/packages/ui/src/index.css @@ -1134,6 +1134,7 @@ html:not(.dark) .chat-scroll { .markdown-content h5, .markdown-content h6 { margin: 1.25rem 0 0.5rem; + color: color-mix(in srgb, var(--foreground) 95%, transparent); font-weight: 600; line-height: 1.3; }