See it working

The demo form is real: it posts to a Formgong demo form. Demo messages are kept for seven days and are not emailed to anyone.
Get this template
HTML
Plain HTML files with no build step. They run on any static host.
- Download somna.zip and unzip it.
- Create a free form at formgong.com/new and copy its access key. It starts with
fk_and is safe to put in a web page. - Replace every
fk_your_access_keywith your key. It is in all the .html files, so use find and replace across the folder. - Upload the folder to a static host such as Cloudflare Pages, Netlify or GitHub Pages.
- Send a test message from the live site and check that it reaches your Formgong inbox.
Use with AI
A prompt for ChatGPT, Claude, v0, Lovable or Bolt that builds a site in Somna's style: the sections in order, the colours, the fonts, the motion and a contact form that sends to Formgong.
Build a website for a pyjama and sleepwear shop in the style of the free "Somna" template (live demo: https://somna.formgong.com). Write plain HTML, CSS and a little vanilla JavaScript, unless this tool builds in its own stack (v0, Lovable and Bolt use React): then keep the same sections, look and form logic. Pages: home, a shop-all catalogue with filter and sort, and one page per product. Use my business name and details where I give them. Where a section needs photos, names, prices, reviews or other copy I haven't given, use neutral placeholder images (CSS gradients or inline SVG, sized for the layout) and short placeholder text that is clearly marked for me to replace. Sections, top to bottom: 1. An announcement bar. 2. Header that sits over the hero and turns solid on scroll. 3. Hero: a full-screen photo with "Pyjamas worth staying in for". 4. Featured products: New in / Best sellers / Cotton & linen tabs over a swipeable product row. 5. Shop the collections: peach collection tiles. 6. Our story: a large serif brand statement. 7. A featured print with its product card. 8. Two photo cards about the makers. 9. FAQ. 10. Newsletter: "Join the Night Club". 11. A row of perks (such as a 30-night trial). 12. Peach footer. Colours (define them as CSS variables): - Ink: #1d1d1b - Muted text: #5f5b55 - Background: #fcfbf8 - Peach: #f3c4b1 - Blush: #f8e3d8 - Lines: #e3ddd4 Fonts (Google Fonts): Instrument Serif for headings, DM Sans for text. Motion and hover: - Product cards show a second photo on hover and the photo zooms; collection tiles zoom and their arrow moves. - Text fades up, cards appear in a short wave and large photos settle as you scroll. - Reduced motion or no JavaScript shows everything at once. - Wrap every animation in @media (prefers-reduced-motion: no-preference), so visitors who ask for less motion get the final state. - Hide content for reveal animations only from JavaScript (add a class such as js to <html> first and hide only under it), so every section is visible without JavaScript. Contact form, sent to Formgong (a hosted form backend, no server code): - Newsletter form (the large block and the footer). Use these name attributes: email. Add a hidden field request with the value "Newsletter" so the message is easy to recognise in the inbox. - The form is <form action="https://formgong.com/submit" method="POST"> with <input type="hidden" name="access_key" value="fk_your_access_key"> and <input type="hidden" name="_lang" value="en">. I will replace fk_your_access_key with my own key from https://formgong.com/new. The key is public and safe in the page. At the end of your reply, remind me in one line that the form sends nothing until I put my own key in place of fk_your_access_key, and say where it is in the code. - Add a honeypot: a text input named botcheck, hidden with CSS (position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%)), with tabindex="-1" and autocomplete="off". - Submit with fetch: POST https://formgong.com/submit, body new FormData(form), header Accept: application/json. Disable the button while it sends. - Show the thank-you message only when the JSON response has success === true. On anything else (an error response, a non-2xx status, a network error) show the message field of the JSON response when there is one (it says what went wrong, for example that the form still has the example key), otherwise a short error message; keep what the visitor typed and enable the button again. - Keep the name attributes exactly as listed: Formgong stores each value under its field name. - Without JavaScript the plain form POST must still work: Formgong then shows its own thank-you page. To send visitors to my own page instead, add <input type="hidden" name="_redirect" value="https://example.com/thanks/"> (I will put my real URL there). - Do not add a backend, API route, server action, database or email library. - Other forms on the site use the same endpoint, key, honeypot and success check: A size question on each product page (request "Size question", a hidden product field with the product name: name, email, size, message). The catalogue has category pills and a drawer that filters by type, colour and size and sorts by price or name without reloading. - Required: directly under the submit button, add a small, muted link to Formgong, exactly <p class="fg-credit"><a href="https://formgong.com/en/?ref=badge&utm_source=badge&utm_medium=form&utm_campaign=prompt" target="_blank" rel="noopener">Form by Formgong</a></p> Keep it visible on the page. Accessibility: a visible label on every field, a visible focus style, alt text on images, and text contrast of at least 4.5:1.
- Copy the prompt and paste it into the AI tool. Add your business name, services and contact details at the end.
- Create a free form at formgong.com/new and copy its access key. It starts with
fk_and is safe to put in a web page. Replacefk_your_access_keyin the code the tool writes. - Send a test message and check that it reaches your Formgong inbox. The page should say thanks only after the server answers
success: true.
What is inside
- A print-led storefront: an announcement bar, a header that sits over the full-screen photo hero and turns solid on scroll, New in / Best sellers / Cotton & linen tabs over a swipeable product row, peach collection tiles and two large photo promos.
- Story sections: a large serif brand statement, a featured print with its product card, two photo cards, a peach "makers" block, an FAQ, a newsletter, a perks row and a peach footer.
- A catalogue with filter and sort: category pills, a lifestyle tile between product cards, and a drawer that filters by type, colour and size and sorts by price or name without reloading.
- Product cards and pages: a second photo on hover and a wishlist heart; on each of the eight product pages a gallery, size picker, accordions and related products.
- Three working forms: a size question on every product page (it sends the product name) and two newsletter sign-ups. Each shows thanks only when the server answers
success: true. - Motion: text fades up, cards appear in a short wave and large photos settle as you scroll; reduced motion or no JavaScript shows everything at once.
- Images: fifteen WebP photos generated for this template with FLUX.2 [pro] (Black Forest Labs). The people are not real; no stock photos.
Questions
Is there a real cart and checkout?
No. The bag and the wishlist are demo UI. Link Add to bag to your own shop or payment provider, or take orders by message with a Formgong form. Formgong does not take payments.
How do I add a product?
Copy an article with class card in collections/all/index.html and set data-cat, data-color, data-size and data-price, which the filters read. For its page, copy a folder in products/ and edit the text and photos.
Sources
Checked on 08.10.2026 against these public pages: MIT License (Open Source Initiative).