mirror of
https://github.com/anomalyco/opentui.git
synced 2026-04-25 21:15:52 +03:00
[GH-ISSUE #805] Transparent backgrounds are composited against black instead of the terminal background #986
Labels
No labels
bug
core
documentation
feature
good first issue
help wanted
pull-request
question
react
solid
tmux
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/opentui#986
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @akronb on GitHub (Mar 12, 2026).
Original GitHub issue: https://github.com/anomalyco/opentui/issues/805
Semi-transparent backgrounds rendered over transparent areas seem to be composited against black rather than the terminal’s actual background color. I first noticed this in
opencode(https://github.com/anomalyco/opencode/issues/13363), but it seems to be related toopentui.I made a minimal repro that renders the same semi-transparent red overlay in two cases: over a solid white base and over a transparent background.
As you can see from the screenshot of my repro, when the background is transparent, it becomes black under the overlay for some reason.
Environment
@opentui/core ^0.1.87bun 1.3.10macOS 15.7.4Ghostty 1.3.0