Headers & navigation / Headers & nav bars

Frosted Pill Navbar

Floating 1204×76 bar inset from the top with a hairline border, 5px backdrop blur and a dark diagonal gradient. Logo left, grey nav links centered, 'Log in' text link and a light pill Download button on the right.

Rebuilt from raycast.com in the Obsidian Launcher style.

npx shadcn@latest add https://justyoink.it/r/obsidian-launcher/blocks/frosted-pill-navbar.json

Looks exactly like raycast.com: brings its fonts and colours, namespaced so your own theme stays untouched.

Usage

Props: brand, links (string[]), loginLabel, ctaLabel. Renders standalone; below lg the links collapse into a toggled menu.

components/frosted-pill-navbar.tsx
import { useState } from "react";

export default function FrostedPillNavbar({
  brand = "Northwind",
  links = ["Store", "Pro", "AI", "iOS", "Windows", "Teams", "Enterprise", "Blog", "Pricing"],
  loginLabel = "Log in",
  ctaLabel = "Download",
}: {
  brand?: string;
  links?: string[];
  loginLabel?: string;
  ctaLabel?: string;
}) {
  const [open, setOpen] = useState(false);
  return (
    <header className="relative w-full bg-canvas px-3 pt-4 pb-4 font-sans sm:px-6">
      <div className="mx-auto max-w-[1204px]">
        <div className="relative flex h-[76px] items-center justify-between rounded-xl border border-hairline bg-[linear-gradient(137deg,rgba(17,18,20,0.75)_4.87%,rgba(12,13,15,0.9)_75.88%)] px-5 backdrop-blur-[5px] sm:px-8">
          <a href="#" className="flex items-center gap-2 text-primary rounded-md focus-visible:outline focus-visible:outline-2 focus-visible:outline-accent-red">
            <svg width="24" height="24" viewBox="0 0 24 24" aria-hidden="true">
              <path d="M12 2l10 10-10 10L2 12z" fill="var(--color-accent-red)" />
              <path d="M12 7l5 5-5 5-5-5z" fill="var(--color-canvas)" />
            </svg>
            <span className="text-body font-medium">{brand}</span>
          </a>
          <nav aria-label="Main" className="hidden lg:block">
            <ul className="flex items-center gap-8">
              {links.map((l) => (
                <li key={l}>
                  <a href="#" className="text-ui text-[#9c9c9d] transition-colors duration-200 ease-in-out hover:text-white focus-visible:text-white focus-visible:outline-none">
                    {l}
                  </a>
                </li>
              ))}
            </ul>
          </nav>
          <div className="flex items-center gap-5">
            <a href="#" className="hidden text-ui text-[#9c9c9d] transition-colors duration-200 ease-in-out hover:text-white sm:block">
              {loginLabel}
            </a>
            <a
              href="#"
              className="group inline-flex items-center gap-2 rounded-md bg-[#e6e6e6] px-4 py-2 text-ui font-medium text-[#111214] shadow-[0_0_0_2px_rgba(0,0,0,0.5),inset_0_-1px_0.4px_rgba(0,0,0,0.2),inset_0_1px_0.4px_#fff] transition-all duration-200 ease-out hover:bg-white hover:shadow-[0_0_0_2px_rgba(0,0,0,0.5),0_0_14px_rgba(255,255,255,0.19),inset_0_-1px_0.4px_rgba(0,0,0,0.2),inset_0_1px_0.4px_#fff] focus-visible:outline focus-visible:outline-2 focus-visible:outline-accent-red"
            >
              <svg
                width="14"
                height="16"
                viewBox="0 0 14 16"
                aria-hidden="true"
                className="translate-x-[3px] transition-transform duration-300 ease-out group-hover:translate-x-0 motion-reduce:transition-none"
              >
                <path d="M7 4c1-1.4 2.3-1.5 2.3-1.5S9.5 4 8.5 5C7.5 6 6.3 5.9 6.3 5.9S6 5 7 4zM7 5.8c.7 0 1.3-.4 2-.4 1.2 0 2 .7 2.4 1.4-1.8 1-1.6 3.4.3 4.2-.5 1.3-1.5 3-2.700 3-.8 0-1-.5-2-.5s-1.300.5-2 .5C3.700 14 2 11 2 8.700 2 6.800 3.300 5.400 5 5.400c.800 0 1.500.4 2 .4z" fill="currentColor" />
              </svg>
              <span>{ctaLabel}</span>
            </a>
            <button
              type="button"
              aria-label="Toggle menu"
              aria-expanded={open}
              onClick={() => setOpen(!open)}
              className="rounded-md p-2 text-secondary lg:hidden focus-visible:outline focus-visible:outline-2 focus-visible:outline-accent-red"
            >
              <svg width="20" height="20" viewBox="0 0 20 20" fill="none" stroke="currentColor" strokeWidth="1.5"><path d="M3 6h14M3 14h14" /></svg>
            </button>
          </div>
        </div>
        {open && (
          <ul className="mt-2 grid grid-cols-3 gap-3 rounded-xl border border-hairline bg-surface p-4 lg:hidden">
            {links.map((l) => (
              <li key={l}>
                <a href="#" className="text-ui text-[#9c9c9d] transition-colors duration-200 hover:text-white">{l}</a>
              </li>
            ))}
          </ul>
        )}
      </div>
    </header>
  );
}

Quality checks

Automated, in a real browser · 4d ago
—

More from Obsidian Launcher

The whole style →

AI Agent Bento Showcase

Feature sections

Blog Category Filter Row

Tab bars

Centered Glow Hero

Heroes

Light Pill Download Button

Buttons

Launcher Window Showcase

Media & mockups

Keycap Feature Grid

Feature sections