Inputs

Text, search, date, time, datalist, select, textarea, color and file: every control styled from semantic markup alone.

label is a flex column: the text sits above the control, and flips to a row (centered) automatically when it contains a checkbox or radio (:has). input, select and textarea are styled without classes: full width, appearance none, a 2px gray border, a translucent panel background and focus elevation instead of the default outline. Disabled fields dim to 50%.

Zero classes and zero wrappers: a label wrapping its control gets the layout for free, focus elevation replaces the harsh default outline, and the translucent panel background lets page backgrounds and gradients shine through fields. Everything is sized in em, so .sm and .lg scale whole forms in cascade.

The type icons are background images driven by custom properties: --forma-icon-search, --forma-icon-time, --forma-icon-date and the validation icons --forma-icon-invalid-true/false. Swap them per project (or per element) without touching the CSS. Borders use $color-gray-highlight, paddings follow $gutter, and the search field radius is 50px.

Text, select and textarea

Zero classes and zero wrappers: a label wrapping its control gets the column layout for free, and focus elevation replaces the harsh default outline.

HTML
<form>
  <label>
    Email
    <input type="email" placeholder="you@example.com" required>
  </label>
  <label>
    Topic
    <select>
      <option>Support</option>
      <option>Feedback</option>
    </select>
  </label>
  <label>
    Message
    <textarea placeholder="How can we help?"></textarea>
  </label>
  <button>Send</button>
</form>

Special input types

Search, date, time, datalist, color and file inputs are covered too: the type icons are background images driven by custom properties, and the translucent panel background lets page gradients shine through.

HTML
<form>
  <label>
    Search
    <input type="search" placeholder="Search the docs">
  </label>
  <label>
    Delivery date
    <input type="date">
  </label>
  <label>
    Start time
    <input type="time">
  </label>
  <label>
    City
    <input list="cities" placeholder="Type to filter">
    <datalist id="cities">
      <option>Berlin</option>
      <option>Hamburg</option>
      <option>Munich</option>
    </datalist>
  </label>
  <label>
    Theme color
    <input type="color" value="#083cc0">
  </label>
  <label>
    Attachment
    <input type="file">
  </label>
</form>

Disabled state

Disabled fields dim to 50% automatically; no extra class or attribute styling needed beyond the native disabled.

HTML
<form>
  <label>
    Locked field
    <input type="text" value="Managed by your organization" disabled>
  </label>
</form>