Range slider

appearance: none, dimensions in em, and the fill follows the signature pattern: a custom property as inline style.

Any input[type="range"] becomes a slim pill track (0.4em high, 50px radius) with a circular thumb (1.4em) bordered in $color-primary and filled with contrast-color, without a single class. appearance: none removes the native look in every engine, and each pseudo-element is styled separately for Chromium/Safari (::-webkit-slider-*) and Firefox (::-moz-range-*).

The track fill follows the signature pattern: Firefox fills natively via ::-moz-range-progress, while Chromium and Safari resolve the fill from the --forma-range-fill custom property, so you set it as an inline style (style="--forma-range-fill: 40%">). One line of vanilla JS can keep it live while dragging, but zero JS gives you a clean gray track with a fully styled thumb.

Hover and active recolor the thumb border with relative oklch (l×0.8, l×0.7), focus-visible shows the same 2px outline ring as every form control, and forced-colors keeps the slider usable in high contrast modes. All dimensions sit in em, so .sm/.lg/.xl resize the whole slider proportionally.

The slider

Pure semantic markup: labels, min, max and step attributes come straight from HTML, and the module styles the track and thumb without any class.

HTML
<form>
  <label>
    Volume
    <input type="range" min="0" max="100" value="60">
  </label>
</form>

Filled track

The signature pattern in action: the fill is a custom property written as an inline style. Firefox fills natively; in Chromium and Safari a static value paints the track up front, and one line of vanilla JS can update it while dragging.

HTML
<form>
  <label>
    Budget
    <input type="range" min="0" max="500" value="200" style="--forma-range-fill: 40%">
  </label>
</form>

Sizes

The universal size classes .sm and .lg on the input scale track and thumb proportionally, because every dimension is defined in em.

HTML
<form>
  <label>
    Small
    <input type="range" class="sm" value="30">
  </label>
  <label>
    Default
    <input type="range" value="50">
  </label>
  <label>
    Large
    <input type="range" class="lg" value="70">
  </label>
</form>