When to use

A form is how people send something to Family Express: the For Business requests (fleet, gift cards, wholesale fuel, a Contract Bakery quote), the donation and sponsorship requests on Community, the three-step Fleet Card application and the email sign-up of the Home popup. All of them are built from one field, one radio card and one button, so a request for pricing reads exactly like a request for a donation.

The store search on the Home is a form too, with a single field and an attached submit; its full behavior lives in Search and filters.

Anatomy

Enter an email address in the format name@example.com.
Field Label · control 12 px under it · an error line 8 px under the control when the answer needs fixing. A hint, when a field has one, sits 4 px under the label.
PartRule
LabelHanken Grotesk at UI size (15 to 17 px, weight 500), always above the control. Required fields end in an asterisk; the rest end in (optional) at caption size.
HintCaption size (13 to 14 px), between the label and the control. Optional: no current form needs one.
ControlPaper fill, 1px ink edge, 16 px radius, 20 px side padding, body text (16 to 18 px) in ink. 64 px tall.
Example textInside the empty field, ink at 75 %. An example of the answer, such as e.g. 2,000, never the label.
Error lineUI size in ink, led by a small ink oval (16 × 10 px). Says how to fix the answer.

Errors are ink, never red: red belongs to ORDER FOOD and the other primary actions. What marks a field as wrong is the edge doubling to 2 px, the oval and the words.

Text, date and select

Text Names, company, email and phone. The type sets the phone keyboard; number answers use a numeric keypad and accept commas.
Date The browser's own date picker, in the field's shape. Used for Needed by on the donation and sponsorship requests.
Select A short fixed list with the browser's arrow. Opens on Select…, which counts as no answer.
Textarea Free text, at least 128 px tall and resizable, up to 2,000 characters. Always spans both columns.

Radio cards

Which program fits your fleet?
Choice A legend over full-width rows, at least 64 px tall. The chosen row fills surface and its edge doubles.
Which program fits your fleet?
Choose Fleet Perks+ or Fleet Advantage.
Error Nothing chosen on Continue: every row doubles its edge and the error sits under the group.
PartRule
Row16 px radius, 1px ink edge, 16 px top and bottom and 20 px side padding, 16 px between the mark and the text. The whole row is clickable.
MarkThe browser’s radio, 20 px, in ink.
TextThe option at UI size; a description under it at body S (15 to 17 px).
GroupRows 12 px apart. Radio cards are used when each option needs a line of explanation; a plain list of short answers is a select.

Checkbox

Consent The Home popup sign-up. The browser's checkbox, 20 px in ink, 12 px from the text at body S. Required before the email is sent.
Checked

The consent box is the only checkbox in a form. The checkboxes that filter the menu are documented in Search and filters.

Actions

Send The ink button names what is sent: Send to fleet team, Request pricing, Submit application.
Continue and Back Stepped forms: Continue in ink, Back outlined, to its left.
Cancel In a popup, Cancel sits outlined beside the send button.

Form actions use the ink tone, not red: the red ORDER FOOD button stays the one primary action of the site. The actions sit at the end of the form, aligned right from 768 px. Under them, every For Business form closes with the same caption: We use these details only to respond to your request. and a link to Privacy.

On phones the actions span the full width and stack with the primary action on top, so the thumb reaches Continue before Back.

Stepped form

  1. Your info
  2. Card preference
  3. Confirm
Stepper One bordered step per title, 44 px tall, 14 px radius: the current step in ink, steps done in surface, steps ahead on paper.
  1. Your info
  2. Card preference
  3. Confirm
Your info
We use these details only to respond to your request. Privacy
Step 1, desktop Fleet Card application at 720 px: two columns from 640 px, Continue at the right.
  1. Your info
  2. Card preference
  3. Confirm
Card preference
Which program fits your fleet?
We use these details only to respond to your request. Privacy
Step 2, phone At 390 px: the stepper in three equal columns, one column of fields, Continue above Back at full width.
Confirm Check your details, then submit your application.
Your info
Contact name
Dana Ruiz
Business name
Ruiz Landscaping
Phone
(555) 010-0144
Email
dana@example.com
Number of vehicles
12
Card preference
Which program fits your fleet?
Fleet Perks+
Review The last step lists the answers of each earlier step in a 24 px panel, with Edit to go back to it. Submit application sends.
  • One form, shown a step at a time. Every step lives in the same form; Continue checks only the fields of the current step. Enter in a field continues, as it would send a one-step form.
  • The step title moves focus. After Continue, Back or Edit, focus lands on the new step’s title, announced as Step 2 of 3: Card preference.
  • Without JavaScript all steps show at once with the submit button, so the application always works.
  • Errors found on sending take people back to the first step that has one.
