[PR #12007] feat: add enabled_themes config option to restrict available themes #14020

Open
opened 2026-02-16 18:18:50 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/12007

State: open
Merged: No


Add a new configuration option that allows users to specify an allowlist of themes. When set, only the specified themes appear in the theme selector.

This is useful for:

  • Enforcing consistent theming across teams/organizations
  • Limiting choices to themes that work well with specific terminals
  • Creating a simplified theme selection experience

Changes:

  • Add enabled_themes schema option in config.ts
  • Filter themes in TUI context based on config
  • Filter themes in Desktop/Web app based on config
  • Regenerate SDK types
  • Update documentation in themes.mdx and config.mdx

EXAMPLE
image

Fixes #12006

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/12007 **State:** open **Merged:** No --- Add a new configuration option that allows users to specify an allowlist of themes. When set, only the specified themes appear in the theme selector. This is useful for: - Enforcing consistent theming across teams/organizations - Limiting choices to themes that work well with specific terminals - Creating a simplified theme selection experience Changes: - Add enabled_themes schema option in config.ts - Filter themes in TUI context based on config - Filter themes in Desktop/Web app based on config - Regenerate SDK types - Update documentation in themes.mdx and config.mdx EXAMPLE <img width="2259" height="1379" alt="image" src="https://github.com/user-attachments/assets/e6fdad5c-4ed3-4bc7-9368-7b75aa32c279" /> Fixes #12006
yindo added the pull-request label 2026-02-16 18:18:50 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#14020