Skip to content

Conversation

@code-yeongyu
Copy link
Contributor

Fix unreadable diff text on light mode themes by passing fg prop to diff component.

Problem

When using light mode themes, syntax-unhighlighted tokens in diff view render as white text (hardcoded default in opentui's CodeRenderable), making them invisible on light backgrounds.

Solution

Pass fg={theme.text} to the <diff> component so unhighlighted text uses the theme's text color.

Dependency

Requires sst/opentui#390 to be merged first (adds fg prop support to DiffRenderable).

@code-yeongyu code-yeongyu marked this pull request as ready for review December 9, 2025 01:25
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