Dark Mode Image
Use when adapting a standalone source image into a dark-mode-suitable version.
Model requirement: the image-generation steps need the
imagegenskill (Codex, gpt-image-2). In agents without it (such as Claude Code), identify the images needing dark variants, list them with target background colors, and ask the user to generate them or source dark versions manually. Never substitute CSS filter workarounds.
Load First
- Before any image generation or editing, load and follow the
imagegenskill.
Workflow
- Load
imagegen. - Inspect the source image and the dark-mode UI context.
- Generate or edit a dark-mode version at the original's dimensions.
- Save it with a
-darksuffix alongside the original. - Return the saved project path for the caller to wire in.
Rules
- You MUST load and follow
imagegenbefore any image generation or editing: not optional. Do not skip it, replace it with an ad hoc workflow, or call image tooling directly first. Letimagegenchoose the workflow; for normal dark-mode variants that usually means its default built-inimage_gentool mode - If the source is a local file, follow
imagegen's local-image guidance before editing so the image is visible in the conversation context - Follow
imagegen's save-path policy: move or copy project-bound generated outputs into the workspace; never leave a project-referenced dark-mode asset only under$CODEX_HOME/* - Choose a background color that feels like an appropriate inversion of the original background: black or dark gray for white, dark gray for off-white, or the specific dark color the user provides; if the original background matched the site background, match the dark-mode site background instead
- Preserve the original contrast characteristics: light sections become darker while relative separation and readability stay intact
- Preserve blurs and softness; never sharpen anything that was blurry in the original
- Preserve foreground palette hues, adjusting saturation and lightness only as needed so the image presents correctly on a dark background
- Preserve the original vibe: bright and intense stays bright and intense, subtle and muted stays subtle and muted
- Preserve fades: watch areas that fade out and keep those fades in the dark-mode version
- The dark-mode image must be exactly the same dimensions as the original
- Save dark-mode images with a
-darksuffix, e.g.bg.jpgandbg-dark.jpg
Verify
- Generated image dimensions match the original exactly.
- The dark-mode image preserves the original composition, softness, fades, and foreground palette.