Foundations
Iconography
Kanso uses one icon system, Google's Material Symbols Rounded, for every product and platform. The rounded set matches the soft corners and pills of the components, and as a variable font it can fill, change weight and keep its optical size.
The icons Kanso uses
25 of 25 icons
addarrow_backattach_filecheckcheck_circlechecklistchevron_rightclosedownloadediterroreventexpand_morehomeinfologoutmore_horizmore_vertnotificationspaymentsschedulesearchsharetimerwarning
Settings
| Axis | Value |
|---|---|
| Style | Rounded |
| Weight | 400 |
| Grade | 0 |
| Optical size | 24 (20 in dense web controls) |
| Fill | 0; 1 for the active destination or a selected state |
In Kanso UI
Kanso UI ships no icon font. Its controls draw their own glyphs, the checkmarks, chevrons and the clear and close marks, from Material Symbols paths, so they match. Every other icon comes from the design: load Material Symbols Rounded from Google Fonts (native apps bundle the same font), or use its SVGs. Either way an icon is aria-hidden, drawn in currentColor and 1em square, so it takes the colour and size of its slot.
Button'sicon,IconButton,Fab,Chip,Tabs.Taband a field'sleadingIconsize their icons for you.- The
leadingandtrailingslots of a list, menu or tree row do not: size an icon there at 24px. - Everywhere else, give an icon a step of the icon scale as its font size.
Sizes
- 16px (
kui-sizing-kanso-icon-sm): inside badges and dense text. - 20px (
kui-sizing-kanso-icon-md): inside buttons, fields, alerts and menu items. - 24px (
kui-sizing-kanso-icon-lg): standing alone, in icon buttons and navigation. - 40px (
kui-sizing-kanso-icon-xl): in empty states and an avatar's glyph.
The components' own icon slots use the library's scale, kui-sizing-icon-xs (16px) to -xl (40px), which has an 18px step for chips and small buttons.
Icons in the examples
| Meaning | Symbol |
|---|---|
| Home | home |
| Payments | payments |
| Sessions | timer |
| An event | event |
| Tasks | checklist |
| Add something | add |
| Search | search |
| Notifications | notifications |
| Late, scheduled | schedule |
| Done | check |
| A file | attach_file |
Rules
- Do hide every icon from assistive technology and name the control instead:
aria-labelon anIconButton. - Do pair an icon with a label wherever there is room. Icon-only buttons are for well-known actions (search, notifications, back, more).
- Do colour icons with the text colour of their slot (ink, ink-muted, on-accent); a status icon takes its status colour on a soft fill.
- Don't use emoji, illustrations or brand logos as icons.
- Don't use status marks as icons, or icons as status marks.