codex icon indicating copy to clipboard operation
codex copied to clipboard

[Feature Request][GUI App] A three-layer theming system: Theme v2, decorative theme packs, and advanced user stylesheets

Open VirgilMing opened this issue 4 months ago • 6 comments

What variant of Codex are you using?

msstore App

What feature would you like to see?

As the ChatGPT desktop app and Codex expand to a broader audience, visual personalization and accessibility are becoming meaningful product needs. The existing codex-theme-v1 import/export format is already a strong and safe foundation. Please consider evolving it into a three-layer theming system, with each layer offering a different balance of capability, stability, and risk.

1. Theme v2: structured design tokens

This should be the safe, stable customization layer for general users. In addition to the options already supported by codex-theme-v1, Theme v2 could include:

  • UI and code color tokens
  • Accent and semantic colors
  • Typography and font sizes
  • Interface density
  • Spacing and corner radius
  • Sidebar and window transparency
  • Motion intensity and duration
  • Built-in animation preset identifiers
  • Separate light and dark variants

Theme v2 should remain schema-based, validated, portable as a share string, and unable to execute code or load arbitrary resources.

2. Theme Packs: decorative assets and restricted motion

For richer personalization, please consider an importable theme package format such as .codextheme. A package could contain:

theme.json
assets/
|-background.png
|-sidebar-decoration.svg
|-empty-state.svg
|...
animations.css

This layer could support:

  • Local PNG backgrounds and illustrations
  • Sanitized SVG decorations
  • Sidebar textures and corner ornaments
  • Custom empty-state artwork
  • Scoped glow, shimmer, breathing, floating, and gradient animations
  • Separate decorative assets for light and dark variants

Theme packs should remain declarative and constrained:

  • No JavaScript or HTML injection
  • No remote resources or @import
  • SVG scripts, external references, and foreignObject should be removed
  • CSS should be scoped to documented decorative containers
  • Decorative elements should use pointer-events: none and aria-hidden
  • Decorations must not cover login, permission, approval, or security UI
  • Motion must respect prefers-reduced-motion
  • The app should provide preview, one-click disable, and safe-mode recovery

Token-only themes could continue to use compact codex-theme-v2: share strings, while themes containing assets could be distributed as .codextheme files.

3. Advanced user stylesheet

For users who explicitly accept compatibility risks, please consider an opt-in mechanism similar to Firefox userChrome.css. The desktop app could load a local stylesheet without modifying the signed application package. A supported implementation could provide:

  • Stable --codex-* CSS custom properties
  • Stable data-codex-* styling hooks
  • A Settings UI for selecting, reloading, and disabling the stylesheet
  • A safe-mode startup option that disables all custom styling
  • Compatibility warnings after application updates
  • No JavaScript or HTML injection
  • Blocking of external network resources and @import
  • Administrative policy controls for managed environments

The internal DOM would not need to become a supported public API. A limited set of documented variables and styling hooks would already enable meaningful advanced customization.

Why a layered model

These layers address different needs:

  • Theme v2 provides safe and stable appearance controls for most users.
  • Theme Packs support artwork and ambient motion without exposing the entire application UI.
  • Advanced stylesheets provide an explicitly unsupported or best-effort escape hatch for users who accept update-related breakage.

This approach could:

  • Improve accessibility and personal comfort
  • Make the desktop app more approachable to non-developers
  • Support safe community-created themes
  • Preserve the integrity of the signed application package
  • Discourage users from installing modified third-party clients that may access conversations, credentials, local files, or native IPC

There is already visible demand for personalized Codex themes. I have seen evidence of people charging users for modified clients simply for deep visualization customization (see this tweet (OP is in Chinese)). An official three-layer customization model could serve this demand without encouraging binary patching.

Additional information

No response

VirgilMing avatar Jul 16 '26 04:07 VirgilMing

I'd like to extend this proposal with a local-first, user-owned visual customization model for Codex Desktop, including custom skins, startup animations, and workspace layouts.

The central idea is simple:

Users should control how Codex looks and presents information, while OpenAI continues to control how Codex executes tasks.

