Brand Guide

Components

Input

A single line of text, such as a job title, an email address, a URL or a number.

Default

In a field

How an input sits in a form. FieldControl gives the input its id and points it at the message below.

As it reads on your CV.

Optional

optional on the label adds “(optional)” after it in muted text.

A portfolio, a blog or your GitHub profile.

Invalid

The border turns red and the error takes the place of the helper text. Focus keeps the red border and adds a red line inside it.

Disabled

disabled on the field dims the label with the input.

Read-only

A value that can be read and copied but not changed here. The text keeps its full contrast, and a lock sits at the end.

From your LinkedIn sign-in.

Best practices

  • Put an input in a Field: a label, the control, then helper text or an error. Field connects the three, so the label focuses the input and a screen reader reads the message with it.
  • Give FieldMessage the helper text and the error together. The error shows in the helper text's place, and the label keeps its colour.
  • Write an error as one sentence that says what to do: "Enter your work email.", "Choose a notice period.". Never "Please", "required", "invalid" or "This field".
  • Give a read-only input helper text saying where the value came from.
  • The text is 16px at every screen size, so a phone does not zoom in when the input takes focus. Leave it at that size.