Skip to content

System them in macos with ghostty doesn't apply opacity #4027

Closed

Description

@osmel-bsport

Description

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.

OpenCode version

1.0.39

Steps to reproduce

  1. Open a ghostty terminal with config:
background-opacity = 0.9
background-blur-radius = 10
  1. Enter to opencode
  2. Select system theme

Screenshot and/or share link

Image

Operating System

mac os 26.0.1

Terminal

Ghostty

Activity

  1. added
    opentuiThis relates to changes in v1.0, now that opencode uses opentui
    on Nov 7, 2025
  2. github-actions commented on Nov 7, 2025

    @github-actions
    Contributor

    This issue might be a duplicate of existing issues. Please check:

    Feel free to ignore if none of these address your specific case.

  3. seaweeduk commented on Nov 7, 2025

    @seaweeduk

    same issue with alacritty on Linux no background transparency, old system theme prior to 1.0 did not have this issue

  4. FammasMaz commented on Nov 7, 2025

    @FammasMaz

    Same issue on ghostty on mac.

  5. marked transparent backgrounds #4044 as a duplicate of this issue on Nov 7, 2025
  6. jensenojs commented on Nov 8, 2025

    @jensenojs
    Contributor

    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.

    Image
  7. joshmedeski commented on Nov 10, 2025

    @joshmedeski
    Contributor

    The system theme was dropped when the opentui version was released, hopefully we can add it back soon.

  8. FammasMaz commented on Nov 10, 2025

    @FammasMaz

    Its already added now. Only the opacity is missing.

    The system theme was dropped when the opentui version was released, hopefully we can add it back soon.

  9. OfficialSerge commented on Nov 12, 2025

    @OfficialSerge

    w fix, I saw this after fighting with opencode for a hot second. I'm on 1.0.46 and 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/config

  10. thdxr commented on Nov 12, 2025

    @thdxr
    Member

    wait so does it work?

  11. self-assigned this
    on Nov 12, 2025
  12. jensenojs commented on Nov 12, 2025

    @jensenojs
    Contributor
    Image

    no work in 1.0.58, wezterm

    Image Image
  13. khalid-talakshi commented on Nov 12, 2025

    @khalid-talakshi

    On ghostty 1.0.58 and it won't even respect my system theme on ghostty

  14. 19 remaining items

  15. dylanellington commented on Jan 7, 2026

    @dylanellington

    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.

  16. KeentGG commented on Jan 8, 2026

    @KeentGG

    @KeentGG that's the mac os Tahoe tabs :)

    oh thanks, i forgot i had it also but im using tmux instead of native tabs

  17. danaimone commented on Jan 11, 2026

    @danaimone

    Following as I'm also seeing this issue using Ghostty 1.2.3 on Tahoe 26.0 despite trying the system theme.

    Image
  18. wybert commented on Jan 13, 2026

    @wybert

    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

  19. added a commit that references this issue on Jan 14, 2026
    279e932
  20. dylanellington commented on Jan 14, 2026

    @dylanellington

    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?

  21. immortalt commented on Jan 16, 2026

    @immortalt

    Same issue on ghostty on mac.

  22. tusxxx commented on Jan 26, 2026

    @tusxxx

    same
    ghostty
    macos

  23. zhiyuanzhai commented on Jan 30, 2026

    @zhiyuanzhai

    Same situation for iTerm2.app of macOS.

  24. rodrigo-picanco commented on Jan 30, 2026

    @rodrigo-picanco

    For anyone who might benefit from it, the lucent-orng has 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

  25. R44VC0RP commented on Jan 30, 2026

    @R44VC0RP
    Contributor

    Why lucent-orng works but system doesn't:

    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:

    1. Use lucent-orng theme
    2. 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.

  26. seaweeduk commented on Jan 30, 2026

    @seaweeduk

    A system-transparent variant would be nice. I just want the existing system theme with the old transparent background I had before opentui

  27. pablopunk commented on Feb 2, 2026

    @pablopunk
    Contributor

    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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't workinghelp-wantedopentuiThis relates to changes in v1.0, now that opencode uses opentui

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions