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
Anatomy
- Label above the number: the t-label style, 13px medium,
ink-muted("Balance"). - Number: the voice face for the hero and display sizes, mono (
k-figure) for the rest. - Sign: "+" or "−" before an amount that moves money.
- Unit (
k-figure__unit): "min", in the plain face andink-muted. - Caption below (
k-caption): "Since the last payment, 250.00 on 20 Nov".
Measurements
From the design’s stylesheet, each design token with the value kanso-ui gives it in light.
| Class | Property | Value |
|---|---|---|
k-figure | font-family | font-mono |
font-weight | 500 | |
k-figure--hero | font | 300 52px/58px font-voice |
letter-spacing | -0.78px | |
k-figure--display | font | 300 32px/38px font-voice |
Tokens used
| Design token | In kanso-ui | Light | Dark |
|---|---|---|---|
ink | --kui-color-ink | #1a1a1a | #ececec |
ink-muted | --kui-color-ink-muted | #5c5c5c | #b3b3b3 |
positive | --kui-color-positive | #1e6b35 | #7bd99a |
negative | --kui-color-negative | #a63a1f | #ffb4a1 |
font-voice | --kui-typography-font-family-voice | 'Roboto Serif', 'Iowan Old Style', Georgia, serif | 'Roboto Serif', 'Iowan Old Style', Georgia, serif |
font-mono | --kui-typography-font-family-mono | 'Roboto Mono', ui-monospace, 'SF Mono', Menlo, monospace | 'Roboto Mono', ui-monospace, 'SF Mono', Menlo, monospace |
font-plain | --kui-typography-font-family-plain | 'Roboto Flex', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif | 'Roboto Flex', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif |