From 3faf1e9f34c4c58129fcf1bc62f12cbdc8047218 Mon Sep 17 00:00:00 2001 From: vikingowl Date: Thu, 1 Jan 2026 07:28:15 +0100 Subject: [PATCH] fix: consistent theming across tool and message components MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - MessageContent: Make prose-invert conditional (dark:prose-invert) and use !important on inline code colors to override Typography - ToolCallDisplay: Replace theme variables with explicit Tailwind dark/light classes for reliable styling - ToolResultDisplay: Same treatment - explicit slate colors for both light and dark modes All components now properly respect light/dark mode toggle. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- .../lib/components/chat/MessageContent.svelte | 9 +++-- .../components/chat/ToolCallDisplay.svelte | 38 +++++++++--------- .../components/chat/ToolResultDisplay.svelte | 40 +++++++++---------- 3 files changed, 45 insertions(+), 42 deletions(-) diff --git a/frontend/src/lib/components/chat/MessageContent.svelte b/frontend/src/lib/components/chat/MessageContent.svelte index eed6831..4b66a06 100644 --- a/frontend/src/lib/components/chat/MessageContent.svelte +++ b/frontend/src/lib/components/chat/MessageContent.svelte @@ -391,7 +391,7 @@ {:else if part.type === 'tool-result'} {:else} -
+
{@html renderMarkdown(part.content)}
{/if} @@ -489,7 +489,9 @@ } .message-content :global(.prose code:not(pre code)) { - @apply rounded bg-slate-200 px-1.5 py-0.5 text-sm text-emerald-700; + @apply rounded px-1.5 py-0.5 text-sm; + background-color: rgb(226 232 240) !important; /* slate-200 */ + color: rgb(4 120 87) !important; /* emerald-700 */ } .message-content :global(.prose a) { @@ -544,7 +546,8 @@ } :global(.dark) .message-content :global(.prose code:not(pre code)) { - @apply bg-slate-700 text-emerald-400; + background-color: rgb(51 65 85) !important; /* slate-700 */ + color: rgb(52 211 153) !important; /* emerald-400 */ } :global(.dark) .message-content :global(.prose a) { diff --git a/frontend/src/lib/components/chat/ToolCallDisplay.svelte b/frontend/src/lib/components/chat/ToolCallDisplay.svelte index 56de618..86dd9c6 100644 --- a/frontend/src/lib/components/chat/ToolCallDisplay.svelte +++ b/frontend/src/lib/components/chat/ToolCallDisplay.svelte @@ -187,14 +187,14 @@ {@const isExpanded = expandedCalls.has(call.id)}
-
+