Buttons & actions / Buttons

Hairline Pill Button

Fully rounded 14px semibold muted-grey label with a 1px 10% black border and tight padding; used for nav, footer and filter controls.

Rebuilt from thisislandscape.com in the Gallery White Editorial style.

npx shadcn@latest add https://justyoink.it/r/gallery-white-editorial/blocks/hairline-pill-button.json

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

Usage

Default export renders a header with a serif logo and a row of hairline pills; pass `logo` and `items` ({label, href}). The named export HairlinePillButton can be used standalone for nav, footer or filter controls.

components/hairline-pill-button.tsx
import { useState } from "react";

type Item = { label: string; href?: string };

type Props = {
  logo?: string;
  items?: Item[];
};

export function HairlinePillButton({ children, href = "#", className = "" }: { children: React.ReactNode; href?: string; className?: string }) {
  return (
    <a
      href={href}
      className={"inline-flex items-center rounded-pill border border-ink/10 px-2 py-1 text-[14px] font-semibold leading-none text-ink/40 transition-[color,border-color] duration-300 ease-out hover:border-ink hover:text-ink focus-visible:border-ink focus-visible:text-ink focus-visible:outline-none " + className}
    >
      {children}
    </a>
  );
}

export default function HairlinePillNav({
  logo = "Meridian",
  items = [
    { label: "Projects" },
    { label: "About" },
    { label: "Journal" },
    { label: "Shows" },
    { label: "Contact" },
  ],
}: Props) {
  const [active] = useState<string | null>(null);
  return (
    <header className="w-full bg-canvas text-ink">
      <div className="flex items-start justify-between gap-4 px-4 py-3 sm:px-[14px]">
        <a href="#" aria-label={logo} className="font-serif-logo text-[32px] leading-none tracking-[-0.03em] focus-visible:outline-none">
          {logo}<sup className="align-top text-[8px]">®</sup>
        </a>
        <nav aria-label="Primary" className="mt-1">
          <ul className="flex flex-wrap justify-end">
            {items.map((it) => (
              <li key={it.label} data-active={active === it.label}>
                <HairlinePillButton href={it.href}>{it.label}</HairlinePillButton>
              </li>
            ))}
          </ul>
        </nav>
      </div>
    </header>
  );
}

Quality checks

Automated, in a real browser · 4d ago
—

More from Gallery White Editorial

The whole style →

Hairline Pill Nav Header

Headers & nav bars

Monochrome Client Logo Row

Logo clouds

Giant Type CTA with Arrow Glyph

Calls to action

Pill Footer Link Row

Footers

Hanging-Quote Testimonial Carousel

Testimonials

Twin-Panel Project Slideshow Hero

Heroes