Brand Guide

Components

Keyboard input

A key cap that shows a keyboard shortcut in a line of text, a menu row or a button.

Keys

One key as the child: a letter, a digit or a named key.
K7↵Esc

Modifiers

Symbols on Apple devices. Elsewhere they are written as Ctrl, Shift and Alt, and meta becomes Ctrl.
CommandShiftOptionControl

Combinations

Modifiers sit before the key in one cap, in each platform’s order: ⌃ ⌥ ⇧ ⌘ on Apple, Ctrl Alt Shift elsewhere.
CommandKShiftCommandPCommand↵

In a button

After the label. Here the cap takes a tint of the button’s text colour, since a white key would read as a second button.

In a menu

Pushed to the end of the row, in muted text.

In prose

The cap sits on the line of body text.

Press Command↵ to send your answers.

Best practices

  • Set modifiers with the meta, shift, alt and ctrl props, not by typing ⌘ or Ctrl as the child. The props are what give each platform its own keys and order.
  • Inside a control, give the cap aria-hidden and put the shortcut on the control with aria-keyshortcuts, so it is not read out as part of the label.
  • In a line of text, leave the cap readable. A screen reader hears the names of the keys: "Command", "Shift".