Buttons & actions / Buttons

Ink and Ghost Button Pair

Primary solid #171717 button with white text beside a white secondary button with a 1px hairline ring and soft shadow. Hero versions are pill-shaped (full radius), nav versions 6px radius; optional leading triangle glyph.

Rebuilt from vercel.com in the Monochrome Precision style.

npx shadcn@latest add https://justyoink.it/r/monochrome-precision/blocks/pill-button-pair.json

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

Usage

Props: primaryLabel, secondaryLabel, primaryHref, secondaryHref, shape ("pill" for hero or "soft" for 6px nav), showGlyph (leading triangle on the primary button), className. Renders standalone with defaults.

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

type Props = {
  primaryLabel?: string;
  secondaryLabel?: string;
  primaryHref?: string;
  secondaryHref?: string;
  shape?: "pill" | "soft";
  showGlyph?: boolean;
  className?: string;
};

export default function InkAndGhostButtonPair({
  primaryLabel = "Start building",
  secondaryLabel = "Contact us",
  primaryHref = "#",
  secondaryHref = "#",
  shape = "pill",
  showGlyph = false,
  className = "",
}: Props) {
  const [pressed, setPressed] = useState(false);
  const radius = shape === "pill" ? "rounded-pill" : "rounded-[6px]";
  const base =
    "inline-flex h-10 items-center justify-center gap-2 px-[18px] text-ui font-sans outline-none transition-colors duration-[150ms] ease-[cubic-bezier(0.4,0,0.2,1)] focus-visible:ring-4 focus-visible:ring-link-blue focus-visible:ring-offset-2 focus-visible:ring-offset-white " +
    radius;
  return (
    <div className={"flex flex-wrap items-center gap-3 " + className}>
      <a
        href={primaryHref}
        onMouseDown={() => setPressed(true)}
        onMouseUp={() => setPressed(false)}
        onMouseLeave={() => setPressed(false)}
        className={base + " bg-ink text-white hover:bg-ink-hover " + (pressed ? "scale-[0.99]" : "")}
      >
        {showGlyph && (
          <svg width="12" height="12" viewBox="0 0 12 12" aria-hidden="true">
            <path d="M6 1 11 10.5H1Z" fill="currentColor" />
          </svg>
        )}
        {primaryLabel}
      </a>
      <a
        href={secondaryHref}
        className={base + " bg-surface text-ink shadow-card ring-1 ring-hairline hover:bg-surface-muted"}
      >
        {secondaryLabel}
      </a>
    </div>
  );
}

Quality checks

Automated, in a real browser · 4d ago
—

More from Monochrome Precision

The whole style →

Dashed Orbit Integration Ring

Animated graphics

Customer Story Index List

Lists

Centered Quote with Meta Row

Testimonials

Hairline Navigation Bar

Headers & nav bars

Floating Triangle Hero with Logo Strip

Heroes

Product Screenshot Story Blocks

Feature sections