Skip to content
Codex DesignBETA

GPT Image 2.6 mockup to HTML prompt for Codex

Turn a GPT Image 2.6 mockup into one self-contained HTML file in Codex, matching layout, spacing, colors and text, with icons in inline SVG.

Prompt
Rebuild the attached mockup image as one self-contained HTML file at [390×844], with inline CSS and system fonts. Match the layout, spacing, colors, and text exactly. Draw icons with inline SVG.
Works with
GPT Image 2.6, Codex
From the set
GPT Image 2.6 prompts

About this prompt

Every other prompt in this set ends with a picture, which you can’t click, resize or ship. This one is for Codex: attach the mockup you generated and it rebuilds the image as a single self-contained HTML file with inline CSS and system fonts, matching the layout, spacing, colors and text, and drawing the icons as inline SVG.

The bracketed size is the one thing to change. Keep 390×844 for a phone screen and use the mockup’s own dimensions for anything else, for example 1440×900 for a desktop hero or dashboard. If the image has photos, tell Codex where the real files are rather than asking it to recreate them.

Expect a close first pass, not a pixel-perfect one. On a Codex Design canvas the generated image and the HTML version sit side by side, so mismatches in spacing or font size are easy to spot and fix, either visually or with a follow-up prompt to Codex.

More prompts from this set

An independent plugin for Codex. Not affiliated with or endorsed by OpenAI.