Tokens
Typography
Kanso's three families and its type styles, from t-hero to t-figure-small, then the Material Design roles the components read today.
Read from kanso-ui 0.59.0’s tokens.css, whose tokens are kanso-ui-core 0.8.0’s, with the usage notes of that release. Contrast is measured here, as WCAG 2 defines it.
Families
--kui-typography-font-family-brand'Roboto Serif', 'Iowan Old Style', Georgia, serif--kui-typography-font-family-mono'Roboto Mono', ui-monospace, 'SF Mono', Menlo, monospace--kui-typography-font-family-plain'Roboto Flex', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif--kui-typography-font-family-voice'Roboto Serif', 'Iowan Old Style', Georgia, serif
Kanso's type styles
- 1 capsule · was due at 13:00
t-bodysize 15px · line-height 20px · weight 400 · tracking 0px
Body text and field values.
- Tinta e papel, uma cor por produto.
t-body-largesize 17px · line-height 26px · weight var( --kui-typography-weight-regular, 400 ) · tracking 0px
Running text in documentation and long descriptions.
- Shared with Ada and Grace
t-body-smallsize 14px · line-height 20px · weight var( --kui-typography-weight-regular, 400 ) · tracking 0px
Compact body text on the web and in dense rows.
- Call the building manager
t-body-strongsize 16px · line-height 22px · weight var( --kui-typography-weight-medium, 500 ) · tracking 0px
The title line of a list row or a table's main column.
- 7-day average 133.68
t-captionsize 12px · line-height 16px · weight 500 · tracking 0px
Captions under figures, helper text, navigation labels.
- 3 things need you
t-displaysize 44px · line-height 52px · weight 300 · tracking -0.66px
The page title on wide windows (web, tablets).
- +106.20
t-figuresize 15px · line-height 20px · weight 500 · tracking 0px
Amounts and counts at the end of a row, in tables, in meters. Tabular, so columns line up.
- 1,240.50
t-figure-largesize 24px · line-height 30px · weight var( --kui-typography-weight-medium, 500 ) · tracking 0px
A figure that leads a card on the web when the voice face is too soft.
- 15:00
t-figure-smallsize 13px · line-height 18px · weight var( --kui-typography-weight-medium, 500 ) · tracking 0px
Times at the start of a row, small counts.
- 3 things need you
t-headlinesize 34px · line-height 40px · weight 300 · tracking -0.34px
The page title on phones; the spotlight title on wide windows.
- 241.86
t-herosize 52px · line-height 58px · weight 300 · tracking -0.78px
The one number that matters on a screen: a balance, a time left. One per screen.
- Tuesday, 1 December · 14:32
t-labelsize 13px · line-height 18px · weight 500 · tracking 0px
Labels above fields and figures, eyebrows, the date line above a page title.
- Mark as done
t-label-strongsize 15px · line-height 20px · weight var( --kui-typography-weight-semibold, 600 ) · tracking 0px
Button labels, card titles, the selected segment.
- Later today
t-sectionsize 22px · line-height 28px · weight 300 · tracking 0px
Section titles inside a page, dialog titles, empty-state titles.
- Weekly review
t-titlesize 32px · line-height 38px · weight 300 · tracking 0px
The spotlight card's title on phones.
Material Design roles
- Supporting line that runs long enough to wrap.
body-largesize 16px · line-height 24px · weight 400 · tracking 0.5px
Running text and supporting lines.
- Supporting line that runs long enough to wrap.
body-mediumsize 14px · line-height 20px · weight var( --kui-typography-weight-regular, 400 ) · tracking 0.25px
Running text and supporting lines.
- Supporting line that runs long enough to wrap.
body-smallsize 12px · line-height 16px · weight 400 · tracking 0.4px
Running text and supporting lines.
- 01 234
display-largesize 57px · line-height 64px · weight var( --kui-typography-weight-light, 300 ) · tracking -0.25px
The largest text on a screen: a short hero number or statement.
- 01 234
display-mediumsize 45px · line-height 52px · weight var( --kui-typography-weight-light, 300 ) · tracking 0px
The largest text on a screen: a short hero number or statement.
- 01 234
display-smallsize 36px · line-height 44px · weight var( --kui-typography-weight-light, 300 ) · tracking 0px
The largest text on a screen: a short hero number or statement.
- Headline
headline-largesize 32px · line-height 40px · weight var( --kui-typography-weight-light, 300 ) · tracking 0px
Page and section headings.
- Headline
headline-mediumsize 28px · line-height 36px · weight var( --kui-typography-weight-light, 300 ) · tracking 0px
Page and section headings.
- Headline
headline-smallsize 24px · line-height 32px · weight var( --kui-typography-weight-light, 300 ) · tracking 0px
Page and section headings.
- Label
label-largesize 14px · line-height 20px · weight 500 · tracking 0.1px
Text inside controls: buttons, chips, tabs, field labels, badges.
- Label
label-mediumsize 12px · line-height 16px · weight var( --kui-typography-weight-medium, 500 ) · tracking 0.5px
Text inside controls: buttons, chips, tabs, field labels, badges.
- Label
label-smallsize 11px · line-height 16px · weight 500 · tracking 0.5px
Text inside controls: buttons, chips, tabs, field labels, badges.
- Title
title-largesize 22px · line-height 28px · weight 300 · tracking 0px
Card, dialog and list headings; `titleMedium` and `titleSmall` set controls' own titles.
- Title
title-mediumsize 16px · line-height 24px · weight var( --kui-typography-weight-medium, 500 ) · tracking 0.15px
Card, dialog and list headings; `titleMedium` and `titleSmall` set controls' own titles.
- Title
title-smallsize 14px · line-height 20px · weight 500 · tracking 0.1px
Card, dialog and list headings; `titleMedium` and `titleSmall` set controls' own titles.