CRT Command Palette

Motion Components · Vol. 1

Component

CRT Command Palette

Variants

The same markup drops into a normal page as a flat CSS monitor (no WebGL needed). It re-themes with the colour tokens. Sizes and states below.

Small
Default
Disabled

Usage

Paste the markup, include assets/css/tokens.css and assets/css/tailwind.css, then run the script from this page. Listen for gdd:close to read the result.

Accessibility

  • Role and state. A role="dialog" with aria-modal holding a role="combobox" input that controls a role="listbox"; the highlighted row is exposed with aria-activedescendant and aria-selected.
  • Keyboard. Ctrl or Cmd + K toggles it. Arrow keys, Home and End move the highlight, Enter runs the command, Esc closes and focus returns to the trigger. Tab stays trapped inside.
  • Reduced motion. With prefers-reduced-motion there is no degauss wobble, boot log, camera dolly or collapse: the palette simply appears and disappears, and results still announce.
  • Touch and contrast. Rows are 44 px tall. The scanline and glow layers are decorative and aria-hidden, and the text keeps strong contrast on the dark glass in every phosphor colour.