Skip to main content

Forms

The theme styles standard HTML form elements directly — no special classes needed.

Text inputs

<label for="name">Full name</label>
<input type="text" id="name" placeholder="Jane Smith" />

Text input

Other input types (email, url, password, number, search, tel, date) are styled identically.

Textarea

<label for="message">Message</label>
<textarea id="message" placeholder="Your message here..."></textarea>

Textarea

Select

Selects use a custom chevron indicator and appearance: none for cross-browser consistency.

<label for="campus">Campus</label>
<select id="campus">
  <option>Acton</option>
  <option>Kioloa</option>
  <option>North Australia</option>
</select>

Select

Checkboxes and radios

Checkboxes and radio buttons use the browser’s native rendering, with accent-color set to the theme accent.

<label> <input type="checkbox" /> I agree to the terms </label>

Checkbox and radio

Radio buttons

Fieldset and legend

Group related fields with <fieldset> and <legend>.

<fieldset>
  <legend>Contact details</legend>
  <label for="email">Email</label>
  <input type="email" id="email" />
  <label for="phone">Phone</label>
  <input type="tel" id="phone" />
</fieldset>

Fieldset

Contact details

Disabled state

Add the disabled attribute to any form element.

Disabled input

Full form example

Complete form

Notes

Form styles live in the at.base layer, so they apply to all form elements without extra markup. They’re intentionally minimal — a consistent, accessible foundation you can extend with your own CSS in a higher-priority layer.

A label that follows a field gets a top margin, so stacked fields need no wrappers: each label sits closer to its own field than to the field above.

Labels are display: block and bold by default. For inline labels (e.g. next to checkboxes), override with display: flex and font-weight: normal as shown in the checkbox examples above.

Label–value lists

A <dl> with no class lays its terms and descriptions out as two columns: terms right-aligned against their values, the longest term setting the column width. Pairs sit further apart than a term sits from its value, so each reads as one group, and translated labels need no fixed width or breakpoint.

<dl>
  <dt>Duration</dt>
  <dd>One semester</dd>
  <dt>Delivery mode</dt>
  <dd>In person</dd>
</dl>

Label–value list

Duration
One semester
Intended audience
Third-year undergraduates
Delivery mode
In person

Wrapping each pair in a <div> (valid inside <dl>) keeps the same columns: each wrapper is a subgrid spanning both. Give the <dl> a class to opt out and lay it out yourself.