[FEATURE]: Support light theme (white background with black text) #9397

Open
opened 2026-02-16 18:12:21 -05:00 by yindo · 1 comment
Owner

Originally created by @jwqdjs on GitHub (Feb 15, 2026).

Originally assigned to: @rekram1-node on GitHub.

Feature Request

希望opencode交互界面支持light主题(白底黑字)。

描述

当前opencode CLI界面默认为暗色主题(黑底白字),希望增加light主题选项,即:

  • 白色背景
  • 黑色文字

使用场景

  • 在光线明亮的环境下使用更舒适
  • 个人偏好light主题的用户
  • 需要截图或分享会话时更清晰

建议实现

可以通过配置文件或命令行参数切换主题,例如:

▄
█▀▀█ █▀▀█ █▀▀█ █▀▀▄ █▀▀▀ █▀▀█ █▀▀█ █▀▀█
█  █ █  █ █▀▀▀ █  █ █    █  █ █  █ █▀▀▀
▀▀▀▀ █▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀

Commands:
opencode completion generate shell completion script
opencode acp start ACP (Agent Client Protocol) server
opencode mcp manage MCP (Model Context Protocol) servers
opencode [project] start opencode tui [default]
opencode attach attach to a running opencode server
opencode run [message..] run opencode with a message
opencode debug debugging and troubleshooting tools
opencode auth manage credentials
opencode agent manage agents
opencode upgrade [target] upgrade opencode to the latest or a specific version
opencode uninstall uninstall opencode and remove all related files
opencode serve starts a headless opencode server
opencode web start opencode server and open web interface
opencode models [provider] list all available models
opencode stats show token usage and cost statistics
opencode export [sessionID] export session data as JSON
opencode import import session data from JSON file or URL
opencode github manage GitHub agent
opencode pr fetch and checkout a GitHub PR branch, then run opencode
opencode session manage sessions
opencode db database tools

Positionals:
project path to start opencode in [string]

Options:
-h, --help show help [boolean]
-v, --version show version number [boolean]
--print-logs print logs to stderr [boolean]
--log-level log level [string] [choices: "DEBUG", "INFO", "WARN", "ERROR"]
--port port to listen on [number] [default: 0]
--hostname hostname to listen on [string] [default: "127.0.0.1"]
--mdns enable mDNS service discovery (defaults hostname to 0.0.0.0)
[boolean] [default: false]
--mdns-domain custom domain name for mDNS service (default: opencode.local)
[string] [default: "opencode.local"]
--cors additional domains to allow for CORS [array] [default: []]
-m, --model model to use in the format of provider/model [string]
-c, --continue continue the last session [boolean]
-s, --session session id to continue [string]
--fork fork the session when continuing (use with --continue or --session) [boolean]
--prompt prompt to use [string]
--agent agent to use [string]

  • 或在配置文件中设置

谢谢!

Originally created by @jwqdjs on GitHub (Feb 15, 2026). Originally assigned to: @rekram1-node on GitHub. ## Feature Request 希望opencode交互界面支持light主题(白底黑字)。 ### 描述 当前opencode CLI界面默认为暗色主题(黑底白字),希望增加light主题选项,即: - 白色背景 - 黑色文字 ### 使用场景 - 在光线明亮的环境下使用更舒适 - 个人偏好light主题的用户 - 需要截图或分享会话时更清晰 ### 建议实现 可以通过配置文件或命令行参数切换主题,例如: - ▄ █▀▀█ █▀▀█ █▀▀█ █▀▀▄ █▀▀▀ █▀▀█ █▀▀█ █▀▀█ █  █ █  █ █▀▀▀ █  █ █    █  █ █  █ █▀▀▀ ▀▀▀▀ █▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ Commands: opencode completion generate shell completion script opencode acp start ACP (Agent Client Protocol) server opencode mcp manage MCP (Model Context Protocol) servers opencode [project] start opencode tui [default] opencode attach <url> attach to a running opencode server opencode run [message..] run opencode with a message opencode debug debugging and troubleshooting tools opencode auth manage credentials opencode agent manage agents opencode upgrade [target] upgrade opencode to the latest or a specific version opencode uninstall uninstall opencode and remove all related files opencode serve starts a headless opencode server opencode web start opencode server and open web interface opencode models [provider] list all available models opencode stats show token usage and cost statistics opencode export [sessionID] export session data as JSON opencode import <file> import session data from JSON file or URL opencode github manage GitHub agent opencode pr <number> fetch and checkout a GitHub PR branch, then run opencode opencode session manage sessions opencode db database tools Positionals: project path to start opencode in [string] Options: -h, --help show help [boolean] -v, --version show version number [boolean] --print-logs print logs to stderr [boolean] --log-level log level [string] [choices: "DEBUG", "INFO", "WARN", "ERROR"] --port port to listen on [number] [default: 0] --hostname hostname to listen on [string] [default: "127.0.0.1"] --mdns enable mDNS service discovery (defaults hostname to 0.0.0.0) [boolean] [default: false] --mdns-domain custom domain name for mDNS service (default: opencode.local) [string] [default: "opencode.local"] --cors additional domains to allow for CORS [array] [default: []] -m, --model model to use in the format of provider/model [string] -c, --continue continue the last session [boolean] -s, --session session id to continue [string] --fork fork the session when continuing (use with --continue or --session) [boolean] --prompt prompt to use [string] --agent agent to use [string] - 或在配置文件中设置 谢谢!
yindo added the opentui label 2026-02-16 18:12:21 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Feb 15, 2026):

This issue might be a duplicate of existing issues. Please check:

  • #9697: [FEATURE]: Light/Dark mode auto-switching
  • #480: Support dark/light mode os sync
  • #8632: [FEATURE]: Base16 Default Theme for TUI (Dark & Light)
  • #9005: [FEATURE]: Need Dark Mode
  • #3244: Different theme for light and dark mode

These issues already discuss light theme support for OpenCode. Please review them to see if your use case is already covered or if you have additional requirements.

@github-actions[bot] commented on GitHub (Feb 15, 2026): This issue might be a duplicate of existing issues. Please check: - #9697: [FEATURE]: Light/Dark mode auto-switching - #480: Support dark/light mode os sync - #8632: [FEATURE]: Base16 Default Theme for TUI (Dark & Light) - #9005: [FEATURE]: Need Dark Mode - #3244: Different theme for light and dark mode These issues already discuss light theme support for OpenCode. Please review them to see if your use case is already covered or if you have additional requirements.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#9397