fix(ui): make playground chat bubbles theme-aware - #37978
Merged
yuneng-berri merged 1 commit intoAug 24, 2026
Merged
Conversation
The playground message bubble painted its fill, border and avatar circle from inline hex values, so in dark mode both bubbles stayed near-white while the text inherited the dark foreground: the message body was unreadable. The MCP-events placeholder bubble in ChatUI carried the same three fills. They move onto the tokens the rest of the sweep already uses, so the assistant surface is bg-card over border-border and the user surface is the info tint at the same weight the other selected-state surfaces take. Light mode keeps the same colour family it had. The regression test asserts the token classes and that no inline style survives on either surface, which is the exact shape the bug took.
Contributor
Greptile SummaryThe PR replaces fixed light-colored Playground chat-bubble styles with semantic theme tokens so messages and the MCP-events placeholder adapt to light and dark themes.
Confidence Score: 5/5The PR appears safe to merge because the new classes reference defined theme tokens with compatible light- and dark-theme contrast. The change is limited to presentation utilities, uses semantic token and opacity patterns already supported by the dashboard’s Tailwind pipeline, and adds focused regression coverage without weakening existing tests.
|
| Filename | Overview |
|---|---|
| ui/litellm-dashboard/src/app/(dashboard)/playground/components/chat_ui/ChatMessageBubble.tsx | Replaces fixed bubble, border, and avatar colors with registered semantic tokens that provide readable light- and dark-theme combinations. |
| ui/litellm-dashboard/src/app/(dashboard)/playground/components/chat_ui/ChatUI.tsx | Applies the same theme-aware card, foreground, border, and muted tokens to the temporary MCP-events assistant bubble. |
| ui/litellm-dashboard/src/app/(dashboard)/playground/components/chat_ui/ChatMessageBubble.test.tsx | Adds focused parameterized assertions that both roles use the intended semantic surface and avatar classes instead of inline colors. |
Reviews (1): Last reviewed commit: "fix(ui): make playground chat bubbles th..." | Re-trigger Greptile
yuneng-berri
enabled auto-merge (squash)
August 23, 2026 05:37
ryan-crabbe-berri
approved these changes
Aug 24, 2026
galactic-batter Bot
pushed a commit
to codgician/litellm
that referenced
this pull request
Sep 1, 2026
The playground message bubble painted its fill, border and avatar circle from inline hex values, so in dark mode both bubbles stayed near-white while the text inherited the dark foreground: the message body was unreadable. The MCP-events placeholder bubble in ChatUI carried the same three fills. They move onto the tokens the rest of the sweep already uses, so the assistant surface is bg-card over border-border and the user surface is the info tint at the same weight the other selected-state surfaces take. Light mode keeps the same colour family it had. The regression test asserts the token classes and that no inline style survives on either surface, which is the exact shape the bug took. (cherry picked from commit 3fb1009)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
TLDR
Problem this solves:
How it solves it:
bg-cardoverborder-borderUser Flow
Before: someone using the Playground in dark mode cannot read any of the conversation, so the page is unusable for them
After: the same conversation is readable in dark mode, and light mode looks exactly as it did
Relevant issues
Linear ticket
Pre-Submission checklist
uv run pytest tests/test_litellm/<your_test_file>.py -v. Leave the suites (make test-unit-*,make test-unit) to CI: it finishes in ~15 minutes where a laptop takes an hour or more@greptileaito re-request a review after pushing changes)Delays in PR merge?
If you're seeing a delay in your PR being merged, ping the LiteLLM Team on Slack (#pr-review).
Screenshots / Proof of Fix
Shared setup, run once against a proxy started from the branch under test:
Before (aae36f4)
claude-sonnet-5under Select Model, type any message, and hit sendAfter (dc7b195)
claude-sonnet-5under Select Model, type the same message, and hit sendType
🐛 Bug Fix
Caveats (if any)
Final Attestation