Content
Figure
A figure sets a number in type: the one hero number of a screen in the voice face, and every other amount, time and count in mono, with its sign.
Designed, coming to kanso-ui
Accessibility
- The sign carries the meaning; colour is extra. "+106.20" and "−88.00" read the same in greyscale, and screen readers say "plus" and "minus".
- Use the real minus sign (−, U+2212), not a hyphen (-): it matches the plus sign's width and height, and screen readers read it as "minus".
- Use the locale's separators. Brazilian reais take a decimal comma and a dot for thousands: "R$ 1.234,56". Keep "R$" and the number together with a no-break space.
- Put the label before the number in the source, so it is read first. Figures are not focusable.
- Contrast from tokens.json, light then dark, on
paper:ink16.7:1 and 15.9:1;positive6.3:1 and 10.9:1;negative6.2:1 and 11.0:1; labels, units and captions inink-muted6.4:1 and 8.9:1. Onsurface,positiveholds 6.5:1 and 9.9:1,negative6.5:1 and 10.0:1. - Motion: none.