Pricing Tiers 1
Pricing tiers block: two or three plans set out as ticked checklists, so each buyer finds their plan fast.
Use it in a prompt
Use content/pricing-tiers from the FunnelDNA library. Follow the skill and theme contract. Ask me for the copy, images, and brand details you need; do not invent proof.
Paste into Claude or ChatGPT with FunnelDNA connected (MCP setup), or alongside the skill.
Use it in code
- Save
component.tsx(Code tab) ascomponents/funneldna/content/pricing-tiers.tsx. - Import it and pass your copy and images (Props tab):
import { PricingTiers } from "@/components/funneldna/content/pricing-tiers"
It restyles from the theme tokens on any wrapper (Theme tab). The specimen source is a complete working example.
pieces/content/pricing-tiers/component.tsx 559 lines
// layout: clipboard-checklist
// Pricing tiers block: two or three plans set out as ticked checklists, so each buyer finds their plan fast.
// Each card ends on a question its button answers; a monthly/yearly switch appears when both prices are supplied.
import React from "react";
import { Check, ChevronDown, ShieldCheck, Star } from "lucide-react";
export type PricingTiersCycle = "monthly" | "yearly";
export type PricingTiersPrice = {
/** The price as shown, e.g. "$29". */
amount: string;
/** Text after the price, e.g. "/month". */
period?: string;
/** Regular price, struck through above today's price. Only when supplied. */
regular?: string;
/** One short line under the price, e.g. "Billed once a year". */
note?: string;
};
export type PricingTiersPlan = {
/** Stable key for the caller; defaults to the plan name. */
id?: string;
name: string;
/** Who the plan is for, in one sentence. */
forWho?: string;
/** A single price that does not change with the billing switch. */
price?: PricingTiersPrice;
/** Price shown while the switch is on monthly. */
monthly?: PricingTiersPrice;
/** Price shown while the switch is on yearly. */
yearly?: PricingTiersPrice;
/** Name of the plan this one builds on; renders the includesFrom line. */
includesFrom?: string;
/** 4 to 8 included items. */
items: React.ReactNode[];
/** The question the button answers. */
ask?: string;
actionLabel: string;
/** One reassurance line under the button. */
actionNote?: string;
/** Navigation destination of the plan button. */
href?: string;
/** Mark as recommended only when the page supplies it. */
recommended?: boolean;
disabled?: boolean;
};
export type PricingTiersCopy = {
monthly: string;
yearly: string;
/** Accessible name of the billing switch. */
cycleLegend: string;
/** Template; replaces {plan} with the plan name. */
includesFrom: string;
recommended: string;
/** Screen-reader label before the struck price. */
regular: string;
/** Screen-reader label before today's price. */
today: string;
/** Phone list toggle; replaces {count} with the item count. */
showAll: string;
showLess: string;
};
export type PricingTiersProps = {
headline?: string;
/** Phrase inside the headline that gets the marker stroke. */
highlight?: string;
/** One-sentence lines under the headline. */
lead?: string[];
/** The single-word line that lands the lead. */
punch?: string;
/** Two or three plans (extra plans are ignored). */
plans?: PricingTiersPlan[];
/** Controlled billing period. */
cycle?: PricingTiersCycle;
/** Starting billing period when uncontrolled. */
defaultCycle?: PricingTiersCycle;
onCycleChange?: (cycle: PricingTiersCycle) => void;
/** A supplied yearly saving shown beside the switch, e.g. "2 months free". */
yearlyBadge?: string;
/** Guarantee or reassurance line under the plans. Only when supplied. */
reassurance?: string;
/** On phones, items after this count fold behind a toggle (when at least two would fold). */
collapseAfter?: number;
/** Overrides for labels, accessible names and templates. */
copy?: Partial<PricingTiersCopy>;
/** Called with the plan and the current billing period when a plan button is clicked. */
onAction?: (plan: PricingTiersPlan, cycle: PricingTiersCycle) => void;
/** Forces the recommended (else first) plan button into hover/active; disabled locks every action. */
state?: "default" | "hover" | "active" | "disabled";
className?: string;
};
export function PricingTiers({
headline = "Ready to map your first funnel?",
highlight = "map your first funnel",
lead = DEFAULT_LEAD,
punch = "Simple.",
plans = DEFAULT_PLANS,
cycle: cycleProp,
defaultCycle = "monthly",
onCycleChange,
yearlyBadge = "",
reassurance = "",
collapseAfter = 5,
copy: copyProp,
onAction,
state = "default",
className,
}: PricingTiersProps) {
const copy: PricingTiersCopy = { ...DEFAULT_COPY, ...copyProp };
const uid = React.useId().replace(/:/g, "");
const [innerCycle, setInnerCycle] = React.useState<PricingTiersCycle>(defaultCycle);
const [open, setOpen] = React.useState<Record<number, boolean>>({});
const cycle = cycleProp ?? innerCycle;
const shown = plans.slice(0, 3);
const hasSwitch = shown.some((p) => p.monthly && p.yearly);
const allDisabled = state === "disabled";
const featured = shown.findIndex((p) => p.recommended);
const forcedIndex = featured >= 0 ? featured : 0;
const anyRegular = shown.some((p) => priceFor(p, cycle)?.regular);
const anyNote = shown.some((p) => priceFor(p, cycle)?.note);
const anyActionNote = shown.some((p) => p.actionNote);
const setCycle = (next: PricingTiersCycle) => {
if (cycleProp === undefined) setInnerCycle(next);
onCycleChange?.(next);
};
return (
<section className={cx("cf-pricing-tiers", className)} aria-labelledby={`${uid}-title`}>
<style>{CSS}</style>
<div className="cf-pricing-tiers__inner">
<div className="cf-pricing-tiers__intro">
<h2 id={`${uid}-title`} className="cf-pricing-tiers__title">
{withMarker(headline, highlight)}
</h2>
{lead.length > 0 && (
<div className="cf-pricing-tiers__lead">
{lead.map((line, i) => (
<p key={i}>{line}</p>
))}
</div>
)}
{punch && <p className="cf-pricing-tiers__punch">{punch}</p>}
{hasSwitch && (
<div className="cf-pricing-tiers__cycle">
<fieldset
className={cx("cf-pricing-tiers__switch", cycle === "yearly" && "is-yearly")}
disabled={allDisabled}
>
<legend className="cf-pricing-tiers__sr">{copy.cycleLegend}</legend>
<span className="cf-pricing-tiers__thumb" aria-hidden="true" />
{(CYCLES).map((c) => (
<label key={c} className={cx("cf-pricing-tiers__seg", cycle === c && "is-on")}>
<input
className="cf-pricing-tiers__radio"
type="radio"
name={`${uid}-cycle`}
value={c}
checked={cycle === c}
onChange={() => setCycle(c)}
/>
<span>{copy[c]}</span>
</label>
))}
</fieldset>
{yearlyBadge && <span className="cf-pricing-tiers__save">{yearlyBadge}</span>}
</div>
)}
</div>
<div className={cx("cf-pricing-tiers__grid", `cf-pricing-tiers__grid--n${shown.length}`)}>
{shown.map((p, i) => {
const price = priceFor(p, cycle);
const isFeatured = i === featured;
const variant = featured < 0 || isFeatured ? "primary" : "secondary";
const disabled = allDisabled || !!p.disabled;
const forced = i === forcedIndex && (state === "hover" || state === "active") ? state : undefined;
const collapsible = p.items.length - collapseAfter >= 2;
const isOpen = !!open[i];
const listId = `${uid}-list-${i}`;
const swapKey = p.monthly && p.yearly ? cycle : "fixed";
return (
<article
key={p.id ?? p.name}
className={cx("cf-pricing-tiers__card", isFeatured && "is-featured")}
style={{ animationDelay: `${Math.min(i * 0.07, 0.28)}s` }}
aria-labelledby={`${uid}-name-${i}`}
>
{isFeatured && (
<span className="cf-pricing-tiers__flag">
<Star size={16} strokeWidth={2.5} fill="currentColor" aria-hidden="true" />
{copy.recommended}
</span>
)}
<header className="cf-pricing-tiers__head">
<h3 id={`${uid}-name-${i}`} className="cf-pricing-tiers__name">
{p.name}
</h3>
{p.forWho && <p className="cf-pricing-tiers__who">{p.forWho}</p>}
</header>
{price ? (
<div className="cf-pricing-tiers__well" aria-live="polite">
<div key={swapKey} className="cf-pricing-tiers__swap">
{price.regular ? (
<p className="cf-pricing-tiers__regular">
<span className="cf-pricing-tiers__sr">{copy.regular} </span>
<del>{price.regular}</del>
</p>
) : anyRegular ? (
<Ghost className="cf-pricing-tiers__regular" />
) : null}
<p className="cf-pricing-tiers__amount">
<span className="cf-pricing-tiers__sr">{copy.today} </span>
<strong>{price.amount}</strong>
{price.period && <span className="cf-pricing-tiers__period">{price.period}</span>}
</p>
{price.note ? (
<p className="cf-pricing-tiers__price-note">{dotted(price.note)}</p>
) : anyNote ? (
<Ghost className="cf-pricing-tiers__price-note" />
) : null}
</div>
</div>
) : (
<div className="cf-pricing-tiers__well is-empty" aria-hidden="true" />
)}
<div className="cf-pricing-tiers__body">
{p.includesFrom && (
<p className="cf-pricing-tiers__plus">{fill(copy.includesFrom, { plan: p.includesFrom })}</p>
)}
<ul id={listId} className={cx("cf-pricing-tiers__list", isOpen && "is-open")}>
{p.items.map((item, j) => (
<li
key={j}
className={cx("cf-pricing-tiers__item", collapsible && j >= collapseAfter && "is-extra")}
>
<span className="cf-pricing-tiers__tick" aria-hidden="true">
<Check size={16} strokeWidth={3} />
</span>
<span>{item}</span>
</li>
))}
</ul>
{collapsible && (
<button
type="button"
className="cf-pricing-tiers__more"
aria-expanded={isOpen}
aria-controls={listId}
onClick={() => setOpen((o) => ({ ...o, [i]: !o[i] }))}
>
{isOpen ? copy.showLess : fill(copy.showAll, { count: String(p.items.length) })}
<ChevronDown size={16} strokeWidth={2.5} aria-hidden="true" />
</button>
)}
</div>
<div className="cf-pricing-tiers__action">
{p.ask && <p className="cf-pricing-tiers__ask">{p.ask}</p>}
<PlanAction
label={p.actionLabel}
href={p.href}
disabled={disabled}
variant={variant}
forced={forced}
onClick={() => {
if (!disabled) onAction?.(p, cycle);
}}
/>
</div>
{p.actionNote ? (
<p className="cf-pricing-tiers__note">{dotted(p.actionNote)}</p>
) : anyActionNote ? (
<Ghost className="cf-pricing-tiers__note" />
) : null}
</article>
);
})}
</div>
{reassurance && (
<p className="cf-pricing-tiers__promise">
<ShieldCheck size={18} strokeWidth={2.5} aria-hidden="true" />
{reassurance}
</p>
)}
</div>
</section>
);
}
export default PricingTiers;
const CYCLES = ["monthly", "yearly"] as const;
/* Approved copy defaults. */
const DEFAULT_COPY: PricingTiersCopy = {
monthly: "Monthly",
yearly: "Yearly",
cycleLegend: "Billing period",
includesFrom: "Everything in {plan}, plus:",
recommended: "Recommended",
regular: "Regular price",
today: "Today's price",
showAll: "See all {count} included",
showLess: "Show fewer",
};
const DEFAULT_LEAD = [
"Every plan gives you the same clear funnel plan.",
"The bigger plans add the tools and the people to help you launch it.",
];
const DEFAULT_PLANS: PricingTiersPlan[] = [
{
id: "starter",
name: "Starter Kit",
forWho: "For you if you want to plan and write your first funnel yourself.",
price: { amount: "$47", regular: "$97", note: "One payment \u00b7 Lifetime access" },
items: [
"Funnel Planning Guide",
"Page Copy Workbook",
"Launch Checklist",
"Printable one-page funnel map",
"Headline and offer prompts",
"Free updates to the kit",
],
ask: "Just want the plan and the pages?",
actionLabel: "Send me the kit",
actionNote: "Secure checkout \u00b7 Instant download",
},
{
id: "builder",
name: "Builder Membership",
forWho: "For you if you want templates and a live build call every month.",
monthly: { amount: "$29", period: "/month", note: "Billed monthly" },
yearly: { amount: "$290", period: "/year", regular: "$348", note: "Billed once a year \u00b7 2 months free" },
includesFrom: "Starter Kit",
items: [
"Done-for-you funnel page templates",
"A new funnel template every month",
"Monthly live build call",
"Recordings of every call",
"Copy feedback in the member forum",
],
ask: "Want new templates and a live call every month?",
actionLabel: "Yes, show me how",
actionNote: "Secure checkout \u00b7 Instant member access",
recommended: true,
},
{
id: "coaching",
name: "Coaching Circle",
forWho: "For you if you want a coach checking every step before you launch.",
monthly: { amount: "$99", period: "/month", note: "Billed monthly" },
yearly: { amount: "$990", period: "/year", regular: "$1,188", note: "Billed once a year \u00b7 2 months free" },
includesFrom: "Builder",
items: [
"Weekly small-group coaching call",
"A funnel teardown before you launch",
"Private chat with your coach",
"Priority copy reviews",
"Launch-week check-in call",
],
ask: "Want someone checking every step with you?",
actionLabel: "Coach me to launch",
actionNote: "Secure checkout \u00b7 Instant member access",
},
];
/** Invisible placeholder line that keeps rows aligned across cards in the subgrid layouts. */
function Ghost({ className }: { className: string }) {
return (
<p className={cx(className, "cf-pricing-tiers__ghost")} aria-hidden="true">
{"\u00a0"}
</p>
);
}
function PlanAction({
label,
href,
disabled,
variant,
forced,
onClick,
}: {
label: string;
href?: string;
disabled: boolean;
variant: "primary" | "secondary";
forced?: "hover" | "active";
onClick: () => void;
}) {
const cls = cx(
"cf-pricing-tiers__btn",
`cf-pricing-tiers__btn--${variant}`,
forced === "hover" && "is-hover",
forced === "active" && "is-active"
);
if (href && !disabled) {
return (
<a className={cls} href={href} onClick={onClick}>
{label}
</a>
);
}
return (
<button type="button" className={cls} disabled={disabled} onClick={onClick}>
{label}
</button>
);
}
function priceFor(plan: PricingTiersPlan, cycle: PricingTiersCycle): PricingTiersPrice | undefined {
if (cycle === "yearly") return plan.yearly ?? plan.monthly ?? plan.price;
return plan.monthly ?? plan.yearly ?? plan.price;
}
function withMarker(text: string, phrase?: string): React.ReactNode {
if (!phrase) return text;
const at = text.indexOf(phrase);
if (at < 0) return text;
return (
<>
{text.slice(0, at)}
<span className="cf-pricing-tiers__mark">{phrase}</span>
{text.slice(at + phrase.length)}
</>
);
}
/** Replaces each {name} placeholder in a copy template with its value, as text. */
function fill(template: string, vars: Record<string, string>): string {
return Object.keys(vars).reduce((out, key) => out.split("{" + key + "}").join(vars[key]), template);
}
/** Keeps each " \u00b7 " separated phrase together so phone wraps break between phrases, never inside one. */
function dotted(text: string): React.ReactNode {
const parts = text.split(" \u00b7 ");
if (parts.length < 2) return text;
return parts.map((part, i) => (
<React.Fragment key={i}>
{i > 0 && " \u00b7 "}
<span className="cf-pricing-tiers__nb">{part}</span>
</React.Fragment>
));
}
function cx(...parts: Array<string | false | null | undefined>): string {
return parts.filter(Boolean).join(" ");
}
// Theme notes: every colour is a contract token or an OKLCH recipe on one. Hex appears only as var() fallbacks:
// the yellow marker default (#fae37c) and the white tick glyph on the solid --success badge (#fff).
const CSS = `
.cf-pricing-tiers{--pt-shadow:var(--shadow,oklch(0.22 0.03 260));--pt-ease:cubic-bezier(.2,.7,.2,1);position:relative;box-sizing:border-box;padding:clamp(56px,8vw,112px) clamp(16px,5vw,48px) clamp(64px,8.5vw,120px);background:color-mix(in oklch,var(--ink,oklch(0.21 0.034 263)) 4%,var(--surface,oklch(1 0 0)));color:var(--ink,oklch(0.21 0.034 263));font-family:var(--font-body,system-ui,sans-serif)}
.cf-pricing-tiers *,.cf-pricing-tiers *::before,.cf-pricing-tiers *::after{box-sizing:border-box}
.cf-pricing-tiers__inner{max-width:1120px;margin:0 auto}
.cf-pricing-tiers__intro{max-width:46rem;margin:0 auto;text-align:center}
.cf-pricing-tiers__title{margin:0;font-family:var(--font-display,inherit);font-size:clamp(2rem,3.6vw,3.25rem);line-height:1.06;font-weight:var(--display-weight,800);letter-spacing:var(--display-tracking,-0.025em);text-transform:var(--display-case,none);text-wrap:balance;color:var(--ink)}
.cf-pricing-tiers__mark{padding:0 .1em;margin:0 -.04em;border-radius:.18em .34em .22em .4em;background:linear-gradient(180deg,transparent 52%,color-mix(in oklch,var(--marker,#fae37c) 88%,transparent) 52%,color-mix(in oklch,var(--marker,#fae37c) 88%,transparent) 94%,transparent 94%);-webkit-box-decoration-break:clone;box-decoration-break:clone}
.cf-pricing-tiers__lead{display:grid;gap:4px;margin:16px 0 0}
.cf-pricing-tiers__lead p{margin:0;font-size:clamp(1.125rem,1.5vw,1.375rem);line-height:1.4;font-weight:500;color:var(--ink);text-wrap:pretty}
.cf-pricing-tiers__punch{margin:12px 0 0;font-family:var(--font-display,inherit);font-size:clamp(1.3125rem,1.8vw,1.625rem);line-height:1.15;font-weight:var(--display-weight,800);letter-spacing:-.01em;color:var(--ink)}
.cf-pricing-tiers__cycle{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:12px;margin-top:32px}
.cf-pricing-tiers__switch{position:relative;display:grid;grid-template-columns:1fr 1fr;min-width:0;margin:0;padding:4px;border:1px solid oklch(from var(--ink) l c h / .1);border-radius:999px;background:color-mix(in oklch,var(--ink) 6%,var(--card))}
.cf-pricing-tiers__thumb{position:absolute;top:4px;bottom:4px;left:4px;width:calc(50% - 4px);border-radius:999px;background:var(--card);box-shadow:var(--shadow-sm,0 1px 1px oklch(from var(--pt-shadow) l c h / .18),0 1px 3px oklch(from var(--pt-shadow) l c h / .14));transition:transform .28s var(--pt-ease)}
.cf-pricing-tiers__switch.is-yearly .cf-pricing-tiers__thumb{transform:translateX(100%)}
.cf-pricing-tiers__seg{position:relative;z-index:1;display:inline-flex;align-items:center;justify-content:center;min-width:8rem;min-height:48px;padding:0 24px;border-radius:999px;font-size:clamp(1.0625rem,1.25vw,1.125rem);font-weight:700;line-height:1.2;color:var(--muted);cursor:pointer;user-select:none;transition:color .16s ease}
.cf-pricing-tiers__seg.is-on,.cf-pricing-tiers__seg:hover{color:var(--ink)}
.cf-pricing-tiers__radio{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer;accent-color:var(--field-focus,var(--accent))}
.cf-pricing-tiers__seg:has(.cf-pricing-tiers__radio:focus-visible){outline:3px solid var(--field-focus,var(--accent));outline-offset:2px}
.cf-pricing-tiers__switch:disabled .cf-pricing-tiers__seg,.cf-pricing-tiers__switch:disabled .cf-pricing-tiers__radio{cursor:not-allowed}
.cf-pricing-tiers__switch:disabled{opacity:.6}
.cf-pricing-tiers__save{display:inline-flex;align-items:center;min-height:28px;padding:4px 12px;border-radius:999px;background:var(--success-soft);color:var(--success);font-size:.875rem;font-weight:800;line-height:1.2;white-space:nowrap}
.cf-pricing-tiers__grid{display:grid;grid-template-columns:minmax(0,1fr);gap:40px;max-width:36rem;margin:56px auto 0}
@media (min-width:720px){
.cf-pricing-tiers__grid--n2{max-width:54rem;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(5,auto);gap:0 24px}
.cf-pricing-tiers__grid--n2 .cf-pricing-tiers__card{display:grid;grid-row:span 5;grid-template-rows:subgrid;row-gap:24px}
.cf-pricing-tiers__grid--n2 .cf-pricing-tiers__ghost{display:block}
}
@media (min-width:1100px){
.cf-pricing-tiers__grid--n3{max-width:1120px;grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:repeat(5,auto);gap:0 24px}
.cf-pricing-tiers__grid--n3 .cf-pricing-tiers__card{display:grid;grid-row:span 5;grid-template-rows:subgrid;row-gap:24px}
.cf-pricing-tiers__grid--n3 .cf-pricing-tiers__ghost{display:block}
}
.cf-pricing-tiers__card{position:relative;display:flex;flex-direction:column;gap:24px;min-width:0;padding:clamp(20px,3vw,32px);background:var(--card);color:var(--ink);border:1px solid var(--card-border,oklch(from var(--ink) l c h / .12));border-radius:var(--card-radius,var(--radius,14px));box-shadow:var(--card-shadow,var(--shadow-md,0 1px 2px oklch(from var(--pt-shadow) l c h / .22),0 4px 10px -2px oklch(from var(--pt-shadow) l c h / .2)));animation:cf-pt-rise .45s var(--pt-ease) both}
.cf-pricing-tiers__card.is-featured{padding-top:calc(clamp(20px,3vw,32px) + 8px);border:2px solid color-mix(in oklch,var(--accent-fill,var(--accent)) 72%,var(--card));box-shadow:var(--shadow-lg,0 2px 4px oklch(from var(--pt-shadow) l c h / .22),0 12px 24px -8px oklch(from var(--pt-shadow) l c h / .32))}
.cf-pricing-tiers__flag{position:absolute;top:0;left:50%;display:inline-flex;align-items:center;gap:8px;min-height:32px;padding:4px 14px;border-radius:999px;background:var(--accent-fill,var(--accent));color:var(--accent-fill-ink,var(--card));font-size:.875rem;font-weight:800;line-height:1.2;letter-spacing:.06em;text-transform:uppercase;white-space:nowrap;box-shadow:var(--shadow-sm,0 1px 1px oklch(from var(--pt-shadow) l c h / .18),0 1px 3px oklch(from var(--pt-shadow) l c h / .14));transform:translate(-50%,-50%);animation:cf-pt-pop .3s var(--pt-ease) .2s both}
.cf-pricing-tiers__head{min-width:0}
.cf-pricing-tiers__name{margin:0;font-family:var(--font-display,inherit);font-size:clamp(1.3125rem,1.8vw,1.625rem);line-height:1.15;font-weight:var(--display-weight,800);letter-spacing:-.01em;text-wrap:balance;color:var(--ink)}
.cf-pricing-tiers__who{margin:8px 0 0;font-size:clamp(1.0625rem,1.25vw,1.125rem);line-height:1.5;color:var(--muted);text-wrap:pretty}
.cf-pricing-tiers__well{display:flex;flex-direction:column;justify-content:center;padding:20px;border-radius:min(10px,var(--card-radius,var(--radius,14px)));background:color-mix(in oklch,var(--ink) 4%,var(--card))}
.cf-pricing-tiers__card.is-featured .cf-pricing-tiers__well{background:color-mix(in oklch,var(--accent-fill,var(--accent)) 9%,var(--card))}
.cf-pricing-tiers__well.is-empty{padding:0;background:none}
.cf-pricing-tiers__swap{animation:cf-pt-rise .35s var(--pt-ease) both}
.cf-pricing-tiers__regular{margin:0 0 12px;font-family:var(--font-body,inherit);font-size:clamp(1.0625rem,1.25vw,1.125rem);line-height:1.2;font-weight:700;color:var(--muted);font-variant-numeric:tabular-nums}
.cf-pricing-tiers__regular del{text-decoration:line-through;text-decoration-color:var(--danger);text-decoration-thickness:2px}
.cf-pricing-tiers__ghost{display:none;visibility:hidden}
.cf-pricing-tiers__amount{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 8px;margin:0}
.cf-pricing-tiers__amount strong{font-family:var(--font-display,inherit);font-size:clamp(2.5rem,4.2vw,3.75rem);line-height:1;font-weight:var(--display-weight,800);letter-spacing:-.03em;font-variant-numeric:tabular-nums;color:var(--ink)}
.cf-pricing-tiers__period{font-size:clamp(1.0625rem,1.25vw,1.125rem);line-height:1.2;font-weight:700;color:var(--muted)}
.cf-pricing-tiers__price-note{margin:12px 0 0;font-size:.9375rem;line-height:1.4;font-weight:600;color:var(--muted);text-wrap:pretty}
.cf-pricing-tiers__body{min-width:0}
.cf-pricing-tiers__plus{margin:0 0 12px;font-size:.9375rem;line-height:1.4;font-weight:800;color:var(--ink)}
.cf-pricing-tiers__list{display:grid;gap:12px;margin:0;padding:0;list-style:none}
.cf-pricing-tiers__item{display:grid;grid-template-columns:24px minmax(0,1fr);gap:12px;align-items:start;font-size:clamp(1.0625rem,1.25vw,1.125rem);line-height:1.4;color:var(--ink);text-wrap:pretty}
.cf-pricing-tiers__tick{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;border-radius:999px;background:var(--success);color:var(--success-ink,#fff)}
.cf-pricing-tiers__more{display:none;align-items:center;gap:8px;min-height:44px;margin-top:8px;padding:0;border:0;border-radius:min(4px,var(--button-radius,var(--radius,4px)));background:none;font:inherit;font-size:.9375rem;font-weight:700;line-height:1.4;color:var(--link,var(--accent));text-decoration:underline;text-decoration-color:oklch(from var(--link,var(--accent)) l c h / .45);text-underline-offset:.18em;cursor:pointer}
.cf-pricing-tiers__more:hover{color:oklch(from var(--link,var(--accent)) calc(l - .08) c h);text-decoration-color:currentColor}
.cf-pricing-tiers__more:focus-visible{outline:3px solid var(--field-focus,var(--accent));outline-offset:2px}
.cf-pricing-tiers__more svg{transition:transform .2s ease}
.cf-pricing-tiers__more[aria-expanded="true"] svg{transform:rotate(180deg)}
@media (max-width:639px){
.cf-pricing-tiers__more{display:inline-flex}
.cf-pricing-tiers__list:not(.is-open) .cf-pricing-tiers__item.is-extra{display:none}
}
.cf-pricing-tiers__action{display:flex;flex-direction:column;justify-content:flex-end;gap:12px;min-width:0}
.cf-pricing-tiers__ask{margin:0;font-family:var(--font-display,inherit);font-size:clamp(1.0625rem,1.25vw,1.125rem);line-height:1.4;font-weight:var(--display-weight,800);color:var(--ink);text-wrap:pretty}
.cf-pricing-tiers__note{margin:-12px 0 0;font-size:.9375rem;line-height:1.4;font-weight:500;color:var(--muted);text-wrap:pretty}
.cf-pricing-tiers__nb{display:inline-block}
.cf-pricing-tiers__btn{--pt-b:var(--button-bg,var(--cta));--pt-b2:var(--button-bg-2,var(--cta-2,var(--button-bg,var(--cta))));display:flex;align-items:center;justify-content:center;width:100%;min-height:64px;margin:0;padding:12px 20px;border:1px solid transparent;border-radius:var(--button-radius,var(--radius,12px));font-family:var(--button-font,var(--font-display,inherit));font-size:1.125rem;line-height:1.15;font-weight:var(--button-weight,800);text-transform:var(--button-case,none);text-align:center;text-wrap:balance;text-decoration:none;cursor:pointer;-webkit-tap-highlight-color:transparent;transition:transform .16s ease,box-shadow .16s ease,background .16s ease,color .16s ease}
.cf-pricing-tiers__btn--primary{color:var(--button-ink,var(--cta-ink));text-shadow:var(--button-text-shadow,none);background:linear-gradient(180deg,oklch(from var(--pt-b) calc(l + .04) c h),oklch(from var(--pt-b2) calc(l - .02) c h));box-shadow:var(--button-shadow,inset 0 1px 0 oklch(from var(--pt-b) calc(l + .14) c h / .7),inset 0 -3px 0 oklch(from var(--pt-b) calc(l - .16) c h),0 1px 2px oklch(from var(--pt-shadow) l c h / .3),0 8px 16px -6px oklch(from var(--pt-shadow) l c h / .42))}
.cf-pricing-tiers__btn--primary:not(:disabled):hover,.cf-pricing-tiers__btn--primary.is-hover{background:linear-gradient(180deg,oklch(from var(--pt-b) calc(l - .01) c h),oklch(from var(--pt-b2) calc(l - .07) c h));box-shadow:inset 0 1px 0 oklch(from var(--pt-b) calc(l + .12) c h / .6),inset 0 -3px 0 oklch(from var(--pt-b) calc(l - .18) c h),0 1px 2px oklch(from var(--pt-shadow) l c h / .32),0 10px 18px -6px oklch(from var(--pt-shadow) l c h / .5);transform:translateY(-1px)}
.cf-pricing-tiers__btn--primary:not(:disabled):active,.cf-pricing-tiers__btn--primary.is-active{background:linear-gradient(180deg,oklch(from var(--pt-b) calc(l - .05) c h),oklch(from var(--pt-b2) calc(l - .1) c h));box-shadow:inset 0 2px 3px oklch(from var(--pt-b) calc(l - .24) c h / .5),inset 0 -2px 0 oklch(from var(--pt-b) calc(l - .16) c h),0 1px 1px oklch(from var(--pt-shadow) l c h / .3);transform:translateY(1px)}
.cf-pricing-tiers__btn--secondary{--pt-s:var(--button-2-bg,var(--secondary));color:var(--button-2-ink,var(--secondary-ink));border-color:var(--button-2-border,transparent);background:var(--pt-s);box-shadow:var(--button-2-shadow, var(--shadow-sm))}
.cf-pricing-tiers__btn--secondary:not(:disabled):hover,.cf-pricing-tiers__btn--secondary.is-hover{background:oklch(from var(--pt-s) calc(l - .04) c h);transform:translateY(-1px)}
.cf-pricing-tiers__btn--secondary:not(:disabled):active,.cf-pricing-tiers__btn--secondary.is-active{background:oklch(from var(--pt-s) calc(l - .07) c h);box-shadow:inset 0 2px 3px oklch(from var(--pt-s) calc(l - .2) c h / .4);transform:translateY(1px)}
.cf-pricing-tiers__btn:focus-visible{outline:3px solid var(--field-focus,var(--accent));outline-offset:3px}
.cf-pricing-tiers__btn:disabled{cursor:not-allowed;background:var(--secondary);color:color-mix(in oklch,var(--secondary-ink) 55%,var(--secondary));text-shadow:none;box-shadow:none;transform:none}
.cf-pricing-tiers__promise{max-width:46rem;margin:40px auto 0;font-size:.9375rem;line-height:1.4;font-weight:600;text-align:center;color:var(--muted);text-wrap:pretty}
.cf-pricing-tiers__promise svg{display:inline-block;vertical-align:-.2em;margin-inline-end:.4em;color:var(--success)}
.cf-pricing-tiers__sr{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
@keyframes cf-pt-rise{from{opacity:.82;transform:translateY(8px)}}
@keyframes cf-pt-pop{from{transform:translate(-50%,-50%) scale(.9)}}
@media (prefers-reduced-motion:reduce){
.cf-pricing-tiers .cf-pricing-tiers__card,.cf-pricing-tiers .cf-pricing-tiers__flag,.cf-pricing-tiers .cf-pricing-tiers__swap{animation:none}
.cf-pricing-tiers .cf-pricing-tiers__thumb,.cf-pricing-tiers .cf-pricing-tiers__btn,.cf-pricing-tiers .cf-pricing-tiers__seg,.cf-pricing-tiers .cf-pricing-tiers__more svg{transition:none}
.cf-pricing-tiers .cf-pricing-tiers__btn:not(:disabled):hover,.cf-pricing-tiers .cf-pricing-tiers__btn:not(:disabled):active,.cf-pricing-tiers .cf-pricing-tiers__btn.is-hover,.cf-pricing-tiers .cf-pricing-tiers__btn.is-active{transform:none}
}
`;
pieces/content/pricing-tiers/specimen.tsx 72 lines
import React from "react";
import defaults from "../../studio-defaults.json";
import { PricingTiers, type PricingTiersProps } from "../pricing-tiers";
export const states = ["default", "hover", "active", "disabled"];
const s = defaults.sample;
export default function PricingTiersSpecimen({ state = "default" }: { state?: PricingTiersProps["state"] }) {
return (
<PricingTiers
state={state}
defaultCycle="yearly"
yearlyBadge="2 months free"
reassurance={`Every plan comes with our ${s.guarantee}.`}
plans={[
{
id: "starter",
name: "Starter Kit",
forWho: "For you if you want to plan and write your first funnel yourself.",
price: { amount: s.price, regular: s.regularPrice, note: s.note },
items: [
...s.items.map((item) => item.name),
"Printable one-page funnel map",
"Headline and offer prompts",
"Free updates to the kit",
],
ask: "Just want the plan and the pages?",
actionLabel: "Send me the kit",
actionNote: s.sublabel,
},
{
id: "builder",
name: "Builder Membership",
forWho: "For you if you want templates and a live build call every month.",
monthly: { amount: "$29", period: "/month", note: "Billed monthly" },
yearly: { amount: "$290", period: "/year", regular: "$348", note: "Billed once a year \u00b7 2 months free" },
includesFrom: "Starter Kit",
items: [
"Done-for-you funnel page templates",
"A new funnel template every month",
"Monthly live build call",
"Recordings of every call",
"Copy feedback in the member forum",
],
ask: "Want new templates and a live call every month?",
actionLabel: "Yes, show me how",
actionNote: "Secure checkout \u00b7 Instant member access",
recommended: true,
},
{
id: "coaching",
name: "Coaching Circle",
forWho: "For you if you want a coach checking every step before you launch.",
monthly: { amount: "$99", period: "/month", note: "Billed monthly" },
yearly: { amount: "$990", period: "/year", regular: "$1,188", note: "Billed once a year \u00b7 2 months free" },
includesFrom: "Builder",
items: [
"Weekly small-group coaching call",
"A funnel teardown before you launch",
"Private chat with your coach",
"Priority copy reviews",
"Launch-week check-in call",
],
ask: "Want someone checking every step with you?",
actionLabel: "Coach me to launch",
actionNote: "Secure checkout \u00b7 Instant member access",
},
]}
/>
);
}
| Name | Type | Details |
|---|---|---|
headline OptionalPricingTiers |
string |
Default "Ready to map your first funnel?"
|
highlight OptionalPricingTiers |
string |
Default "map your first funnel"
|
lead OptionalPricingTiers |
string[] |
Default DEFAULT_LEAD
|
punch OptionalPricingTiers |
string |
Default "Simple."
|
plans OptionalPricingTiers |
PricingTiersPlan[] |
Default DEFAULT_PLANS
|
cycle OptionalPricingTiers |
PricingTiersCycle |
|
defaultCycle OptionalPricingTiers |
PricingTiersCycle |
Default "monthly"
|
onCycleChange OptionalPricingTiers |
(cycle: PricingTiersCycle) => void |
|
yearlyBadge OptionalPricingTiers |
string |
Default ""
|
reassurance OptionalPricingTiers |
string |
Default ""
|
collapseAfter OptionalPricingTiers |
number |
Default 5
|
copy OptionalPricingTiers |
Partial<PricingTiersCopy> |
|
onAction OptionalPricingTiers |
(plan: PricingTiersPlan, cycle: PricingTiersCycle) => void |
|
state OptionalPricingTiers |
"default" | "hover" | "active" | "disabled" |
Default "default"
|
className OptionalPricingTiers |
string |
Theme roles it reads
Set by the theme bar, a preset or your brand. Colours come from the base tokens (--surface, --ink, --cta…) every piece uses.
--button-bg--button-bg-2--button-case--button-font--button-ink--button-radius--button-shadow--button-text-shadow--button-weight- Main CTA button: background, ink, font, weight, case, radius and shadow.
--button-2-bg--button-2-border--button-2-ink--button-2-shadow- Secondary button.
--card-border--card-radius--card-shadow- Cards and panels: radius, border and shadow.
--display-case--display-tracking--display-weight- Headlines: weight, letter case and tracking.
--field-focus- Form inputs: background, ink, border, radius and focus colour.
--marker- The highlighter colour behind key phrases.
Image slots
Filled from the brand’s images; the specimen ships its own defaults.
This piece reads no image slots.
-
b77916eca54aa689.webp
image/webp · 8.32 KB
-
d435db6662febfcf.webp
image/webp · 10 KB
-
f0a5d3e1e61804ba.webp
image/webp · 11.6 KB