The mockup

Docs

A prompt the sample pages do not fit earns a page of its own: a layout generated for the product you described, painted in whatever recipe is on screen. It is the Custom view, first in the preview's picker, and the project's face in the workbench.

How to use it

Pick an idea card and send its prompt as written, and the canvas opens on Custom with a page already made for that idea: nothing is generated or billed for it, and the project is created with it like any other page. Write your own prompt instead; if it reads as a landing page, a dashboard, a blog, a booking or an arcade, the matching sample page opens and no page is generated. Anything else starts a generation beside the first question. The canvas shows a skeleton in your theme until it lands, then the page; the view picker offers Custom from then on, with the sample pages still available.

The page's photos follow the same rules as the sample pages: Unsplash photos with a credit line, icons from the project's icon set, and art painted from your tokens wherever a slot has no photo; a page carries at most one video and eight photos. When the AI writes the page it also picks photos by searching Unsplash for your product, an optional hero video from a small set of hosted loops, and icons. Photos found for earlier pages are kept and reused when they match what a slot asks for, so a page often needs no new search. A slot that neither those nor a search can fill (no search key, or a slow or rate limited search) shows theme art. See The preview.

A project created with a generated page opens the workbench on Custom, and the project's Pages & screens page lists it first under Pages as Custom page, to look at in your current tokens, light or dark, on any device. It has no versions there and cannot be changed or added to an app: the view says it came from project creation. The starter's front page and the /design-system section's custom page are the same spec rendered by the same component, unless the project has a home marketing page, which then replaces the starter's front page.

How it works

The generation is one JSON call that returns a layout: a list of sections (a hero, feature grids, stats, a form, a call to action) with copy, no colours. The renderer paints every section in the recipe's tokens, so the page follows each card you stage. The spec is validated for shape only; a page needs no contrast repair since it carries no colour.

The renderer makes sure the inputs and the accent have somewhere to land: a spec without a form gets a default one, and the first item of a grid wears the accent badge when none does. A generated page holds at most eight sections, cut from the end while keeping the first nav, hero and form; a page saved on a project may hold sixteen.

The call runs beside the first question, on its own request, and the wizard never waits on it. A failure is silent by design: the canvas falls back to the sample page, there is no retry button, and the flow is not owed a second attempt. A draft paused before the page landed is owed one, paid with the next call you make.

The spec is stored on the project and read back when the workbench opens; a stored spec of an older shape costs the project its Custom view, never the workbench.

What can go wrong

  • No Custom view appears: the prompt matched a sample page, or the generation failed silently. An idea card's prompt that you edited counts as your own prompt.
  • The page shows but the project was created without it: the draft was restored and the page never landed; the next call pays for it.