Buttons & actions / Buttons

Ink and Ghost Pill Buttons

Fully rounded pill buttons: primary is solid #26251e with off-white text and trailing download icon; secondary is #e6e5e0 with ink text and arrow. Used in hero, CTA and cookie banner.

Rebuilt from cursor.com/pricing in the Warm Paper Editorial style.

npx shadcn@latest add https://justyoink.it/r/warm-paper-editorial/blocks/pill-button-pair.json

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

Usage

Props: heading, primaryLabel, secondaryLabel, primaryHref, secondaryHref. Renders standalone with defaults; the secondary pill fills toward the surface color on hover with a 150ms transition.

components/pill-button-pair.tsx
export default function InkAndGhostPillButtons({
  heading = "Start building with Northwind.",
  primaryLabel = "Download",
  secondaryLabel = "Talk to Sales",
  primaryHref = "#",
  secondaryHref = "#",
}: {
  heading?: string;
  primaryLabel?: string;
  secondaryLabel?: string;
  primaryHref?: string;
  secondaryHref?: string;
}) {
  return (
    <section className="bg-canvas text-ink font-sans px-6 py-24 md:py-32">
      <div className="mx-auto flex max-w-4xl flex-col items-center text-center">
        <h2 className="text-display text-ink text-balance">{heading}</h2>
        <div className="mt-8 flex flex-wrap items-center justify-center gap-2.5">
          <a
            href={primaryHref}
            className="inline-flex h-[43px] items-center gap-2 rounded-pill bg-ink px-6 text-ui text-canvas transition-opacity duration-hover-color ease-hover-color hover:opacity-90 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-ink"
          >
            {primaryLabel}
            <svg width="16" height="16" viewBox="0 0 16 16" fill="none" stroke="currentColor" strokeWidth="1.4" strokeLinecap="round" strokeLinejoin="round" aria-hidden="true">
              <path d="M8 2v9M4.5 7.5 8 11l3.5-3.5M3 14h10" />
            </svg>
          </a>
          <a
            href={secondaryHref}
            className="inline-flex h-[43px] items-center gap-2 rounded-pill border border-hairline bg-surface-deep px-6 text-ui text-ink transition-colors duration-hover-color ease-hover-color hover:bg-surface focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-ink"
          >
            {secondaryLabel}
          </a>
        </div>
      </div>
    </section>
  );
}

Quality checks

Automated, in a real browser · 4d ago
—

More from Warm Paper Editorial

The whole style →

Quote Card Grid

Testimonials

Terminal Install Chip

Code blocks

Dated Blog Index Table

Lists

Customer Story Logo Cards

Cards

Hairline Chevron Accordion

FAQ

Centered Pull Quote

Text effects