Requested capabilities

  1. Local skin packages: Allow users to load custom themes, icons, fonts, backgrounds, and decorative assets from a local directory, without patching the signed application or modifying its internal files.

  2. Custom startup animations: Support optional local images or short animations during startup, with non-blocking playback, preview, timeout protection, and automatic fallback.

  3. User-defined workspace layouts: Expose a limited set of documented UI slots so users can arrange the conversation, file explorer, code/diff viewer, terminal, and Agent status panels. Save layouts locally, optionally per project.

  4. Read-only visual task events: Expose task lifecycle events, such as running, waiting for approval, completed, or failed, for triggering decorative animations and visual indicators without altering execution behavior.

  5. AI-native theme generation: Let users describe their preferred visual experience in natural language. Codex could generate the theme manifest, local assets, and layout configuration, preview the result, and apply it after user approval.

Low-maintenance architecture

This does not need to become a full third-party plugin framework.

The application could expose a small, versioned visual customization contract consisting of theme tokens, local asset references, layout slots, and read-only task status events.

Custom themes would be owned and maintained by their users. If an application update introduces breaking visual changes, theme authors would be responsible for adapting their local configurations.

OpenAI would maintain only the documented customization boundary, rather than guaranteeing compatibility with arbitrary internal UI structures.

An example local theme package could contain:

my-codex-theme/
  manifest.json
  theme.json
  layout.json
  assets/
    background.png
    icons/
    startup.webm

Security and reliability boundaries

This proposal concerns presentation only, not execution privileges.

Custom themes must not be able to modify Agent scheduling, model calls, tool invocation, filesystem permissions, authentication, sandboxing, or approval decisions.

Permission prompts and other security-critical interfaces must remain clearly visible and functional, regardless of the selected skin.

To keep the system predictable, the first implementation could prohibit executable JavaScript, arbitrary HTML injection, and remote asset loading.

The application should also provide a safe-mode startup option, resource limits, and a one-click reset to the official interface.

Why this matters

Codex is used by developers who already have the ability to build and customize their own tools.

A local-first customization system would give those users meaningful control over their working environment without requiring unofficial patches or modified clients.

It could also create a distinctive AI-native experience: Codex would become capable of designing its own interface according to the user's instructions.

This would improve personalization, accessibility, workflow ergonomics, and the sense of ownership over the development environment.

Related proposals

  • #33497: Theme packs and advanced styling (this issue)
  • #32444: Configurable workspace layouts

These ideas could work together under a single principle:

User-owned presentation. Codex-owned execution. Officially enforced security boundaries.

cbcraftlab avatar Oct 22 '26 07:10 cbcraftlab

I support better visual customization and a more functional desktop workspace. Related feedback is in #56665, including proper buttons instead of text-heavy menus and more intuitive controls. Could the maintainers share whether improvements to the desktop UX are on the roadmap? A brief response would be appreciated.

gitarist1111111-coder avatar Oct 25 '26 08:10 gitarist1111111-coder

Could the proposed theme system also support language-specific code styling, particularly for ABAP?

I'd like to configure colors for ABAP keywords, comments, strings, and other recognized syntax categories independently of other languages, consistently across conversation code blocks, file previews, and diffs.

This would also require reliable ABAP syntax highlighting. Being able to approximate a familiar ADT or SAP GUI editor theme would make reviewing ABAP code in Codex more comfortable.

melinerunen avatar Oct 26 '26 02:10 melinerunen

6. Could the proposed theme system also support language-specific code styling, particularly for ABAP? I'd like to configure colors for ABAP keywords, comments, strings, and other recognized syntax categories independently of other languages, consistently across conversation code blocks, file previews, and diffs. This would also require reliable ABAP syntax highlighting. Being able to approximate a familiar ADT or SAP GUI editor theme would make reviewing ABAP code in Codex more comfortable.

I think your request is somewhat orthogonal to the theming system proposed here, particularly the part about ABAP syntax highlighting support. Perhaps you could open a separate feature request for it?

VirgilMing avatar Oct 26 '26 04:10 VirgilMing

I created #64257, but Codex pointed me towards this open issue. #64257 refers specifically to a transparency control (more accurately how much the background tints the surface).

stephenrblake avatar Nov 27 '26 04:11 stephenrblake

The entire Codex interface needs a fundamental redesign to make it genuinely user-friendly, rather than relying on primitive text-based menus. You are talking about background transparency, while the real problem is the usability and organization of the interface itself.

Unfortunately, I get the impression that the developers simply do not care. They seem neither to read these discussions nor to act on users’ feedback.

I genuinely do not understand how a company that supposedly values its reputation can afford to consistently ignore its customers. What is the point of having a feedback platform if meaningful suggestions are left unanswered and nothing changes?

gitarist1111111-coder avatar Nov 27 '26 05:11 gitarist1111111-coder