ChatGPT Codex modal templates for AI websites and apps
Real modal designs you can copy into ChatGPT Codex. ChatGPT Codex turns a pasted template into changes to your repo in its existing stack, delivered as a task you review. Below: the designs, how to set ChatGPT Codex up so it keeps the design, and what makes a good modal section.
ChatGPT Codex modal templates
13 modal design templates for ChatGPT Codex. Browse the full BrowserMoon library for every template category.
How to use modal templates with ChatGPT Codex
Pick a design
Choose a modal design above and open it to see it live.
Copy the template
Copy the template from its page. It is one HTML file with no dependencies.
Set up ChatGPT Codex
Commit the template to your repo and describe it in AGENTS.md, so every Codex task builds to the same design.
Prompt, then refine
Paste it and describe your product. Then follow up with: "Implement this section to match design/template.html exactly. Do not introduce new colours or fonts."
What makes a good modal section
Common types: confirm dialogs, upgrade prompts, short forms and command palettes.
One task per modal
Confirm, choose or fill one short form.
Easy to close
A close button, the Escape key and a click outside.
Focus stays inside
Keyboard users can finish without getting lost.
Common mistake: Modals that open on page load and block reading.
Keeping the design in ChatGPT Codex
Codex works on your repository as tasks you review, so it suits teams who want design work to arrive as reviewable changes.
What ChatGPT Codex builds
Changes to your repo in its existing stack, delivered as a task you review.
Where the design goes
Commit the template to your repo and describe it in AGENTS.md, so every Codex task builds to the same design.
ChatGPT Codex and modal sections
Each task starts fresh, so without AGENTS.md the design is not carried from one task to the next. Paste the template again with your follow-up prompt if it starts to drift.
What to tell it
Keep the modal size and layout, make Escape and the close button work, and keep focus inside the modal.
Set it up once with our AGENTS.md design template.
Not sure which modal design fits?
Ask Mon, the AI design assistant, describe your product and Mon suggests the modal design and how to prompt ChatGPT Codex with it.
Frequently asked questions
How do I use a modal template in ChatGPT Codex?
Paste the template code into your ChatGPT Codex session and describe what you want to build around the design. Commit the template to your repo and describe it in AGENTS.md, so every Codex task builds to the same design.
What does ChatGPT Codex turn the template into?
Changes to your repo in its existing stack, delivered as a task you review.
How do I stop ChatGPT Codex changing the design?
Each task starts fresh, so without AGENTS.md the design is not carried from one task to the next. A follow-up prompt that helps: "Implement this section to match design/template.html exactly. Do not introduce new colours or fonts."
What makes a good modal section?
One task per modal: confirm, choose or fill one short form. Easy to close: a close button, the Escape key and a click outside. Focus stays inside: keyboard users can finish without getting lost.
Any ChatGPT Codex tips for modal sections?
Each task starts fresh, so without AGENTS.md the design is not carried from one task to the next. Paste the template again with your follow-up prompt if it starts to drift.
More ChatGPT Codex template categories
Modal templates for other tools