fix(ui): apply themed background to input area and app surface#2182
Merged
Conversation
The theme system defines SURFACE.bg and SURFACE.bgInput but no component applied them — the entire UI rendered on the terminal's default background, causing: - Input text invisible when terminal bg differs from theme - No visual separation between card stream and input area - Theme surface colors completely unused Add backgroundColor to three layout containers: - App root Box → SURFACE.bg (app canvas) - ComposerArea wrapper → SURFACE.bgInput (input dock) - PromptInput bordered Box → SURFACE.bgInput (input field) Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
9 tasks
4 tasks
esengine
approved these changes
May 29, 2026
esengine
left a comment
Owner
There was a problem hiding this comment.
Clean, small theming change — applies the theme's surface colors at the Ink-Box level: SURFACE.bg on the root app row and SURFACE.bgInput on the composer/prompt-input boxes. Unlike #2223's OSC 11 approach, this only paints the app's own rendered region (no terminal-state mutation to restore), so it's self-contained and safe. Tokens exist for every theme. I approved the workflow run; good to merge once CI is green. Note it's complementary to #2223 (in-app box bg vs actual terminal bg) — you may want only one depending on the look you're after, but they don't conflict.
4 tasks
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.
Summary
SURFACE.bgto the root App layout Box so the entire UI renders on the theme's background instead of the terminal's defaultSURFACE.bgInputto the PromptInput and ComposerArea wrappers so the input area has a distinct themed surfaceChanges
src/cli/ui/App.tsx— mergedSURFACEimport, addedbackgroundColor={SURFACE.bg}to root layout Boxsrc/cli/ui/ComposerArea.tsx— addedSURFACEimport, addedbackgroundColor={SURFACE.bgInput}to outer composer wrappersrc/cli/ui/PromptInput.tsx— addedbackgroundColor={SURFACE.bgInput}to the bordered input Box (SURFACEwas already imported)Test plan
/theme— backgrounds should change accordingly