Antigravity modal templates for AI websites and apps
Real modal designs you can copy into Antigravity. Antigravity turns a pasted template into code in your project's stack, written and tested by Antigravity's agents. Below: the designs, how to set Antigravity up so it keeps the design, and what makes a good modal section.
Antigravity modal templates
13 modal design templates for Antigravity. Browse the full BrowserMoon library for every template category.
Browse all templatesHow to use modal templates with Antigravity
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 Antigravity
Save the template and its DESIGN.md in your project, and add a rule in AGENTS.md or GEMINI.md telling the agents to follow them for all UI work.
Prompt, then refine
Paste it and describe your product. Then follow up with: "Build this section from design/template.html and follow DESIGN.md. Open it in the browser and fix any differences from the template."
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 Antigravity
Antigravity runs several agents that plan, code and test in a built-in browser, so it suits developers who want agents to build and check whole pages at once.
What Antigravity builds
Code in your project's stack, written and tested by Antigravity's agents.
Where the design goes
Save the template and its DESIGN.md in your project, and add a rule in AGENTS.md or GEMINI.md telling the agents to follow them for all UI work.
Antigravity and modal sections
Each agent can pick its own look unless a rule points them all to the same design. 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 DESIGN.md templates.
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 Antigravity with it.
Frequently asked questions
How do I use a modal template in Antigravity?
Save the template and its DESIGN.md in your project, add a rule in AGENTS.md or GEMINI.md to follow them, and ask the agent for the page. Save the template and its DESIGN.md in your project, and add a rule in AGENTS.md or GEMINI.md telling the agents to follow them for all UI work.
What does Antigravity turn the template into?
Code in your project's stack, written and tested by Antigravity's agents.
How do I stop Antigravity changing the design?
Each agent can pick its own look unless a rule points them all to the same design. A follow-up prompt that helps: "Build this section from design/template.html and follow DESIGN.md. Open it in the browser and fix any differences from the template."
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 Antigravity tips for modal sections?
Each agent can pick its own look unless a rule points them all to the same design. Paste the template again with your follow-up prompt if it starts to drift.
More Antigravity template categories
Modal templates for other tools