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.
Looks exactly like vercel.com: brings its fonts and colours, namespaced so your own theme stays untouched.
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: 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> ); }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-full" : "rounded-[6px]"; const base = "inline-flex h-10 items-center justify-center gap-2 px-[18px] text-monochrome-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-primary 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-foreground text-background hover:bg-foreground " + (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-card text-foreground shadow-monochrome-card ring-1 ring-border hover:bg-secondary"} > {secondaryLabel} </a> </div> ); }
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.