You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
System them in macos with ghostty doesn't apply opacity #4027
First of all thank you for the effort making opencode great. One regression I still see after system theme was shipped for the version 1.* is that it doesn't pick up the opacity at least in Ghostty.
Iv been lurking on this ticket for awhile since I really want this change. I took a look at it and at least for the background its pretty easy to alter the generateSystem function to default bg to transparent while that leaves all other settings the same. But that is not a valid solution for the long term.
We cannot by default set a transparent background for the system.
OpenTui cannot reliably detect if a terminal is running a transparent or blurred setting. So we get no values back there to help at runtime for the system styling.
We cannot bundle a transparent theme as there are required options that would make it no longer system styled.
If all of those are true, you need a new settings file field for theme overrides that would smoothly allow for small tweaks like this to any system or bundled theme. And to me that is a clean approach to this which I believe Zed ide does as well.
I hope that at least we can spark more conversation here in this ticket and come to a decision on the right direction for a solution to this problem.
Iv been lurking on this ticket for awhile since I really want this change. I took a look at it and at least for the background its pretty easy to alter the generateSystem function to default bg to transparent while that leaves all other settings the same. But that is not a valid solution for the long term.
* We cannot by default set a transparent background for the system.
* OpenTui cannot reliably detect if a terminal is running a transparent or blurred setting. So we get no values back there to help at runtime for the system styling.
* We cannot bundle a transparent theme as there are required options that would make it no longer system styled.
If all of those are true, you need a new settings file field for theme overrides that would smoothly allow for small tweaks like this to any system or bundled theme. And to me that is a clean approach to this which I believe Zed ide does as well.
I hope that at least we can spark more conversation here in this ticket and come to a decision on the right direction for a solution to this problem.
@rekram1-node When you get time can you review my thoughts here so we can confirm whether or not we need a more detailed design and review to be in place to enhance theming as a whole in Opencode?
lucent-orng sets background: transparent AND defines selectedListItemText with solid contrasting colors. The system theme can't do this—PR #4408 tried adding transparency but broke text contrast on selected items (#4369), so it was reverted.
Workarounds:
Use lucent-orng theme
Create a custom theme: copy lucent-orng.json to ~/.config/opencode/themes/, modify colors while keeping background: transparent and selectedListItemText defined
A proper fix needs a theme override system or a system-transparent variant.
Activity
github-actions commentedon Nov 7, 2025
This issue might be a duplicate of existing issues. Please check:
Feel free to ignore if none of these address your specific case.
seaweeduk commentedon Nov 7, 2025
same issue with alacritty on Linux no background transparency, old system theme prior to 1.0 did not have this issue
FammasMaz commentedon Nov 7, 2025
Same issue on ghostty on mac.
jensenojs commentedon Nov 8, 2025
how can i enable it after this issue fixed ? like @joshmedeski does on wezterm , I haven't seen setting in previous issues or pull requests.
joshmedeski commentedon Nov 10, 2025
The system theme was dropped when the opentui version was released, hopefully we can add it back soon.
FammasMaz commentedon Nov 10, 2025
Its already added now. Only the opacity is missing.
OfficialSerge commentedon Nov 12, 2025
w fix, I saw this after fighting with opencode for a hot second. I'm on
1.0.46and I've set my default theme to be that of my system.{ "$schema": "https://opencode.ai/config.json", "theme": "system" }Apparently this is all you have to do and it should respect the transparency values you've set in
~/.config/ghostty/configthdxr commentedon Nov 12, 2025
wait so does it work?
jensenojs commentedon Nov 12, 2025
no work in 1.0.58, wezterm
khalid-talakshi commentedon Nov 12, 2025
On ghostty 1.0.58 and it won't even respect my system theme on ghostty
19 remaining items
dylanellington commentedon Jan 7, 2026
Iv been lurking on this ticket for awhile since I really want this change. I took a look at it and at least for the background its pretty easy to alter the generateSystem function to default bg to transparent while that leaves all other settings the same. But that is not a valid solution for the long term.
If all of those are true, you need a new settings file field for theme overrides that would smoothly allow for small tweaks like this to any system or bundled theme. And to me that is a clean approach to this which I believe Zed ide does as well.
I hope that at least we can spark more conversation here in this ticket and come to a decision on the right direction for a solution to this problem.
KeentGG commentedon Jan 8, 2026
oh thanks, i forgot i had it also but im using tmux instead of native tabs
danaimone commentedon Jan 11, 2026
Following as I'm also seeing this issue using Ghostty 1.2.3 on Tahoe 26.0 despite trying the system theme.
wybert commentedon Jan 13, 2026
Not working with Warp terminal in Macos, I am using opencode v 1.1.15 and Warp v0.2026.01.07.08.13.stable_01
fix(tui): respect terminal transparency in system theme
dylanellington commentedon Jan 14, 2026
@rekram1-node When you get time can you review my thoughts here so we can confirm whether or not we need a more detailed design and review to be in place to enhance theming as a whole in Opencode?
immortalt commentedon Jan 16, 2026
Same issue on ghostty on mac.
tusxxx commentedon Jan 26, 2026
same
ghostty
macos
zhiyuanzhai commentedon Jan 30, 2026
Same situation for iTerm2.app of macOS.
rodrigo-picanco commentedon Jan 30, 2026
For anyone who might benefit from it, the
lucent-ornghas transparent set as background color.Not a fix, but does the trick for me.
Screen.Recording.2026-01-30.at.21.11.01.mov
I'm on 1.1.46, macOS Tahoe 26.2 and Ghostty 1.2.3
R44VC0RP commentedon Jan 30, 2026
Why
lucent-orngworks butsystemdoesn't:lucent-orngsetsbackground: transparentAND definesselectedListItemTextwith solid contrasting colors. Thesystemtheme can't do this—PR #4408 tried adding transparency but broke text contrast on selected items (#4369), so it was reverted.Workarounds:
lucent-orngthemelucent-orng.jsonto~/.config/opencode/themes/, modify colors while keepingbackground: transparentandselectedListItemTextdefinedA proper fix needs a theme override system or a
system-transparentvariant.seaweeduk commentedon Jan 30, 2026
A system-transparent variant would be nice. I just want the existing system theme with the old transparent background I had before opentui
pablopunk commentedon Feb 2, 2026
I didn't mention it here cause the PR is linked automatically but I've fixed this on #8467 (at least it did work for me locally using Ghostty)