Theme-aware rainbow post-processing for the OpenCode TUI.
It adds:
- animated foreground color bands for neutral text
- optional animated background tint for neutral surfaces
- a built-in settings dialog for toggling and tuning the effect live
Install from the CLI:
opencode plugin oc-plugin-rainbowOr from OpenCode commands:
- Press
Ctrl+P - Select
Install Plugin - Enter
oc-plugin-rainbow
Requires OpenCode >=1.3.14.
Plugin options can be configured via the tui.json config file.
enabled(boolean, defaulttrue)fg(boolean, defaulttrue): animate neutral text colorsbg(boolean, defaulttrue): animate neutral background surfacesspeed(number, default0.008, range0-0.03)turns(number, default3, range0.25-8)glow(number, default0.05, range0-0.15)keybinds.logo_splash(string, defaultctrl+shift+r): trigger the white-flash logo route
Example:
{
"$schema": "https://opencode.ai/tui.json",
"plugin": [
[
"oc-plugin-rainbow",
{
"enabled": true,
"fg": true,
"bg": true,
"speed": 0.008,
"turns": 3,
"glow": 0.05
}
]
]
}Open Rainbow settings from the command palette or run /rainbow-settings to tune the effect live. Those changes are stored locally per user.
Point a TUI config at the package directory:
{
"$schema": "https://opencode.ai/tui.json",
"plugin": [["../../oc-plugin-rainbow", { "enabled": true }]]
}The package exports its TUI entry at ./tui and provides default config via package.json.