Skip to content
Source
Sign inSign up
pingdotgg/t3code

[Bug]: Highlighted row in the command palette project picker is nearly invisible in dark mode #26402

OpenTurbovadim(GitHub profile, opens in a new tab) opened this issue 3 comments

Before submitting

  • I searched existing issues and did not find a duplicate.
  • I included enough detail to reproduce or investigate the problem.

Area

apps/web

Steps to reproduce

  1. Use the dark theme.
  2. Open the command palette (Cmd+K) and go to the project list (the page with "No project" at the top).
  3. Move through the list with the arrow keys.

Expected behavior

The highlighted row is easy to see at a glance, so keyboard navigation shows clearly which project Enter will pick.

Actual behavior

The highlighted row is only slightly lighter than the palette background. In the screenshot, bisquit-billing-frontend is highlighted, and it's hard to tell from the rows around it. The two-line rows (name plus muted path) and the fact that there is no other marker make it worse. Once you've moved a few rows, you lose track of the highlight.

The highlight is set in apps/web/src/components/ui/command.tsx:

data-selected:bg-foreground/[0.06] data-highlighted:bg-foreground/[0.09]

That's 9% foreground over an already near-black popup, so the difference is only a few RGB steps.

Related, but in other components:

  • #19208 (selected and hovered rows look the same in the shared dropdown, menu.tsx)
  • #19903 (open thread's sidebar row too faint, closed)

Possible fixes, for maintainers to choose: a stronger highlight background (for example bg-accent), a left accent bar or ring on the highlighted row, or brighter text on the highlighted row.

Impact

Cosmetic issue

Version or commit

0.1.4-nightly.20261028.3814

Environment

macOS desktop app (T3 Code Nightly), dark theme

Screenshots, recordings, or supporting files

Project picker with the first project row highlighted

  1. Image Image

    Two more places contrast is too low in dark mode.

  2. I agree the palette selection contrast is really bad! I have to squint with my face glued to the screen to see where I am in the menu!

    Image
  3. Agreed! same issue with the skill selector :)

  4. tanstack-source added labelsbug

Sign in to join this conversation.