RRigdesign system
Data display

Icon

A square viewport with optical centring for non-square glyphs.

Examples

Decorative glyphs, 24px
Size and stroke weight
12px · 0.7516px · 1.024px · 1.532px · 2.0
Informative vs decorative
Left: informative, has a name. Right: decorative, hidden from assistive tech.

Anatomy

Icon anatomy
#PartDescriptionPresence
1ViewportSquare, 12 / 16 / 24 / 32pxRequired
2GlyphOptically centredRequired
3Stroke0.75 / 1 / 1.5 / 2pxRequired

Specifications

Sizes12 · 16 · 24 · 32px
Stroke weight0.75 · 1.0 · 1.5 · 2.0px
ColourInherited from the parent text state or brand colour

Interaction

Keyboard
KeyResult
NoneNot focusable
Pointer and touch
TriggerResponse
NoneInherits colour from its parent

Accessibility

role · image or presentation

1.1.1Non-text Content1.4.11Non-text Contrast
Requirements
RequirementHow Rig meets it
Decorativearia-hidden="true" and focusable="false" when text or a name sits beside it
Informativerole="img" and aria-label
ColourUses currentColor so it follows the text state and forced-colours mode
ContrastMeaningful icons 3:1

Usage

Do and don’t
DoDon’t
Pair icons with text where meaning is not universalDo not use an icon as the only cue for an error