A collection of themes for OpenCode based on the Xscriptor terminal color schemes. These themes are derived from the ANSI color palettes defined in the colors.md specification and translated into OpenCode's full semantic theme format.
| Theme | Type | Description |
|---|---|---|
x |
Dark | Deep dark background with vibrant pink, green, and cyan accents |
madrid |
Light | Clean light background with deep red, green, and blue tones |
lahabana |
Dark | Dark gray background with bright neon accents |
miami |
Dark | True black background with vibrant synthwave-inspired colors |
paris |
Dark | Deep purple-black background with pastel cyan and blue accents |
tokio |
Dark | Dark gray background with balanced warm and cool tones |
oslo |
Dark | Dark blue-gray background with professional muted palette |
helsinki |
Light | Near-white background with earthy, natural tones |
berlin |
Dark | True black background with monochrome grayscale palette |
london |
Light | White background with sophisticated grayscale tones |
praha |
Dark | Dark background with Dracula-inspired vibrant colors |
bogota |
Dark | Deep maroon-black background with cyan and warm accents |
- OpenCode installed
- Your terminal must support truecolor (24-bit color). Run
echo $COLORTERMto verify it outputstruecoloror24bit
Run the install script directly from GitHub:
curl -fsSL https://raw.githubusercontent.com/xscriptor/opencode/main/themes/xscriptor-themes/install.sh | bashOr clone the repository and run the script locally:
git clone https://github.com/xscriptor/opencode.git
cd opencode/themes/xscriptor-themes
chmod +x install.sh
./install.shCopy the theme files to the OpenCode themes directory:
# Create the themes directory if it doesn't exist
mkdir -p ~/.config/opencode/themes
# Copy all themes
cp colors/*.json ~/.config/opencode/themes/Once installed, select a theme in OpenCode using the /theme command inside the TUI, or set it directly in your tui.json configuration file:
{
"$schema": "https://opencode.ai/tui.json",
"theme": "x"
}Replace "x" with any of the available theme names (madrid, lahabana, miami, paris, tokio, oslo, helsinki, berlin, london, praha, bogota).
OpenCode loads themes from the following directories, with later directories overriding earlier ones:
- Built-in themes - embedded in the binary
- User config directory -
~/.config/opencode/themes/*.json - Project root directory -
.opencode/themes/*.json - Current working directory -
./.opencode/themes/*.json
For personal use, install to ~/.config/opencode/themes/. For project-specific themes, use .opencode/themes/ in your project root.
Each theme follows the OpenCode theme specification. The structure includes:
defs- Color definitions referencing the original ANSI terminal palettetheme- Semantic color mappings for the OpenCode UI, including syntax highlighting, markdown rendering, diff views, and interface elements
All themes reference the https://opencode.ai/theme.json schema for validation and editor autocompletion.
themes/xscriptor-themes/
colors/ # Theme JSON files (one per color scheme)
x.json
madrid.json
...
install.sh # Automated installation script
README.md # This fileThe original ANSI color definitions are documented in colors.md at the repository root.
MIT