Page sections / Pricing

Hairline Four-Column Pricing Grid

Four borderless plan columns separated by vertical hairlines. Each shows plan name, price, an indigo yearly-billing toggle, a check-icon feature list and pill CTAs; Business has a light filled primary plus a dark secondary.

Rebuilt from linear.app/pricing in the Obsidian Precision style.

npx shadcn@latest add https://justyoink.it/r/obsidian-precision-5cbef2/blocks/four-tier-pricing-columns.json

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

Usage

Pass `plans` (name, price, unit, note, toggle, features, ctas) plus optional `title` and `footnote`. Renders standalone with defaults; the yearly toggle is interactive per column.

components/four-tier-pricing-columns.tsx
import { useState } from "react";

type Plan = {
  name: string;
  price: string;
  unit?: string;
  note?: string;
  toggle?: boolean;
  features: string[];
  ctas: { label: string; light?: boolean }[];
};

const defaultPlans: Plan[] = [
  { name: "Starter", price: "$0", note: "Free for everyone", features: ["Unlimited members", "3 workspaces", "500 records", "Basic automations", "Community support"], ctas: [{ label: "Get started" }] },
  { name: "Team", price: "$12", unit: "per user/month", toggle: true, features: ["All Starter features +", "10 workspaces", "Unlimited records", "Larger file uploads", "Role management"], ctas: [{ label: "Get started" }] },
  { name: "Scale", price: "$20", unit: "per user/month", toggle: true, features: ["All Team features +", "Unlimited workspaces", "Private spaces and guests", "Smart routing", "Usage analytics", "Custom views", "Chat and email integrations"], ctas: [{ label: "Get started", light: true }, { label: "Contact sales" }] },
  { name: "Enterprise", price: "Custom", note: "Annual billing only", features: ["All Scale features +", "Invoice billing", "SSO and provisioning", "Granular permissions", "Advanced security", "Org-wide modeling", "Guided onboarding", "Priority support", "Dedicated manager"], ctas: [{ label: "Contact sales" }] },
];

function Check() {
  return (
    <svg width="14" height="14" viewBox="0 0 14 14" aria-hidden="true" className="shrink-0 text-secondary">
      <circle cx="7" cy="7" r="7" fill="currentColor" />
      <path d="M4 7.2l2 2L10 5" stroke="#08090a" strokeWidth="1.6" fill="none" strokeLinecap="round" strokeLinejoin="round" />
    </svg>
  );
}

function Toggle() {
  const [on, setOn] = useState(true);
  return (
    <label className="flex items-center gap-2 cursor-pointer text-secondary">
      <button type="button" role="switch" aria-checked={on} aria-label="Billed yearly" onClick={() => setOn(!on)} className={`relative h-[20px] w-8 rounded-full transition-colors duration-[160ms] focus-visible:outline focus-visible:outline-2 focus-visible:outline-accent-indigo ${on ? "bg-accent-indigo" : "bg-surface-raised"}`}>
        <span className={`absolute top-[3px] left-[3px] h-[14px] w-[14px] rounded-full bg-white transition-transform duration-[160ms] ${on ? "translate-x-3" : ""}`} />
      </button>
      <span className="text-[15px]">Billed yearly</span>
    </label>
  );
}

export default function HairlinePricingGrid({ title = "Pricing", plans = defaultPlans, footnote = "companies" }: { title?: string; plans?: Plan[]; footnote?: string }) {
  return (
    <section className="bg-canvas text-primary font-sans px-6 py-16 md:px-20">
      <h2 className="text-[44px] leading-none tracking-[-0.03em] mb-16 md:mb-24">{title}</h2>
      <div className="grid gap-10 md:grid-cols-2 lg:grid-cols-4 lg:gap-0">
        {plans.map((p, i) => (
          <div key={p.name} className={`flex flex-col lg:px-8 ${i === 0 ? "lg:pl-0" : "lg:border-l lg:border-hairline-subtle"} ${i === plans.length - 1 ? "lg:pr-0" : ""}`}>
            <h3 className="text-[22px] tracking-[-0.02em] font-medium">{p.name}</h3>
            <p className="mt-2 h-6 text-[17px]"><span className="text-primary">{p.price}</span>{p.unit && <span className="text-tertiary text-[16px]"> {p.unit}</span>}</p>
            <div className="mt-5 flex h-[58px] items-center border-y border-hairline-subtle text-[15px] text-tertiary">
              {p.toggle ? <Toggle /> : p.note}
            </div>
            <ul className="mt-4 flex-1 space-y-[15px] min-h-[340px]">
              {p.features.map((f) => (
                <li key={f} className="flex items-center gap-2 text-[13px] text-secondary"><Check />{f}</li>
              ))}
            </ul>
            <div className="mt-8 flex gap-2">
              {p.ctas.map((c) => (
                <a key={c.label} href="#" className={`flex h-10 flex-1 items-center justify-center rounded-full border border-hairline-subtle px-4 text-[13px] font-medium transition-colors duration-[160ms] ease-[cubic-bezier(0.25,0.46,0.45,0.94)] focus-visible:outline focus-visible:outline-2 focus-visible:outline-accent-indigo ${c.light ? "bg-[#e5e5e6] text-[#08090a] hover:bg-white" : "bg-white/5 text-primary hover:bg-surface-hover"}`}>{c.label}</a>
              ))}
            </div>
          </div>
        ))}
      </div>
      <p className="mt-24 text-center text-[15px] text-tertiary">Trusted by more than <span className="text-primary">50,000</span> {footnote}</p>
    </section>
  );
}

Quality checks

Automated, in a real browser · 4d ago
—

More from Obsidian Precision

The whole style →

Bold Colour Testimonial Cards

Testimonials

Mono Uppercase Feature Tab List with Document Preview

Tab bars

Nested Initiatives Table

Tables

Quarterly Roadmap Board

Cards

Blur-In Word Hero with Floating App Window

Heroes

Frosted Hairline Header

Headers & nav bars