Skip to content

feat(ui): theme-aware colors for Banner and ToolExecution#3

Open
jakeschepis wants to merge 1 commit into
KenKaiii:mainfrom
jakeschepis:feat/theme-aware-colors
Open

feat(ui): theme-aware colors for Banner and ToolExecution#3
jakeschepis wants to merge 1 commit into
KenKaiii:mainfrom
jakeschepis:feat/theme-aware-colors

Conversation

@jakeschepis

Copy link
Copy Markdown

Summary

Replaces all remaining hardcoded hex colors in Banner.tsx and ToolExecution.tsx with theme tokens so the UI properly adapts between dark and light mode.

Changes

Banner.tsx

  • Added a light-specific gradient palette for the ASCII logo animation (darker blues/indigos that are visible on light backgrounds)
  • Gradient is selected based on theme.name at render time
  • Provider status checkmark now uses theme.success instead of hardcoded #4ade80

ToolExecution.tsx

  • Diff lines, grep results, find/ls output, task lines, and MCP result lines all use theme tokens (theme.primary, theme.textMuted, theme.warning, theme.error, theme.success, theme.text, theme.textDim, theme.diffAdded, theme.diffRemoved) instead of baked-in dark-mode hex values
  • Error output uses theme.error instead of #f87171
  • Bash output uses theme.warning/theme.textMuted instead of #fbbf24/#9ca3af

Why

The theme system already supports dark/light mode switching via settings, but these two components still had ~20 hardcoded dark-mode colors. On light mode they looked washed out or invisible. Now everything adapts automatically.

No logic changes — just wiring existing theme tokens into the remaining components.

Test Plan

  • pnpm check && pnpm lint && pnpm format:check — all pass
  • Switch to light mode via /settings — verify Banner gradient, tool output, diffs, grep results, and task lines are all readable
  • Verify dark mode is unchanged

🤖 Generated with Claude Code

…olExecution

All remaining hardcoded hex color values in Banner.tsx and ToolExecution.tsx
now reference theme tokens (theme.primary, theme.textMuted, theme.warning, etc.)
so the UI properly adapts between dark and light mode.

Banner: added light-specific gradient palette, provider status uses theme.success.
ToolExecution: diff lines, grep results, find/ls output, task lines, and MCP results
all pull from theme tokens instead of baked-in dark-mode colors.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant