Commission enquiry with UK postcode
A modal that summarises the chosen sign, then asks for house name, name, email and postcode with field errors, a sending state and a confirmation panel.
Links in the preview stay on the block.
Open on its ownThe 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.
507 words
# Commission enquiry with UK postcode
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 short commission enquiry for a made-to-order product that confirms what was chosen and collects just enough to post a drawing.
## Structure
1. modal dialog, 560px
2. close button top right
3. small caps label, a headline, a one-line summary with the product name in the display face
4. fields: house name, your name, email, postcode, an optional note
5. full-width submit
6. confirmation panel that replaces the form
## Type
Hento 34px headline, 24px summary name with ligatures on. Ysabeau Office 17px inputs, 12px caps labels at 0.14em, 14px errors.
## Colour
Dialog #EAEBE9, text #21262B, secondary #565C63, inputs white with a 1px #21262B border, errors and invalid borders #A3271F, backdrop rgba(33, 38, 43, 0.5) with no blur.
## Spacing and lines
Body padding 54px 36px 36px. Field gap 18px. Inputs at least 48px tall, 10px by 16px padding, 2px radius.
## Behaviour
Opens with showModal and rises 16px over 420ms. Each required field validates on blur once filled, and all on submit; the first invalid field takes focus. Postcode pattern ^[A-Z]{1,2}\d[A-Z\d]?\s*\d[A-Z]{2}$ case insensitive. Submit shows a loading bar and Sending for 900ms, then the confirmation panel takes focus and repeats the name and postcode.
## Responsive
Width min(560px, 100vw minus 24px).
## Accessibility
Native dialog, Escape and backdrop close it. Errors are tied to fields with aria-describedby and aria-invalid. The confirmation panel is focusable with tabindex -1.
## Built values (from code.html)
- Fonts: Hento 400 (self-hosted: fonts/hento.woff2); Ysabeau Office 400 to 600 (self-hosted: fonts/ysabeau.woff2). Self-hosted files sit in fonts/ in the block download.
- Colour variables: --portland #EAEBE9, --slate #21262B, --leaded #565C63, --hair #CFCDC6, --white #FFFFFF, --face-slate #3B4045, --cut-white #F2F1EC, --face-brass #B8963F, --enamel #151515, --face-stone #D9D4C7, --cut-grey #3A3A37.
- Font variables: --serif "Hento", "Didot", Georgia, serif; --sans "Ysabeau Office", "Gill Sans", "Helvetica Neue", Arial, sans-serif.
- Size variables: --s1 6px, --s2 12px, --s3 18px, --s4 24px, --s5 36px, --s6 54px, --s7 84px, --s8 132px.
- Media queries: max-width 720px, prefers-reduced-motion.
- No media files.
- Script: none, CSS only.
## Content to replace
- [Summary]: what was chosen, in one line, with a price
- [Fields]: labels and error messages
- [Confirmation]: what happens next and when
## 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
Same page







