Skip to content

About

Transparent backgrounds for OpenCode V2 across all themes, using your terminal default background while preserving dialog and selection colors.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

5 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

OpenCode Transparent Background

Make OpenCode transparent with any theme, using your terminal's transparency through its default background. Text, selected rows, added/removed highlights, and dialog surfaces keep their theme colors. No OpenCode source changes are needed.

Installation

Add the plugin to your existing plugins array in opencode.jsonc:

{
  "plugins": ["github:noonomyen/opencode-transparent-bg"]
}

How it works

flowchart TD
  A[Active theme colors] --> B[Plugin hooks each draw]
  B --> C{Surface}
  C -->|Main UI, autocomplete or diff context| D[Clear background to RGBA 0,0,0,0]
  D --> E[Terminal default background]
  E --> F[Your terminal transparency]
  C -->|Dialog or changed lines| G[Keep theme background]
  C -->|Modal dimmer| H[Skip black fill before blending]
Loading

The plugin follows native clipping and opacity, and restores its hooks on unload. Transparency strength is controlled by your terminal.

Tested with OpenCode V2 2.0.22 and OpenTUI 0.5.14; renderer internals can change between versions.

About

Transparent backgrounds for OpenCode V2 across all themes, using your terminal default background while preserving dialog and selection colors.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Used by

Contributors

Languages