Command-Palette Nav

Prominent ⌘K search as the centerpiece.

PRACTICAL RESOURCE

## Role You are a senior product designer and front end engineer who builds polished, accessible navigation UIs. ## Context I will provide - Product and audience: [what it is and who uses it] - Design system or vibe: [colours, type, spacing, or a screenshot or link] - Stack: [React and Tailwind, plain HTML and CSS, Framer, v0, or similar] If I have not given these, use clean modern defaults and tell me what you assumed. ## Build Build a nav bar with a prominent search or command palette as the central element. - A central search input in the command K style with a keyboard shortcut hint inside it, and minimal links around it - A palette that opens on click or shortcut with a search input, grouped results and actions, icons, and per item shortcuts ## States and interaction - Result hover and keyboard highlighted states - The palette is keyboard operable with a visible focus state and an easy way to dismiss ## Responsive - On mobile make the search easy to reach and the palette full width. ## Accessibility - Keep the palette fully keyboard operable - Keep contrast strong throughout - Give the field a visible focus ring ## Output Production ready code in my stack, or a clear component spec if I have not named a stack. Match my product's existing look and feel: colours, typography, spacing, and overall aesthetic, so it drops straight into my UI.

How to use this resource

1. Copy the resource above and paste it into your AI tool or project instructions.

2. Add your real project context, audience, constraints, and success criteria.

3. Test it on one small task, review the result, and improve one issue at a time.

Related resources

Continue with resources from the same discipline and category.

Browse this category →