← All articles
Claude & AI7 min read

How to make a beautiful checkout page with Swipefast and Claude or Codex

A copy-and-paste prompt for designing the page above your Swipefast checkout, without breaking the payment section underneath it.

You do not need to become a front-end developer to make a checkout feel like your product. Swipefast lets you paste a custom HTML page above the payment section. Claude or Codex can write that page from a useful brief, while Swipefast keeps the cart, order bump, payment fields, receipt, and delivery flow underneath it.

The important part is asking for a contained page, not a loose pile of CSS. A contained page keeps its styles inside one wrapper, works on a phone, and hands the buyer cleanly to the real checkout.

Start with the material, not the decoration

Before opening your coding agent, collect the product name, who it is for, the result it helps with, what the buyer receives, the price, your guarantee, two or three pieces of proof, and any images you own. If you do not have proof yet, leave it out. A made-up testimonial is worse than an honest new offer.

Use this prompt in Claude or Codex

Replace the bracketed brief, then paste the full prompt into your coding agent. Ask it to return one HTML fragment. You can paste that result straight into Your page inside the Swipefast checkout editor.

Open the Claude or Codex prompt
Markdown prompt
You are designing the sales page that sits directly above a Swipefast checkout.

PRODUCT BRIEF
[Paste the product name, buyer, desired result, deliverables, price, guarantee, proof, images, and preferred colours here.]

Build one polished, responsive HTML fragment containing its own scoped CSS and only the small amount of JavaScript it truly needs.

Design direction:
- Make it feel editorial, confident, and made by a real creator.
- Use a two-font system: one expressive display face and one calm body face. A Google Fonts <link> is allowed.
- Use generous spacing, strong type scale, one memorable price treatment, and a restrained colour palette.
- Give primary buttons a chunky, tactile feel with a small shadow and a clear hover or pressed state.
- Use contrast deliberately. Most sections should stay quiet so the offer and purchase actions carry weight.
- If the brief includes screenshots, display them in simple taped or framed treatments. Do not invent screenshots, logos, testimonials, results, or guarantees.
- Use motion only when it helps someone understand the page. Respect prefers-reduced-motion.

Swipefast rules:
- Return a fragment, not a full page document. A <link>, <style>, wrapper <div>, and optional <script> are fine.
- Put every section inside one uniquely named wrapper class, such as .my-product-page.
- Scope every CSS selector to that wrapper. Do not style html, body, *, button, input, form, or other global elements by themselves.
- Every buy button must use href="#checkout". Swipefast will place the real checkout below this page.
- Do not create card fields, an order form, a fake checkout, or a second purchase button that takes payment elsewhere.
- Do not hide, overlap, reposition, or restyle Swipefast's payment fields.
- If the page font should continue into the checkout, add a second style tag with data-swipefast-checkout and only this rule:
  .swipefast-checkout, .swipefast-checkout * { font-family: "YOUR BODY FONT", sans-serif !important; }
- Keep layout readable at 320px wide. Avoid fixed widths, horizontal overflow, and text smaller than 16px for body copy.
- Make all images responsive and give them meaningful alt text.

Content rules:
- Use only claims from my brief.
- Keep paragraphs short and specific.
- Use descriptive headings rather than generic labels.
- Do not use fake urgency, fake scarcity, or generic AI phrases.
- End with a compact handoff section that says what happens next and links to #checkout.

Before the code, give me a five-line summary of the visual choices. Then return the complete copy-and-paste HTML in one code block.

Paste it into Swipefast

  • Open Checkouts and choose the product you want to edit.
  • Select Edit checkout, then open Your page.
  • Paste the generated fragment into the HTML box and press Save now.
  • Open the full page in a new tab and test every button.
  • Check the page at phone width before sharing the buyer link.

What to inspect before you publish

Start at the top and read it like a buyer. Can you tell what the product is within a few seconds? Does the first button land on the checkout? Are the product name, price, and promise consistent with the cart? Do your images load on a private browser window?

Then run a test purchase. A beautiful page cannot prove that payment, receipt, delivery, and email automation work. Test the whole route with the same delivery mode and integration you plan to use with buyers.

A small design system beats endless options

Pick one accent colour, one dark ink, one pale background, and one border colour. Give buttons one shape. Give sections one spacing rhythm. The result will feel more expensive than a page with six gradients and a new visual trick every few inches.

Inside Swipefast, use Design to match the checkout colour and font style to the page. If you supplied the data-swipefast-checkout font rule, your chosen body font can carry into the payment section too.

FAQ

Questions people ask before choosing

Can Claude or Codex edit the Swipefast payment form?

No. The pasted HTML sits above the checkout. This separation protects the working payment fields while giving you room to design the sales page.

Can I use Google Fonts?

Yes. Include the Google Fonts link in the pasted fragment. Use the optional data-swipefast-checkout style only when you want that body font to continue into the checkout.

What should my buy buttons link to?

Use #checkout. That moves the buyer to the Swipefast checkout on the same page.

Your checkout

Build the buying path you would want to use.

Start with Swipefast