Email field with consent box

One pill shaped email field with the button inside it, and a consent tick the check really requires.

FormsFreeFrom Kindred, ProductAbout 7k tokens saved
The whole page

Links in the preview stay on the block.

Open on its own

The prompt

One prompt, written to stand on its own: goal, structure, type, colour, spacing, behaviour and the words in square brackets to replace. Paste it into any tool that writes HTML. The Code tab has this block as one file.

764 words
Download .zip
# Email field with consent box

One forms component, not a whole page: build it to drop into a page that already exists. Works in Claude, v0, Lovable, Bolt, Cursor or any tool that writes HTML.

## Goal
A waitlist sign up: one email field with the button inside it and a consent box, in a rounded panel at a page foot.

## Structure
1. A dark section holding a rounded panel in a warm tint
2. A small uppercase monospace label
3. A pill field: email input and submit button on one line
4. A consent checkbox whose label says what the email is for and how to stop it
5. An error line, empty until needed

## Type
General Sans (Fontshare) 400 to 600; alternative Switzer. DM Mono for the label. Label 500 12px/1.4 uppercase, tracking .05em. Input 500 16px/1. Button 600 16px/1. Consent 14.5px/1.45. Error 600 14.5px. Body 18px/1.5.

## Colour
Section #0B2B2C, panel #F2C9CF, ink #22302A, label and consent #3A4842, field #FFFFFF with a 1px rgba(34,48,42,.16) border, placeholder #6D7770. Button #0F5B5C with #E9ECE6 text; hover and focus raise a #F2C9CF fill, text #22302A. Checkbox #0F5B5C, error #7A1F2E. AA: #3A4842 and #7A1F2E on #F2C9CF, #E9ECE6 on #0F5B5C.

## Spacing and lines
Section padding 8px sides, 104px foot. Panel max 1420px, radius 40px, padding 56px (44px at 1300px, 32px at 900px, 22px at 600px). The form takes the last five of twelve columns, gap 28px. Label 8px above. Pill padding 8px, radius 999px, gap 8px. Input 44px tall, padding 10px 16px. Button 44px tall, padding 0 20px 0 26px. Consent 14px below, gap 10px, 18px box. Error 8px below, min height 1.4em.

## Behaviour
A small script checks and confirms. With novalidate on the form: an address with no at sign, or an unticked box, writes one sentence in the error line and focuses the first fault; both passing replaces the form with a one line confirmation. Nothing is sent. Empty shows the placeholder, focus rings the whole pill, invalid keeps the typed address, sent swaps in the confirmation. An IntersectionObserver at threshold 0.12 raises the block 20px and fades it in over 700ms cubic-bezier(.2,.7,.2,1), once. The button fills from the bottom over 550ms cubic-bezier(.7,0,.2,1), its two arrows swapping over 500ms, and presses to scale .97.

## Responsive
Under 1000px the form spans the full grid, 24px top margin. Under 620px the pill comes apart: the input a 50px box with the same border and its own ring, the button full width at 50px, 10px under.

## Accessibility
Label tied by for and id. Input type email, autocomplete and inputmode email. The consent box is required inside its own label. The error line is role alert, named by aria-describedby, keeping its height when empty. Focus 2px solid #0F5B5C offset 4px, on the pill with focus-within. Controls 44px, 50px on a phone.

## Built values (from code.html)
- Fonts: DM Mono 400, 500 (Google Fonts); Zodiak 400, 700 (Fontshare); General Sans 400, 500, 600 (Fontshare).
- Colour variables: --mist #E9ECE6, --mist-2 #F3F5F1, --paper #FFFFFF, --soft #DCE2D7, --ink #22302A, --muted #5C675F, --teal #0F5B5C, --teal-l #7FC4BC, --teal-p #DCEAE7, --blush #F2C9CF, --blush-p #FBE9EC, --night #0B2B2C, --night-2 #11393A, --on-night #E9ECE6.
- Font variables: --serif "Zodiak","Iowan Old Style",Georgia,serif; --sans "General Sans",system-ui,-apple-system,"Segoe UI",sans-serif; --mono "DM Mono",ui-monospace,"SF Mono",Menlo,monospace; --ios -apple-system,"SF Pro Text",system-ui,"Helvetica Neue",Arial,sans-serif.
- Size variables: --pad 56px, --gap 28px, --sec 192px, --edge 14px, --panel 56px, --fnp 36px, --r 20px, --r-l 28px.
- Media queries: max-width 1300px, max-width 900px, max-width 600px, max-width 1000px, max-width 620px, prefers-reduced-motion.
- No media files.
- Script: yes, a small inline script.

## Content to replace
- [Field label]: two words naming what is asked for
- [Placeholder]: an example address
- [Button]: the join action, three words
- [Consent sentence]: what the email is for, that it is not shared, how to stop it
- [Error text]: one line for a bad address, one for a missing tick
- [Confirmation]: one line for the form's place

## Rules
Plain, specific copy that reads as a live product; never the word sample. No shadows, glow, glass, blur, gradient text, emoji or italics. Motion moves transform and opacity, with colour, border, height and stroke transitions on state changes, and holds its end state under prefers-reduced-motion. Text passes WCAG AA.

## Output
Return the block in one piece: the markup, one style block with the web fonts imported on its first line, and a small script only if the behaviour needs one. No page wrapper, no framework, no build step. Prefix every class with `blk-` and put the colours and sizes in CSS variables at the top.

More like this

Forms

Every forms block