Clay

what your AI reads first

The Clay design guide

How to build a static website that looks designed. This is what the Clay MCP hands an AI through get_design_guide before it writes a page, and it is published as a page at clay.site/design-guide. Plain HTML, CSS and JS, no build step, no framework, mobile first.

The rules that always hold

  1. Real content, never filler. No lorem ipsum, no "Your tagline here", no invented reviews, prices, awards, team members or numbers. If you do not know a fact, ask the user or leave the section out. A short true page beats a long made-up one.
  2. No emojis anywhere: not in headings, buttons, lists or the title.
  3. One accent colour. Take it from the logo or the user's brand. Otherwise pick one that fits the trade. Use it for buttons, links and one or two highlights only. Everything else is ink, paper and greys.
  4. Mobile first. Write the phone layout first; widen with min-width media queries. Test the page at 375px wide: nothing scrolls sideways, no text under 16px for body copy, tap targets at least 44px tall.
  5. One clear action per page. Book, call, order, get in touch. It sits in the first screen and again at the end.
  6. Plain punctuation. No em dashes in titles or descriptions; write like a person.

Type

rolephonedeskweightline height
display (hero h1)40px64px7001.05
h2 (section)28px40px6501.15
h3 (card)20px22px6001.25
body17px18px4001.6
small / meta14px14px5001.4

Spacing

Colour

Define tokens once on :root and use only those:

:root {
  --paper: #ffffff;  --ink: #111111;  --muted: #5c5c5c;
  --line: #e6e6e6;   --soft: #f5f5f4; --accent: #0885fe;  --on-accent: #ffffff;
}

Images

Section patterns that always work

Pick the ones that fit; most sites need four to six.

  1. Hero. Name or promise as the h1, one line under it, the main action as a button. A photo beside it on a desk, above or below it on a phone.
  2. What we do. Three to six cards in a grid (one column on a phone, two or three on a desk): a short heading and one or two sentences each.
  3. Proof. Real reviews with the reviewer's first name, or logos of real clients. Never made up.
  4. Gallery. Six to twelve photographs in an even grid, same ratio.
  5. About. One photograph and a short paragraph in the owner's voice.
  6. Practical. Address with a map link, opening hours as a simple table, phone as a tel: link, email as a mailto: link.
  7. Contact form. See below.
  8. Closing action. The main action again, full width, big button, nothing else in the band.
  9. Footer. Name, address, the main links, small print. Small and quiet.

Buttons and links

A form that works on Clay

A form posts to Clay and the owner gets each submission by email and in their account:

<form action="/api/forms/SITE_ID" method="post">
  <label>Name <input name="name" required autocomplete="name"></label>
  <label>Email <input name="email" type="email" required autocomplete="email"></label>
  <label>Message <textarea name="message" rows="5" required></textarea></label>
  <input name="_gotcha" tabindex="-1" autocomplete="off" style="position:absolute;left:-9999px" aria-hidden="true">
  <button type="submit">Send</button>
</form>

Pages, files and the head

<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Name, what it is, where (30 to 60 characters)</title>
<meta name="description" content="One or two plain sentences, 120 to 160 characters.">
<link rel="icon" href="/favicon.svg">
<meta property="og:title" content="..."><meta property="og:image" content="/images/share.jpg">

Motion

Before you publish

Kind: business

For a café, shop, salon, restaurant, studio or trade. Order: hero with the main action (book, call, order, directions), what we do, proof, gallery, practical (hours, address, map link), closing action. Put the phone number and opening hours where a visitor finds them in five seconds. Offer to start from their Google Maps listing.

Kind: portfolio

For a photographer, designer, maker or freelancer. Order: hero with name and one line on what they do, selected work as a large-image grid (each piece a title and a line, optionally its own page), about, clients or kind words, contact. The work is the design: keep everything around it quiet.

Kind: product

A one-page product or app. Order: hero with the promise and the action (buy, sign up, download), the problem in three short lines, how it works in three steps, features as cards, price, questions, closing action. One screenshot or photo per idea.

Kind: event

Order: hero with the name, date, time and place in the first screen, the action (tickets, RSVP), programme as a simple timeline, speakers or performers if real, location with a map link, questions. Write the date in full ("Saturday 14 March 2027, 19:30").

Kind: links

A link page. One column, max width 480px, centred. Name, photo, one line, then the links as full-width buttons (48px tall at least), then social icons as plain SVG. Nothing else.

Kind: coming-soon

One screen. Name, one sentence about what is coming, an email sign-up form (posts to /api/forms/SITE_ID), and one way to reach them. No countdown unless there is a real date.