Overlays
Command hint
Show the keyboard shortcut alongside the action it triggers.
Anatomy
- Action label
- Shortcut keys
Live example
Use command hints next to frequently used actions so people can discover their shortcuts.
Design tokens used
| Category | Token | Value | Where itβs used |
|---|---|---|---|
| Colour | --cc-foreground | β | Key hint, button label, dialog heading, and result links |
--cc-muted-foreground | β | Empty search message and quiet close action | |
--cc-subtle-foreground | β | Search placeholder | |
--cc-surface | β | Secondary button background | |
--cc-surface-muted | β | Key hint background, action hover, and result hover | |
--cc-surface-elevated | β | Search dialog background | |
--cc-border | β | Key hint and trigger borders | |
--cc-primary | β | Search field border on focus | |
--cc-field-background | β | Search field background | |
--cc-field-foreground | β | Search query | |
--cc-field-border | β | Search field border | |
--cc-field-hover-border | β | Search field border on hover | |
--cc-focus-ring | β | Keyboard focus ring | |
--cc-backdrop | β | Overlay behind the dialog |