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.
npx shadcn@latest add https://justyoink.it/r/warm-paper-editorial/mine/pill-button-pair.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
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> ); }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-background text-foreground 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-warm-display text-foreground 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-full bg-primary px-6 text-warm-ui text-primary-foreground transition-opacity duration-warm-hover-color ease-warm-hover-color hover:opacity-90 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-foreground" > {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-full border border-border bg-secondary px-6 text-warm-ui text-foreground transition-colors duration-warm-hover-color ease-warm-hover-color hover:bg-card focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-foreground" > {secondaryLabel} </a> </div> </div> </section> ); }
Quality checks
Automated, in a real browser · 4d ago- Accessible: passedNo serious accessibility problems (axe-core): readable contrast, labelled buttons and images.
- Responsive: passedRenders at phone (390px), tablet (768px) and desktop width without sideways scrolling.
- Dark mode: passedStill readable when installed in your theme and switched to dark mode.
- 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.