Build a calm 404 page for a public library service called Marrowgate Libraries. Paper background (#f5f2ea), deep green (#23372f), sage (#7a8f7e), clay (#c98b5a) and hairlines in #e3ddcf, serif headings. Centre a 300px inline SVG shelf of books with one empty dashed slot and a "404" luggage tag that sways gently on a 6s loop. Then a small uppercase "Page not found", a 56px serif headline "This page is out on loan" and a line showing the broken path. Under it, a "Did you mean" card with a clay left border that picks the closest real page to the broken path using Levenshtein distance, with a dark "Take me there" pill. Then a 56px search box built as a combobox: empty, it lists "Popular right now"; typing filters about 22 pages by title, section and path, ranks title matches first, highlights matching words and shows a match count or a kind no results line. Arrow keys move through results, Enter opens one, Escape clears. Below, three cards (Renew your books, today's opening hours worked out from the weekday, Join for free) and a line to call or chat with a librarian. On phones the cards become a scroll snap row. Stop the sway for reduced motion.
Written by Informeek Studio to recreate this design. Prompts are not deterministic, so running it again gives a similar result, not an identical one.
Use it in three steps
- Copy the prompt with the button above.
- Paste it into your AI site builder, or any AI chat that writes code.
- Make it yours by loading your own sitemap into the search list and suggestion card.
About this custom 404 page
A custom 404 page for a public service should be calm, not clever. Libraries get visitors of every age and confidence, so this one says what happened in plain words, shows the broken address, and then does the work of finding the right page. A small shelf with one empty slot and a swaying 404 tag is the only joke.
The first help is a guess. The page compares the broken link with the real addresses on the site and offers the closest match, so a mistyped Saturday storytime link points straight to the right event. If the guess is wrong, the search box underneath lists popular pages before you type a word and filters the whole site as you do, highlighting the words that matched. It works from the keyboard like a proper search, and three cards cover the jobs most people came to do anyway.
Why the prompt works
- It asks for a real guess, using edit distance between the broken and real paths.
- It specifies the search behaviour, ranking, highlighting, empty and no result states.
- It keeps the tone gentle, with one small illustration and no jokes at the visitor.
- It ends with a person, a phone number and a chat for anyone still stuck.
Where to use it
Councils, libraries, universities, charities, help centres and any large site where people arrive from old links and printed leaflets.
The prompt is shared under CC BY 4.0. Reuse it freely, including commercially, with a credit linking back to this page.