Page sections / Pricing

Four-Column Pricing Matrix

One bordered container divided into four plan columns with vertical hairlines. Each has a monospace plan name, muted blurb, large mono price with '/ month', full-width button (emerald for the featured plan, white outlined otherwise), a grey note box and a check-bulleted feature list with tiny emerald-tint circle ticks and grey secondary pricing lines. Featured column gets a shimmering 'Most Popular' pill.

Rebuilt from supabase.com/pricing in the Emerald Paper Precision style.

npx shadcn@latest add https://justyoink.it/r/emerald-paper-precision/blocks/four-tier-pricing-table.json

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

Usage

Pass `plans` (array with name, blurb, price, cta, note, lead, features, featured) and `badge` to override copy; renders standalone with defaults. The featured plan gets the shimmering pill and emerald button.

components/four-tier-pricing-table.tsx
"use client";

import { type CSSProperties, type ReactNode } from "react";
type Plan = {
  name: string;
  blurb: string;
  from?: boolean;
  price: string;
  unit?: boolean;
  cta: string;
  featured?: boolean;
  note?: string[];
  lead: string;
  features: { t: string; s?: string }[];
};

const defaultPlans: Plan[] = [
  {
    name: "Starter",
    blurb: "Great for hobby builds and small personal sites.",
    price: "$0",
    unit: true,
    cta: "Try Starter",
    note: ["Idle workspaces are archived after 14 days.", "Maximum of 3 live workspaces."],
    lead: "Included from day one:",
    features: [
      { t: "Unlimited public pages" },
      { t: "10,000 monthly visitors" },
      { t: "250 MB asset library", s: "Shared compute • 1 GB cache" },
      { t: "2 GB transfer" },
      { t: "Forum help" },
    ],
  },
  {
    name: "Growth",
    blurb: "For live products that need room to expand steadily.",
    from: true,
    price: "$29",
    unit: true,
    cta: "Choose Growth",
    featured: true,
    note: ["First workspace included.", "Extras from $8/mo.", "Learn how billing grows"],
    lead: "Everything in Starter, plus:",
    features: [
      { t: "250,000 monthly visitors", s: "then $0.004 per visitor" },
      { t: "20 GB asset library", s: "then $0.10 per GB" },
      { t: "500 GB transfer", s: "then $0.07 per GB" },
      { t: "Chat support" },
      { t: "Nightly snapshots kept 10 days" },
      { t: "Audit trail for 5 days" },
      { t: "Webhook relays", s: "extra $40 per relay, monthly" },
    ],
  },
  {
    name: "Studio",
    blurb: "Adds team controls, shared access rules and compliance tooling.",
    from: true,
    price: "$449",
    unit: true,
    cta: "Choose Studio",
    note: ["First workspace included.", "Extras from $8/mo.", "Learn how billing grows"],
    lead: "Everything in Growth, plus:",
    features: [
      { t: "Single sign-on for teams" },
      { t: "Folder-level roles and viewer seats" },
      { t: "Compliance reports on request" },
      { t: "Private network peering" },
      { t: "Priority chat with response targets" },
      { t: "Snapshots kept 30 days" },
      { t: "90-day audit trail" },
    ],
  },
  {
    name: "Scale",
    blurb: "For global teams running high-volume critical systems.",
    price: "Custom",
    cta: "Talk to sales",
    lead: "Everything in Studio, plus:",
    features: [
      { t: "Dedicated success manager" },
      { t: "Guaranteed availability terms" },
      { t: "Round-the-clock phone line" },
      { t: "Shared team channel" },
      { t: "Vendor security reviews" },
    ],
  },
];

function Tick() {
  return (
    <span className="mt-[3px] flex h-[14px] w-[14px] shrink-0 items-center justify-center rounded-pill bg-brand-tint">
      <svg width="8" height="8" viewBox="0 0 10 10" fill="none" aria-hidden="true">
        <path d="M2 5.2l2 2L8 3" stroke="currentColor" strokeWidth="1.4" strokeLinecap="round" strokeLinejoin="round" className="text-brand-bright" />
      </svg>
    </span>
  );
}

