Forms
Forms
Flat, dense form controls for admin apps — with validation that waits until people actually touch a field.
<div class="field">
<label class="form-label" for="email">Email</label>
<input class="form-control" id="email" type="email" required>
<div class="form-text">We'll send the invitation here.</div>
<div class="form-error">Enter a valid email address.</div>
</div>
A .field stacks a label, a control, help text and an error with even spacing. Fields with required get a * automatically. Lay fields out with the grid (.grid + .span-*).
A complete form
Fields on a grid: two columns from 768px, one on phones.
<form class="card"><div class="card-body grid g-4">
<div class="field span-12 md:span-6">
<label class="form-label" for="first">First name</label>
<input class="form-control" id="first" required>
</div>
…
</div>
<div class="card-footer">…buttons…</div></form>