Skip to content

role presentation

Icon draft v0.1.0

A glyph of the system's icon set, decorative or named.

An icon draws one glyph of the icon set (Material Symbols, the Iconography foundation) at a size and in a color of the system. Next to text it is decoration and says nothing to assistive technology; alone, it must be named by what it means, and is then exposed as an image. Icons inside the other components (buttons, alerts, selects) are those components' parts, styled by their tokens; this component is for icons placed by a product in its own content.

Guidelines

From apps/docs/content/components/icon.md

Overview

An icon draws one glyph of the icon set (Material Symbols, the Iconography foundation) at a size and in a color of the system. Next to text it is decoration and says nothing to assistive technology; alone, it must be named by what it means, and is then exposed as an image. Icons inside other components (buttons, alerts, selects) are those components’ parts; this component is for icons a product places in its own content.

This page applies to every platform. Where a platform differs, the difference sits under a sub-heading named after it (Web, iOS, Android, Desktop); everything else holds everywhere.

When to use

  • Reinforcing a label or a heading with a glyph (decorative).
  • Showing a status or a type in a table cell or a list, named by its meaning.

When not to use

  • An icon that performs an action. Use an Icon button.
  • An icon that replaces a label people must read. Write the label.

Sizes and colors

Size Use for
Small Inline with small text: 16 px.
Medium Default: 20 px.
Large Headings and empty states: 24 px.

By default the icon takes the color of the text around it. The other colors are the system’s icon roles: neutral (quieter than the text), brand, success, warning, error, info. A color never carries the meaning alone.

Content

  • A named icon’s label says its meaning (Warning, Verified), never the glyph’s name.
  • Use the same glyph for the same meaning everywhere in a product.

Accessibility

The Specification tab lists the full accessibility contract. Each statement there links the source it comes from. This section explains the decisions behind it.

Web

iOS

  • Provide alternative text labels for custom interface icons; they let VoiceOver describe what is on screen (Apple HIG: Icons).

Android

  • Icon button (an icon that performs an action)
  • Avatar (an identity image)