Codex ThemeCustomize the colors of your Codex chat panel independently of your VS Code theme. Preview release. This is an unofficial extension and is not affiliated with OpenAI. It installs a reversible local appearance updater in the Codex webview. Features
InstallationInstall from a VSIX using Extensions → … → Install from VSIX… and select the latest The official Codex extension ( Choose a theme
The one-time setup is necessary because an already-open Codex webview cannot load a newly installed script until it is reopened. An update to Codex that removes the updater may require this step again. Customize your colorsRun Codex Theme: Customize Colors to enter eight colors in You can also edit
Pixel catA small pixel cat is included by default when you apply a theme. It walks back and forth at the bottom of the panel, with animated legs and a tail. It does not intercept clicks or keyboard input. Run Codex Theme: Toggle Pixel Cat to turn it on or off. After the one-time setup, the change appears live. It can also be enabled without applying a color theme. Your choice is saved in the extension's own state and reused when selecting another theme, without writing to User Settings. With the system's reduced-motion preference enabled, the cat remains still. Restore the original appearanceRun Codex Theme: Restore Original. The live appearance is cleared and the HTML updater tag is removed. Restoring a legacy CSS patch from versions before 0.2.0 still requires reopening the panel to unload the old stylesheet. Restore the original appearance before uninstalling this extension. Uninstalling alone does not remove the appearance updater. How it worksVS Code does not provide a public API for an extension to directly restyle another extension's webview. Codex Theme adds a marked external script tag to the installed Codex The updater reads only the local appearance CSS every 400 ms while the panel is visible, updating a dedicated style element only when its content changes. It pauses while hidden and preserves the last style if reading fails. It does not access chat messages, change the page HTML during theme switching, or send data to an external service. The cat uses an embedded SVG sprite sheet and CSS animations. The existing Content Security Policy and Codex JavaScript bundles are not changed. Legacy stylesheet patches are removed when migrating to the live updater. Restoring removes the marked HTML tag and updater script, and clears the live CSS. A blank CSS file remains so already-open panels can clear their style without failing their next local read. Other HTML and stylesheet content is preserved. Compatibility and limitations
DevelopmentThe extension uses JavaScript and the VS Code API, with no runtime dependencies.
Open this folder in VS Code and press F5 to launch the Extension Development Host. Applying a theme there also patches the installed Codex files. Run Restore Original after testing. ReferencesLicenseMIT |