I wanted Pi to feel like the rest of my OpenCode-themed workspace, but a Pi theme is more than a terminal color preset.
The fourth surface
The palette
| Role | Color |
|---|---|
| Primary | #fab283 |
| Accent | #9d7cd8 |
| Secondary | #5c9cf5 |
| Success | #7fd88f |
| Warning | #e5c07b |
| Error | #e06c75 |
| Background | #0a0a0a |
| Text | #eeeeee |
What is actually mapped
- core UI borders, accents, status colors, and secondary text;
- user messages, extension messages, selection, and scrollbar states;
- pending, successful, and failed tool containers;
- Markdown headings, links, code, quotes, rules, and list bullets;
- added, removed, and contextual diff lines;
- comments, keywords, functions, variables, strings, numbers, and types;
- every Pi thinking level from off through max;
- the separate Bash mode border.
Install it
Bash
mkdir -p "$HOME/.pi/agent/themes"
curl -fsSL \
https://raw.githubusercontent.com/nxxxsooo/opencode-themes/main/pi/opencode.json \
-o "$HOME/.pi/agent/themes/opencode.json"
Bash
pi --theme ./pi/opencode.json
One project, four surfaces
Let AI Do It
Text
Install the OpenCode theme for Pi from:
https://github.com/nxxxsooo/opencode-themes
Ask whether I want a global or project installation.
Back up any existing destination and ~/.pi/agent/settings.json.
Validate pi/opencode.json before copying it.
Install it as opencode.json in the correct Pi themes directory.
Ask before setting "theme": "opencode" in settings.json.
Preserve unrelated settings and verify the final JSON.
Never hardcode a user path; use $HOME.
我想让 Pi 和整个 OpenCode 主题工作区保持一致。但 Pi 主题不是简单换一组终端颜色。
第四个使用场景
配色基础
| 角色 | 颜色 |
|---|---|
| Primary | #fab283 |
| Accent | #9d7cd8 |
| Secondary | #5c9cf5 |
| Success | #7fd88f |
| Warning | #e5c07b |
| Error | #e06c75 |
| Background | #0a0a0a |
| Text | #eeeeee |
具体映射了什么
- 核心 UI 边框、强调色、状态色和次级文字;
- 用户消息、扩展消息、选中状态和滚动条;
- 等待、成功和失败三种工具容器;
- Markdown 标题、链接、代码、引用、分隔线和列表;
- Diff 的新增、删除和上下文;
- 注释、关键字、函数、变量、字符串、数字和类型;
- 从 off 到 max 的所有 Pi Thinking Level;
- 独立的 Bash Mode 边框。
安装
Bash
mkdir -p "$HOME/.pi/agent/themes"
curl -fsSL \
https://raw.githubusercontent.com/nxxxsooo/opencode-themes/main/pi/opencode.json \
-o "$HOME/.pi/agent/themes/opencode.json"
Bash
pi --theme ./pi/opencode.json
一套主题,四个场景
让 AI 帮你安装
Text
请从下面的仓库安装 Pi 的 OpenCode 主题:
https://github.com/nxxxsooo/opencode-themes
先问我是全局安装还是项目安装。
备份已有目标文件和 ~/.pi/agent/settings.json。
复制前验证 pi/opencode.json。
把它作为 opencode.json 安装到正确的 Pi themes 目录。
修改 settings.json 前先问我是否要设为默认主题。
保留所有无关设置,并验证最终 JSON。
不要写死用户目录,统一使用 $HOME。