programs.opencode.themes
Custom themes for opencode.
This option can either be:
- An attribute set defining themes
- A path to a directory containing multiple theme files
If an attribute set is used, the attribute name becomes the theme filename, and the value is either:
- An attribute set that is converted to a JSON file (creates
opencode/themes/<name>.json) - A path to a file (creates
opencode/themes/<name>.json)
If a path is used, it is expected to contain theme files. The directory is symlinked to $XDG_CONFIG_HOME/opencode/themes/.
Set programs.opencode.settings.theme to enable the custom theme.
See https://opencode.ai/docs/themes/ for the documentation.
- Type
(attribute set of (JSON value or absolute path)) or absolute path- Default
{ }- Declared
- <home-manager/modules/programs/opencode.nix>