React
Tailwind CSS
UI/UX
Frontend
Ask anything about this article
Hi! I've read this article.
What would you like to know?
@farhan

If there's one UI pattern that defines modern developer tools, it's the ⌘K command palette. It's fast, keyboard-centric, and keeps you in the flow.
I wanted to build one for my portfolio, but I didn't want it to look like every other generic gray box. I wanted it to feel like you were hacking into a mainframe. I wanted a cyberpunk aesthetic.
To build this, you need three things:
Cmd+K or Ctrl+K.@headlessui/react).To achieve the cyberpunk look, you have to embrace dark mode, neon borders, and glassmorphism.
tsx<div className="bg-[#0a0e17]/90 backdrop-blur-xl border border-[#00d4ff]/30 shadow-[0_0_30px_rgba(0,212,255,0.1)] rounded-xl overflow-hidden">
<input
className="w-full bg-transparent text-[#e2e8f0] font-mono p-4 focus:outline-none placeholder-[#4a5568]"
placeholder="> input command..."
/>
</div>