Icon

The Icon wrapper draws a Phosphor icon at a size, a tone and a weight. Phosphor ships six weights and we default to regular for its balance of legibility and density. Which icons there are, and their names, is a token: see Icons.

Sizes

Five sizes, each a pixel square; md sits beside body text.

Tones

Without a tone the icon takes the text colour; primary takes the accent, and the status tones match a message's severity.

Weights

Four line weights, regular the default, and two filled ones for a selected or emphatic state.

Examples

The size scale
xs · 12px
sm · 16px
md · 20px
lg · 24px
xl · 32px
Default and accent tones
default
primary
Status tones
success
warning
danger
info
help
Line weights
thin
light
regular
bold
Filled weights
fill
duotone