Palette
Workspace
No command matches
Markup where the component goes, CSS in your stylesheet, script before </body>. In Vue, Svelte or Angular, call initCardPalette(el) on the mounted element instead.
Paste into Claude, ChatGPT or Cursor after filling in {{USER_STACK}}, {{USER_STYLING}} and {{USER_CONSTRAINTS}}. Neutral keeps the greys you see here; Match my project asks the model to map them onto your own colour tokens.
Install with shadcn
Needs a free account token. Get a token
npx shadcn@latest add @movin/card-paletteAbout this component
A command menu card. Type to filter and the matching letters stay in full ink, move with the arrow keys or the pointer and one highlight plate slides between rows, and Enter runs the command: its keycaps press, the plate flashes jade and a line confirms it.
Triggers
- Focus
- State change
- Click
- Spring
- Card
- Keyframe
Techniques
- CSS transition
- Keyframes
- State machine
- CSS variables
- Pseudo elements
- Spring
Difficulty
Intermediate
Accessibility
Keyboard and screen readers
The search is a native text input with an aria-label, and every command is a native <button>; hidden rows leave the tab order. Arrow keys move the highlight from the field or a row, Enter runs it, and the result line is aria-live="polite". Keycaps and icons are aria-hidden. Rows and the field have :focus-visible outlines in the accent.
Reduced motion
The plate jumps, the caret holds still and the flash is skipped.
Use it in anything you build, commercial and client work included. Licence