Skip to content
English
Don't know what it's called45 / 71

Shortcut keycaps

What it's calledKeyboard shortcut hintkeycapkbdGlossary

What goes wrong

Shortcuts squeezed into the labels in brackets make every row longer and ragged, and the eye cannot run down them.

The fix

Keep the label clean and show the keys as small, quiet keycaps, right-aligned in a column of their own.

Tell your AI

Show shortcuts as a right-aligned column of keycaps, one per key: var(--ds-font-size-xs) (12px) text in var(--ds-text-3) at weight 400, on var(--ds-surface-2) with var(--ds-radius-xs) (6px) corners, at least 20px wide and var(--ds-space-4) (4px) apart; never write them into the label in brackets.

  • --ds-font-size-xs12px
  • --ds-text-3
  • --ds-surface-2
  • --ds-radius-xs6px
  • --ds-space-44px
Why AI-generated UIs all look the same: 12 rules that fix it

Design reviewThu · 4 commentsRA

Keys buried in the labels, every row a different length