Checkbox and radio

No ::before tricks on the label: the input itself is styled, so keyboard focus and forms submission keep working natively.

Checkboxes become 1.25em squares (2px gray border, half the button radius) that fill with $color-primary and show $icon-check when checked. Radios are circles of the same size whose checked state draws an inset $color-primary ring via outline. The input itself is styled, not a fake label overlay, so native focus and form submission keep working.

Real inputs, real states: keyboard focus and form submission work without any script, labels flip to centered rows automatically via :has, and sizes are in em so .sm/.lg scale controls and labels together.

The check icon is a background image from the $icon-check placeholder (swap it per project with --forma-icon-check), the checked color follows $color-primary and borders $color-gray-highlight.

Checkboxes

Wrap each input in its label: the row layout comes for free via :has, no classes and no wrappers.

HTML
<form>
  <label>
    <input type="checkbox" checked>
    Email notifications
  </label>
  <label>
    <input type="checkbox">
    Product updates
  </label>
  <label>
    <input type="checkbox">
    Weekly digest
  </label>
</form>

Radios

The checked radio draws its inset ring with outline, so the original box stays untouched: the input itself is styled, never a fake overlay.

HTML
<form>
  <label>
    <input type="radio" name="plan" checked>
    Free
  </label>
  <label>
    <input type="radio" name="plan">
    Pro
  </label>
  <label>
    <input type="radio" name="plan">
    Enterprise
  </label>
</form>