Page sections / Comparison tables
Plan Comparison Check Table
Grouped rows with an icon-led section title and subtitle, rows separated by generous 53px spacing, label left and centered check icons for each of three plan columns in muted gray.
Rebuilt from vercel.com/pricing in the Monochrome Precision style.
npx shadcn@latest add https://yoink-app.fly.dev/r/monochrome-precision/blocks/feature-comparison-matrix.json
Looks exactly like vercel.com: brings its fonts and colours, namespaced so your own theme stays untouched.
npx shadcn@latest add https://yoink-app.fly.dev/r/monochrome-precision/mine/feature-comparison-matrix.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
Pass `title`, `plans` (three column names, shown to screen readers) and `rows` ({label, href?}). Rows with an href underline on hover.
components/feature-comparison-matrix.tsx
export default function PlanComparisonCheckTable({ title = "Edge Network", plans = ["Starter", "Team", "Enterprise"], rows = [{ label: "Global edge locations" }, { label: "Regional compute zones", href: "#" }, { label: "Smart request routing" }, { label: "Managed certificates" }, { label: "Transport encryption" }, { label: "Traffic load balancing", href: "#" }, { label: "Private backbone links" }, { label: "Automatic zone failover" }] }: { title?: string; plans?: string[]; rows?: { label: string; href?: string }[] }) { const Check = () => ( <svg viewBox="0 0 24 24" width="18" height="18" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round" aria-hidden="true"><path d="M5 12.5l4.5 4.5L19 7.5" /></svg> ); return ( <section className="bg-canvas px-4 py-6 sm:px-7 font-sans"> <table className="w-full border-collapse text-left"> <caption className="sr-only">{title} plan comparison</caption> <thead> <tr> <th scope="col" className="pb-6 text-ui font-medium text-ink"> <span className="inline-flex items-center gap-2"> <svg viewBox="0 0 24 24" width="16" height="16" fill="none" stroke="currentColor" strokeWidth="1.8" aria-hidden="true"><circle cx="12" cy="12" r="9" /><path d="M3 12h18M12 3c3 3 3 15 0 18M12 3c-3 3-3 15 0 18" /></svg> {title} </span> </th> {plans.map((p) => ( <th key={p} scope="col" className="pb-6 text-center text-caption font-normal text-tertiary"><span className="sr-only">{p}</span></th> ))} </tr> </thead> <tbody> {rows.map((r) => ( <tr key={r.label} className="h-[53px]"> <th scope="row" className="text-ui font-normal text-secondary"> {r.href ? ( <a href={r.href} className="cursor-pointer no-underline hover:underline focus-visible:underline focus-visible:outline-none">{r.label}</a> ) : r.label} </th> {plans.map((p) => ( <td key={p} className="text-center text-tertiary"> <span className="inline-flex" role="img" aria-label={`Included in ${p}`}><Check /></span> </td> ))} </tr> ))} </tbody> </table> </section> ); }export default function PlanComparisonCheckTable({ title = "Edge Network", plans = ["Starter", "Team", "Enterprise"], rows = [{ label: "Global edge locations" }, { label: "Regional compute zones", href: "#" }, { label: "Smart request routing" }, { label: "Managed certificates" }, { label: "Transport encryption" }, { label: "Traffic load balancing", href: "#" }, { label: "Private backbone links" }, { label: "Automatic zone failover" }] }: { title?: string; plans?: string[]; rows?: { label: string; href?: string }[] }) { const Check = () => ( <svg viewBox="0 0 24 24" width="18" height="18" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round" aria-hidden="true"><path d="M5 12.5l4.5 4.5L19 7.5" /></svg> ); return ( <section className="bg-background px-4 py-6 sm:px-7 font-sans"> <table className="w-full border-collapse text-left"> <caption className="sr-only">{title} plan comparison</caption> <thead> <tr> <th scope="col" className="pb-6 text-monochrome-ui font-medium text-foreground"> <span className="inline-flex items-center gap-2"> <svg viewBox="0 0 24 24" width="16" height="16" fill="none" stroke="currentColor" strokeWidth="1.8" aria-hidden="true"><circle cx="12" cy="12" r="9" /><path d="M3 12h18M12 3c3 3 3 15 0 18M12 3c-3 3-3 15 0 18" /></svg> {title} </span> </th> {plans.map((p) => ( <th key={p} scope="col" className="pb-6 text-center text-monochrome-caption font-normal text-muted-foreground"><span className="sr-only">{p}</span></th> ))} </tr> </thead> <tbody> {rows.map((r) => ( <tr key={r.label} className="h-[53px]"> <th scope="row" className="text-monochrome-ui font-normal text-muted-foreground"> {r.href ? ( <a href={r.href} className="cursor-pointer no-underline hover:underline focus-visible:underline focus-visible:outline-none">{r.label}</a> ) : r.label} </th> {plans.map((p) => ( <td key={p} className="text-center text-muted-foreground"> <span className="inline-flex" role="img" aria-label={`Included in ${p}`}><Check /></span> </td> ))} </tr> ))} </tbody> </table> </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.