A moonlight theme for OpenCode based on moonlight-vscode-theme.
- Create the themes directory:
mkdir -p ~/.config/opencode/themes- Download moonlight theme:
curl -o ~/.config/opencode/themes/moonlight.json \
https://raw.githubusercontent.com/brunogabriel/opencode-moonlight-theme/main/.opencode/themes/moonlight.json- Add the theme to
~/.config/opencode/opencode.json:
echo '{ "theme": "moonlight" }' > ~/.config/opencode/opencode.jsonIf the file already exists, manually set the
themefield to"moonlight".
Then restart OpenCode to apply the theme.
Alternatively, inside OpenCode type /themes and select moonlight.
