Skip to content

Caption

Caption and micro, the two smallest roles, in real text and on the components that take them.

Two roles sit below running text. Caption sets what labels and annotates: the help under a field, a table's header, a badge. Micro is the floor of the scale.

Caption is for labels: the help under a field, the header of a table, the text of a badge, the heading of a group in a menu.

CaptionLabels, table headers, helper text and metadata.
PropertyDesktopPhone
Size--type-caption
12px0.75rem
13px0.8125rem
Line height--type-caption-leading
16pxcalc(16 / 12)
18pxcalc(18 / 13)
Tracking
None
None
Weight
400
400

Micro is the smallest role, for a count or a mark that sits beside something larger.

MicroThe floor of the scale.
PropertyDesktopPhone
Size--type-micro
11px0.6875rem
11px0.6875rem
Line height--type-micro-leading
16pxcalc(16 / 11)
16pxcalc(16 / 11)
Tracking
None
None
Weight
400
400

The values in full colour are the ones that apply at this width. The phone values apply where (max-width: 767px) matches.

In use

Each of these is a Registry component as it installs, with the role it is set in.

A field's label and its helptext-xs 12px, 13px on a phone
PaidIn reviewDraft
A badgetext-xs 12px, 13px on a phone. The foundation item's rule for badges fixes it.
InvoiceAmount
INV-04121,240.00
INV-0413860.50
A table's headertext-xs 12px, 13px on a phone. The table item's stylesheet fixes it.
⌘K
A keycaptext-xs 12px, 13px on a phone. The kbd item's stylesheet fixes it.

Colour

Small text is often quiet text too. A caption in text-muted-foreground still has to read, so the two quiet colours are worked out against the page here as well.

PairLightDark
--muted-foregroundon--background
6.4:1
7.4:1
--subtle-foregroundon--background
4.9:1
5.4:1