opencode icon indicating copy to clipboard operation
opencode copied to clipboard

[FEATURE]: Custom themes can use calculated `system` colors

Open nihil2501 opened this issue 3 weeks ago • 1 comments

Feature hasn't been suggested before.

  • [x] I have verified this feature I'm about to request hasn't been suggested before.

Describe the enhancement you want to request

Draft PR

Description

OpenCode themes address UI concepts that don't necessarily exist in themes for other tools like Helix, e.g.:

  • backgroundElement
  • backgroundMenu
  • backgroundPanel
  • border
  • borderActive
  • borderSubtle

In my case, I wanted to make a custom theme that matches what I have in Helix. I also already have terminal ANSI colors that match my Helix theme. Rather than go through the manual work to choose colors for every slot OpenCode offers, I'd like to be able to customize some colors, while falling back to the values of the calculated system theme for the rest.

Example

This "extreme" example shows syntax highlighting I took from Helix's "Pop Dark" theme, and everything else OpenCode is deriving given that Ghostty's theme is set to "HaX0R Blue".

Screenshot 2025-12-28 at 5 57 00 PM

nihil2501 avatar Dec 28 '25 23:12 nihil2501