Search field A label over a 64 px field (72 px from 768 px), the ink submit attached to its right edge and the Use my current location link inside the field.

Messages

Error summary Above the fields after Continue or sending with errors. A 24 px panel with a 2 px ink edge; each line links to its field.
Thank you, your request has been sent.Our team will be in touch using the email address you provided.
Sent Replaces the whole form. Pastel panel, 32 px padding, the title in Lilita One.
Not sent Above the fields when sending fails. Surface panel; every answer stays in place.
Thanks! You're entered.
Signed up The Home popup replaces its form with one line on surface.

The inline errors use the same few sentences everywhere, each one saying what to do:

  • Enter your first name. or Choose a product type.: the field’s own message when a required answer is missing.
  • Enter an email address in the format name@example.com.
  • Enter a valid phone number, or leave this blank.
  • Enter a whole number, for example 2000.
  • Enter a date, for example 2027-03-15.
  • Keep this under 2,000 characters. (200 for one-line answers)

States

Default
Focus The site's focus ring: a 3 px ink outline, 3 px away from the edge.
Enter your company name.
Error The edge doubles to 2 px and the message appears under the field.
Button hover A red fill rises from the bottom while the label rolls up and a copy rolls in, over 360 ms.
Outline hover Fills with ink, the label turns paper.
Sending The label reads Sending… and the button is disabled, so it cannot be pressed twice.
StateField edgeUnder the field
Default1px inknothing, or the hint above the control
Focus1px ink, plus the 3 px ink focus ringnothing
Error2 px inkthe oval and the message
Chosen (radio card)2 px ink, surface fillnothing

Errors appear only when people press Continue or send, never while they type, and stay until the next attempt. Under reduced motion the button fill and the rolling label change instantly.

Sizes

Field · 64 px Every For Business, Community and Fleet Card field.
Compact · 48 px The Home popup's email: 16 px side padding, the label at weight 600, 8 px above the control.

Form buttons are 44 px tall with 24 px side padding on phones and tablets and 48 px with 32 px from 1024 px; the popup keeps the 44 px size everywhere. Fields sit in two columns from 640 px with 24 px between them; the textarea, radio cards and wide fields span both.

Usage

Correct A visible label above every field, with an example of the answer inside it.
Avoid The example text as the only label: it disappears as soon as people type.
Correct On phones, the primary action on top at full width, the secondary under it.
Avoid Small buttons side by side on a phone, with the primary one last.
Enter a valid phone number, or leave this blank.
Correct Errors in ink, carried by the doubled edge, the oval and a sentence that says what to do.
Invalid.
Avoid A red error: red is kept for the primary action, and color alone does not say what is wrong.
  • Ask for little. Name, company and email, then only what the team needs to reply. Phone is optional everywhere except the Fleet Card application.
  • Name the send button after the request. Send to gift cards team, Request pricing, Submit application. Never Submit alone.
  • Keep answers safe. When sending fails, every answer stays in place and the panel above says to try again.
  • Same parts everywhere. A new form reuses this field, radio card, button and these messages as they are.

Accessibility

  • Every control has a visible label tied to it; hints and errors are linked with aria-describedby, so they are read with the field.
  • An invalid field is marked aria-invalid, not only drawn with a thicker edge. Radio groups carry the error on the fieldset.
  • Browser validation is off so every error uses this one pattern: on Continue or send, focus moves to the error summary, which links to each field.
  • The sent message is a status; the error summary and the not-sent panel are alerts.
  • Buttons and radio rows are at least 44 px tall. The focus ring is always visible: 3 px ink, 3 px offset.
  • A hidden field catches bots; people and assistive technology never meet it.

Source

Website
components/forms/Field.tsxcomponents/forms/BusinessForm.tsxcomponents/forms/StoreSearchForm.tsxcomponents/sections/HomePromoPopup.tsxcomponents/ui/OvalButton.tsxdata/business-forms.tslib/forms/business-forms.ts