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.
npx shadcn@latest add https://justyoink.it/r/gallery-white-editorial/mine/hairline-pill-button.json
Restyled to your project: uses your shadcn colours, fonts and radius, so it matches the rest of your app. Layout, type sizes and motion stay as designed.
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> ); }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-full border border-foreground/10 px-2 py-1 text-[14px] font-semibold leading-none text-foreground/40 transition-[color,border-color] duration-300 ease-out hover:border-foreground hover:text-foreground focus-visible:border-foreground focus-visible:text-foreground 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-background text-foreground"> <div className="flex items-start justify-between gap-4 px-4 py-3 sm:px-[14px]"> <a href="#" aria-label={logo} className="font-sans 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- Accessible: not passedElements must meet minimum color contrast ratio thresholds (5 elements)
- Responsive: passedRenders at phone (390px), tablet (768px) and desktop width without sideways scrolling.
- Dark mode: not passedElements must meet minimum color contrast ratio thresholds (5 elements)
- Themeable: passedUses design tokens rather than hard-coded colours, so it follows your theme cleanly.
- Animates cleanly: doesn't applyDoesn't animate, so there's nothing to check.