pi-theme-flip
Pi package adding a non-blocking command to toggle light and dark themes
Package details
Install pi-theme-flip from npm and Pi will load the resources declared by the package manifest.
$ pi install npm:pi-theme-flip- Package
pi-theme-flip- Version
0.1.0- Published
- May 12, 2026
- Downloads
- 22/mo · 4/wk
- Author
- adstastic
- License
- MIT
- Types
- extension
- Size
- 4.9 KB
- Dependencies
- 0 dependencies · 1 peer
Pi manifest JSON
{
"extensions": [
"./src/index.ts"
]
}Security note
Pi packages can execute code and influence agent behavior. Review the source before installing third-party packages.
README
pi-theme-flip
A tiny Pi extension that adds an immediate theme toggle command.
No polling. No OS detection. No subprocesses. It only calls Pi's ctx.ui.setTheme() when you ask.
Install
From npm:
pi install npm:pi-theme-flip
Try without installing:
pi -e npm:pi-theme-flip
From this repository:
npm install
npm run build
pi -e ./src/index.ts
Or install/use it as a Pi package from a local path:
pi install /absolute/path/to/pi-theme-flip
Use
/theme-flip
/theme-flip toggle
/theme-flip dark
/theme-flip light
/theme-flip status
/theme-flip toggles between Pi's built-in dark and light themes.
Pi extension commands execute immediately while the agent is streaming, so you can run /theme-flip during a tool call or long response without waiting for the agent turn to finish.
Behavior
- Current
darktheme flips tolight. - Any other current theme flips to
dark. darkandlightforce one side.statusreports the active theme name.- Non-UI modes no-op.