Colour theme

Button em lab

md is the truth. The dummies take md's ratios in em, so sm and lg are md at another font size. Turn the ratios, resize the window to walk the tiers, and read what each button becomes.

The system's Button (since ADR-0030: font size on the root, the affine scale)

Today's Button, font size on the root

Before ADR-0030 this row showed the lab moving the font size from the label to the a/button. The system now does that itself, so this row matches the one above.

Font size on the root, and the size slots in em (one knob)

The same, with md's ratios filled into the custom levels as em: padding block, icon size and gap follow the button's font size. sm, md and lg now differ by their font-size stop alone — the system's Button, not a dummy.

Proportional: every slot in em

Buttons and fields together, on the formula

The system's Button (font size on the root, slots in em) beside the system's Input at the same font size, both with the block slot from the mode and values above. An Input is its leading plus twice the slot; a Button its trimmed label plus twice the slot and the trim's give-back — equal by construction. The Input's slot and size are set from outside by the lab (it has no custom level and no size axis yet).

Send

md beside a field

The field contract: an Input is a Button md tall. Compare the field with today's md and the proportional md.

Measured

Buttonfontheightpadding blockblock slot in empadding inline