Theme-aware rainbow post-processing for the OpenCode TUI.
It adds:
Install from the CLI:
opencode plugin oc-plugin-rainbow
Or from OpenCode commands:
Ctrl+PInstall Pluginoc-plugin-rainbowRequires OpenCode >=1.3.14.
Plugin options can be configured via the tui.json config file.
enabled (boolean, default true)fg (boolean, default true): animate neutral text colorsbg (boolean, default true): animate neutral background surfacesspeed (number, default 0.008, range 0-0.03)turns (number, default 3, range 0.25-8)glow (number, default 0.05, range 0-0.15)keybinds.logo_splash (string, default ctrl+shift+r): trigger the white-flash logo routeExample:
{
"$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.
$ claude mcp add oc-plugin-rainbow \
-- python -m otcore.mcp_server <graph>