Windsurf modal templates for AI websites and apps

Real modal designs you can copy into Windsurf. Windsurf turns a pasted template into code in your project's existing stack, edited by Cascade. Below: the designs, how to set Windsurf up so it keeps the design, and what makes a good modal section.

Windsurf modal templates

13 modal design templates for Windsurf. Browse the full BrowserMoon library for every template category.

Get with licenceFile import modal template for SaaS apps

Pine

File import modal template for SaaS apps

Modals · 1,438 copies

Get with licenceGlass command palette template for SaaS apps

Heights

Glass command palette template for SaaS apps

Modals · 34 copies

Get with licenceGlass toast notification template for SaaS

Islet

Glass toast notification template for SaaS

Modals · 68 copies

Get with licenceProduct tour template for SaaS onboarding

Pebble

Product tour template for SaaS onboarding

Modals · 2,196 copies

Get with licenceToast notification template for SaaS apps

Yarrow

Toast notification template for SaaS apps

Modals · 2,080 copies

Get with licencePopover and tooltip template for SaaS apps

Tranquil

Popover and tooltip template for SaaS apps

Modals · 41 copies

Get with licenceOff canvas drawer menu template for SaaS apps

Poise

Off canvas drawer menu template for SaaS apps

Modals · 85 copies

Get with licenceSaaS dashboard template with onboarding

Thyme

SaaS dashboard template with onboarding

Modals · 2,960 copies

Get with licenceCommand palette template for SaaS web apps

Alder

Command palette template for SaaS web apps

Modals · 3,890 copies

Get with licenceModal popup dialog template for SaaS apps

Kame

Modal popup dialog template for SaaS apps

Modals · 57 copies

Get with licenceRight click context menu template for SaaS

Bay

Right click context menu template for SaaS

Modals · 43 copies

Get with licenceSaaS paywall page template for subscriptions

Refrain

SaaS paywall page template for subscriptions

Modals · 903 copies

Get with licenceUpgrade plan modal template for SaaS apps

Vesper

Upgrade plan modal template for SaaS apps

Modals · 2,874 copies

Browse all templates

How to use modal templates with Windsurf

1

Pick a design

Choose a modal design above and open it to see it live.

2

Copy the template

Copy the template from its page. It is one HTML file with no dependencies.

3

Set up Windsurf

Save the template in your project and add a Windsurf rule that tells Cascade to follow it.

4

Prompt, then refine

Paste it and describe your product. Then follow up with: "Build this section from the template file. Keep its spacing, colours and type exactly."

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 Windsurf

Windsurf is an AI code editor built around its Cascade agent, so it suits developers who want an agent that works across many files.

What Windsurf builds

Code in your project's existing stack, edited by Cascade.

Where the design goes

Save the template in your project and add a Windsurf rule that tells Cascade to follow it.

Windsurf and modal sections

Without a rule, Cascade may restyle the section to match older code in the project. 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.

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 Windsurf with it.

Ask Mon

Frequently asked questions

How do I use a modal template in Windsurf?

What does Windsurf turn the template into?

How do I stop Windsurf changing the design?

What makes a good modal section?

Any Windsurf tips for modal sections?

More Windsurf template categories

Windsurf promptsCopy-paste Windsurf prompts for landing pages, dashboards, pricing, login and AI apps, written to use with these templates.

Modal templates for other tools