export default function FourColumnPricingMatrix({ plans = defaultPlans, badge = "Most Popular" }: { plans?: Plan[]; badge?: string }) {
  return (
    <section className="bg-canvas px-4 py-10 font-sans text-ink">
      <div className="mx-auto grid max-w-[1120px] overflow-hidden rounded-xl border border-hairline bg-surface md:grid-cols-2 lg:grid-cols-4">
        {plans.map((p, i) => (
          <div key={p.name} className={`flex flex-col p-6 ${i > 0 ? "border-t border-hairline md:border-t-0 lg:border-l" : ""} ${i === 2 ? "md:border-l" : ""}`}>
            <div className="flex items-center justify-between">
              <h3 className="font-mono text-[22px] font-medium">{p.name}</h3>
              {p.featured && (
                <span className="rounded-md border border-hairline bg-brand-tint px-2 py-0.5 text-caption text-brand-deep">
                  <ShimmerText duration={2}>{badge}</ShimmerText>
                </span>
              )}
            </div>
            <p className="mt-3 min-h-[60px] text-body text-ink-soft">{p.blurb}</p>
            <div className="mt-6 flex min-h-[90px] flex-col justify-end">
              {p.from && <span className="text-caption text-ink-muted">From</span>}
              <div className="flex items-baseline gap-2">
                <span className="font-mono text-[44px] leading-tight">{p.price}</span>
                {p.unit && <span className="text-caption text-ink-muted">/ month</span>}
              </div>
            </div>
            <button
              className={`mt-5 h-[42px] w-full rounded-md border text-body font-medium transition-colors duration-hover-color ease-hover-color focus-visible:outline focus-visible:outline-2 focus-visible:outline-brand-bright ${p.featured ? "border-brand bg-brand text-surface hover:bg-brand-hover" : "border-hairline bg-surface text-ink hover:border-hairline-strong"}`}
            >
              {p.cta}
            </button>
            <div className="mt-4 min-h-[80px]">
              {p.note && (
                <div className="rounded-lg bg-surface-muted p-3 text-caption leading-5 text-ink-soft shadow-card-hairline">
                  {p.note.map((n, k) => (
                    <p key={k} className={k === p.note!.length - 1 && p.featured !== undefined && n.startsWith("Learn") ? "underline" : ""}>{n}</p>
                  ))}
                </div>
              )}
            </div>
            <p className="mt-8 text-caption text-ink-muted">{p.lead}</p>
            <ul className="mt-5 space-y-4">
              {p.features.map((f) => (
                <li key={f.t} className="flex gap-3 text-caption leading-5">
                  <Tick />
                  <span>
                    <span className="block text-ink">{f.t}</span>
                    {f.s && <span className="block text-ink-muted">{f.s}</span>}
                  </span>
                </li>
              ))}
            </ul>
          </div>
        ))}
      </div>
    </section>
  );
}

// ---- Yoink motion (inlined, no dependencies): ShimmerText ----

const YK_SHIMMER_CSS = `@keyframes yk-shimmer{0%{background-position:100% 0}60%,100%{background-position:0% 0}}
@media (prefers-reduced-motion:reduce){[data-yk-shimmer]{animation:none!important;background:none!important;-webkit-text-fill-color:currentColor!important}}`;

/** A band of light that sweeps across text: headlines, badges, button labels. */
function ShimmerText({
  children = "Now in early access",
  duration = 2.8,
  className,
  style,
}: {
  children?: ReactNode;
  /** seconds per sweep (including a short rest) */
  duration?: number;
  className?: string;
  style?: CSSProperties;
}) {
  // dimmed text with a full-strength band passing over it; follows the text colour in any theme
  const dim = "color-mix(in oklab, currentColor 55%, transparent)";
  return (
    <span className={className} style={style}>
      <style>{YK_SHIMMER_CSS}</style>
      <span
        data-yk-shimmer=""
        style={{
          backgroundImage: `linear-gradient(100deg, ${dim} 0%, ${dim} 40%, currentColor 50%, ${dim} 60%, ${dim} 100%)`,
          backgroundSize: "250% 100%",
          backgroundClip: "text",
          WebkitBackgroundClip: "text",
          WebkitTextFillColor: "transparent",
          animation: `yk-shimmer ${duration}s ease-in-out infinite`,
        }}
      >
        {children}
      </span>
    </span>
  );
}

Quality checks

Automated, in a real browser · 4d ago
—

More from Emerald Paper Precision

The whole style →

Hairline Site Header

Headers & nav bars

Framework Icon Tab Code Panel

Code blocks

Gradient Customer Story Strip

Testimonials

Compute Pricing Calculator

Forms

Two-Tone Split Hero

Heroes

Hairline Bento Product Grid

Feature sections