Mode-switch "Switch" button text has poor contrast (white text on yellow/gray background)

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

The “Switch” button on mode-switching tool-use cards uses white text, which has poor contrast against the button background. This affects both Plan Mode (yellow background) and Agent Mode (gray background). In comparison, other action buttons like “Build” on plan cards use the same yellow background but correctly apply dark text for legibility.

Steps to Reproduce

  1. In Agent mode, give a prompt that causes the agent to invoke the mode-switch tool to Plan mode.
  2. Observe the “Switch” button — it has a yellow background with white text, making it hard to read.
  3. Switch back to Agent mode via the same mechanism — the “Switch” button has a gray background with white text, also difficult to read.
  4. Compare against the “Build” button on a plan card, which uses dark text on yellow and is fully legible.

Expected Behavior

The “Switch” button text should use a color with sufficient contrast against its background, matching the approach used by the “Build” button.

Screenshots / Screen Recordings


Operating System

Windows 10/11

Version Information

Version: 3.0.16
Commit: 475871d112608994deb2e3065dfb7c6b0baa0c50
Date: 2026-04-09T05:33:51.767Z
Layout: editor
Browser: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Cursor/3.0.16 Chrome/142.0.7444.265 Electron/39.8.1 Safari/537.36

Does this stop you from using Cursor

No - Cursor works, but with this issue

Hi @KamilTheDev Thanks for reporting. I believe this is as intended: the colors appear yellow when prompting you to go into Plan mode and white when switching back to agent mode.

Although your theme colors do appear slightly different. By any chance do you have a custom theme applied or settings overrides?

The background colors are fine — yellow for Plan, grey for Agent. The issue is the text color on those backgrounds.

The Switch button gets its text color from .anysphere-button, which sets color: var(--vscode-button-foreground) — this resolves to white, since it’s designed for the standard blue primary button. But the Switch button’s background is set to light colors via inline styles (var(--vscode-input-foreground) for Agent, var(--composer-mode-plan-text) for Plan), so white text has poor contrast.

The “Build” button doesn’t have this problem because .composer-create-plan-build-button explicitly overrides to color: var(--vscode-editor-background) (dark). The Switch button has no such override — it just falls back to the generic .anysphere-button white.

I’m on the stock Default Dark Modern theme with no color customizations affecting buttons. Could you try reproducing with that specific theme?

As a workaround I’m currently patching it with custom CSS:

.composer-tool-call-block-wrapper .anysphere-button {
  color: var(--vscode-editor-background) !important;
}

For clarity, I highlighted the issue (text) with a red box:

After reloading Cursor with my CSS fix applied, the text color is correctly dark instead of white: