fix(ui): theme the created-key box so it follows dark mode - #37985
Merged
yuneng-berri merged 1 commit intoAug 24, 2026
Merged
Conversation
The virtual key shown after creating a key sits in a div with a hardcoded #f8f8f8 inline background, so in dark mode the box keeps the light background while the key text inherits the light foreground color, leaving the key nearly unreadable. Swap the inline styles for the bg-muted and text-foreground tokens, which resolve per theme.
Contributor
Greptile SummaryThis PR replaces the created-key box’s hardcoded light styling with semantic theme tokens so virtual keys remain readable in dark mode.
Confidence Score: 5/5The PR appears safe to merge, with the theme-token replacement preserving the component’s existing layout and wrapping behavior. The semantic color tokens are defined for both themes, the equivalent spacing and wrapping utilities are available, and the component’s existing callers remain compatible with the updated presentation.
|
| Filename | Overview |
|---|---|
| ui/litellm-dashboard/src/components/shared/CreatedKeyDisplay.tsx | Replaces hardcoded inline presentation styles with defined semantic theme utilities while preserving key wrapping and layout. |
| ui/litellm-dashboard/src/components/shared/CreatedKeyDisplay.test.tsx | Adds a focused assertion that the key container uses the muted theme token and no inline style. |
Reviews (1): Last reviewed commit: "fix(ui): theme the created-key box so it..." | 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
…7985) The virtual key shown after creating a key sits in a div with a hardcoded #f8f8f8 inline background, so in dark mode the box keeps the light background while the key text inherits the light foreground color, leaving the key nearly unreadable. Swap the inline styles for the bg-muted and text-foreground tokens, which resolve per theme. (cherry picked from commit 5f56be3)
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:
User Flow
Before: an admin on the dark theme creates a virtual key and cannot read the key they were just told to save
After: the same dialog shows the key at full contrast on the dark theme
Relevant issues
Linear ticket
Pre-Submission checklist
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
Setup: run the proxy with
python litellm/proxy/proxy_cli.py --config litellm/proxy/dev_config.yaml --detailed_debug --reload --use_v2_migration_resolver, run the dashboard withnpm run devinui/litellm-dashboard, open http://localhost:3000/?page=api-keys, and switch the dashboard to the dark themeBefore (aae36f4)
After (b94a1b8)
Type
🐛 Bug Fix
Caveats (if any)