Skip to content

[FEATURE]: Custom themes can use calculated system colors #6322

@nihil2501

Description

@nihil2501

Feature hasn't been suggested before.

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

Describe the enhancement you want to request

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

Metadata

Metadata

Assignees

Labels

discussionUsed for feature requests, proposals, ideas, etc. Open discussion

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions