Structure

Simple text and optional icon to inform the user of relevant information, revealed in context.

There are two sizes for inline messages. The message can appear by itself, icons are optional.

When the text is too long for the available horizontal space, it wraps to form another line. The optional icon stays aligned to the top-left corner.

inline messages structure specs

Property - elementTokenPixelRem
Size icon$1 (variant: size="sm")16px1
Margin-right iconspace $28px0.5

Typography

Typography specs for Inline messages

ElementFamilyWeightSizerempx
XSmall text font$body400$xs0.75rem12
Small text font$body400$sm0.875rem14
Medium text font$body400$md1rem16

Color

color specs for inline messages

Property - State - ElementTokenHex
Error - icon/text$danger#EE0505
Warning - icon$warningDark#D08E00
Warning - text$warningText#BD4B00
Success - icon/text$success#028A00
Neutral/help - icon/text$grey800#545454
Info - icon/text$blue800#0F67F5