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 petsA small pixel cat is included by default when you apply a theme. Run Codex Theme: Select Pixel Pet to choose a cat, dog, fox, rabbit, panda, or penguin. Selecting an animal also enables it, even without a color theme. Move through the options with the mouse or arrow keys to preview each animal and its animations in a side panel. Press Enter to select it, or Escape to cancel. The preview closes automatically and does not modify Codex or your saved preferences while browsing. Each animal has eight-frame animations for walking, looking around and blinking, grooming, sleeping with gentle breathing, and jumping. In a 32-second cycle it walks right, pauses to look around and groom, hops, turns, walks back, and rests. Species have distinct ears, tails, markings, and colors. Run Codex Theme: Toggle Pixel Pet to turn your companion on or off. After the one-time setup, changes appear live. Your animal and visibility choices are saved in extension state and preserved across theme changes and restarts, without writing to User Settings. Pets do not intercept clicks or keyboard input. With the system's reduced-motion preference enabled, the pet 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. Pets use embedded SVG sprite sheets 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.
Run Run Run 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 |