Command Palette Design: A 10-Point Checklist for Product UI
A command palette is the box that opens with a keyboard shortcut and lets you type what you want to do. Many tools have one now, and many of them feel half-finished.
I'm a product designer, not a veteran engineer. I've designed SaaS products and dashboards since 2018, and only recently started building my own designs with AI coding tools. That shift made me look harder at the parts of a design that are easy to draw and easy to get wrong in code. The palette is one of them. In Figma it's a rounded box with a list. In reality it's a small system of rules.
Here is the checklist I'd use before building one. The examples are hypothetical.
01Decide if you need one
1. Name the problem it solves
Say your app has forty actions spread across menus and settings pages. People who use it daily lose time hunting. That's a real problem, and a palette fits.
If your app has six screens, a palette is decoration. Write one sentence naming who it's for and what it speeds up. If you can't, skip it.
2. Keep visible navigation
A palette rewards people who already know what exists. It does nothing for discovery. Someone on day one can't type a command they've never heard of.
So the sidebar or tabs stay. The palette sits on top as a shortcut layer, not a replacement.
02Opening and closing
3. Give it a standard trigger, and a visible one
Many products use Cmd+K on Mac and Ctrl+K on Windows and Linux. Following that convention means some users arrive already knowing it. Check that your shortcut doesn't collide with browser or text-editor shortcuts in your own app.
Shortcuts are invisible, though. Add a visible entry point too, such as a search field in the header that shows the shortcut as a hint. Otherwise only people who read the docs will ever find it.
4. Make Escape always work
Escape closes it. Clicking the backdrop closes it. Focus returns to whatever the user was on before. This sounds obvious, but it's the first thing that breaks in a quick build. If you're handing this to a developer or an AI tool, write it down as a requirement, not an assumption.
03What goes in the list
5. Mix navigation and actions, but label the types
Useful palettes usually hold two kinds of things: places to go ("Billing settings") and things to do ("Invite teammate"). Show a small type label or icon on each row so a result is never ambiguous.
Group results under headings when the list is long. Don't group when it's short, because headings on three items are noise.
6. Write commands as verbs and real names
Commands should match the words users already use. "Invite teammate" beats "Member management." This is the same instinct as button microcopy: label what happens, not the internal feature name.
Also consider synonyms. If someone types "delete," should "Remove project" appear? Decide on a short list of aliases rather than leaving it to chance.
7. Rank by usefulness, not alphabet
Say a user types "re". Alphabetical order might put "Rename" and "Reports" first, while the thing they use every day is "Refund order." Reasonable ranking rules, in order:
- Exact and prefix matches first
- Recently used items next
- Everything else after
Keep the rules simple enough to explain in a sentence. Clever ranking that nobody can predict feels random.
04The states people forget
8. Design the empty query and the no-results state
When the palette opens with nothing typed, don't show a blank box. Show recent items and a few common actions. This turns the palette into something useful before the first keystroke.
For no results, say what was searched and offer a next step: "No results for 'invoce'. Try a different word, or search all projects." A bare "No results" is a dead end. The thinking is similar to empty states: an empty screen should still tell people what to do.
Also design a loading state if results come from a server. Local commands should appear instantly, and slower results can arrive below them without shifting the list around.
05Keyboard behaviour and accessibility
9. Specify the keyboard model
Write this out; don't leave it to guesswork:
- Typing filters the list immediately, with focus in the input
- Up and Down arrows move the highlight
- Enter runs the highlighted item
- The first result is highlighted by default
- Arrow keys wrap, or stop at the ends, and you pick one
- Escape closes
Then the accessibility layer. A palette is effectively a dialog containing a search input and a list. Focus should move into the input on open and back to the trigger on close. Screen readers need to know which result is highlighted, which is usually done with the combobox and listbox patterns and aria-activedescendant. If you're generating this with an AI tool, check that part by hand. I covered the basics of focus and ARIA in a modal walkthrough, and the same rules apply here.
Highlight must not rely on colour alone, and contrast should meet WCAG's requirements for text and for UI components.
10. Handle destructive commands carefully
Typing fast and pressing Enter is the whole point of a palette. That's also how someone deletes a project by accident. For destructive actions, either keep them out of the palette or route them to a confirmation step. Speed is a feature, but not for irreversible things.
06A quick pre-handoff test
Before calling it done, run through this with only the keyboard:
- Open it from three different screens.
- Search for something with a typo.
- Search for something that doesn't exist.
- Run a command, then check where focus lands.
- Close it with Escape and confirm focus returns.
If any of those feel awkward, the problem is probably a missing rule in the spec rather than a styling issue.
07Frequently asked questions
When does a product actually need a command palette?
When it has many actions or destinations that don't fit comfortably in visible navigation, and when some users return daily. If your app has five screens and a handful of actions, a palette adds a feature to maintain without solving a real problem.
Should a command palette replace the sidebar or menus?
No. A palette is a shortcut layer for people who already know what they want. New users can't search for commands they don't know exist, so visible navigation still has to carry discovery.
How do I make a command palette accessible?
Treat it as a dialog with a search input and a list of results. Make it fully keyboard operable, move focus into the input on open, return focus to the trigger on close, and make sure screen readers can tell which result is currently highlighted. Test it with the keyboard alone before anything else.
Denny Pratama
Product designer in Indonesia. Since 2018 I’ve designed SaaS products, dashboards and marketing sites, and now I build my own designs too.