Tool Replacer 1
Tool replacer: crosses out the stack of apps the visitor already pays for, group by group, beside one highlighted offer column that replaces them all, so the price reads as the obvious switch and the eye lands on Add To Cart.
Use it in a prompt
Use content/tool-replacer 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/tool-replacer.tsx. - Import it and pass your copy and images (Props tab):
import { ToolReplacer } from "@/components/funneldna/content/tool-replacer"
It restyles from the theme tokens on any wrapper (Theme tab). The specimen source is a complete working example.
pieces/content/tool-replacer/component.tsx 439 lines
// layout: comparison-columns
// Tool replacer: crosses out the stack of apps the visitor already pays for, group by group, beside one highlighted offer column that replaces them all, so the price reads as the obvious switch and the eye lands on Add To Cart.
import React, { useEffect, useId, useLayoutEffect, useRef, useState } from 'react';
import type { LucideIcon } from 'lucide-react';
import { BellRing, CalendarClock, Check, CreditCard, FileText, ListTodo, NotebookPen, Receipt, RefreshCw, ShieldCheck, ShoppingCart, X } from 'lucide-react';
import { Divider, FX_HOST, Texture } from '../fx/fx';
import linen from '../fx/textures/linen';
type EdgeTone = NonNullable<React.ComponentProps<typeof Divider>['tone']>;
export type ToolReplacerTool = {
name: string;
/** What the tool does for them: shown on hover, focus or tap */
job: string;
/** lucide icon drawn inline beside the name */
icon?: LucideIcon;
};
export type ToolReplacerGroup = {
/** Category the tools belong to, e.g. 'Scheduling' */
label: string;
tools: ToolReplacerTool[];
/** Resting line under the tiles; falls back to copy.toolCount */
caption?: string;
/** What the offer gives instead, ticked in the offer column */
replacement?: string;
};
export type ToolReplacerCopy = {
/** Resting caption per group; {count} is the number of tools */
toolCount: string;
/** Screen-reader note on each struck group; {product} is productName */
replacedBy: string;
separatelyLabel: string;
hereLabel: string;
/** Accessible name of the tick list; {product} is productName */
includedLabel: string;
};
export type ToolReplacerProps = {
headline?: React.ReactNode;
/** Phrase inside a string headline that gets the marker stroke */
highlight?: string;
lead?: React.ReactNode;
groups?: ToolReplacerGroup[];
productName?: string;
/** Slot 'product': transparent product shot at the top of the offer column */
productImage?: string;
productImageAlt?: string;
offerTitle?: React.ReactNode;
/** Italic aside in the founder’s voice */
aside?: React.ReactNode;
currency?: string;
/** Figure only, e.g. '39'; the price block hides without it */
price?: string;
priceNote?: string;
/** Cost of the separate tools, e.g. '$186/month'; from props only */
separately?: string;
/** Cost with the offer, e.g. '$39/month'; from props only */
here?: string;
actionLabel?: string;
/** Price shown inside the button after a hairline */
actionPrice?: string;
href?: string;
onAction?: (event: React.MouseEvent<HTMLElement>) => void;
reassurance?: string;
linkLabel?: string;
/** Soft link under the cost line; hidden without it */
linkHref?: string;
/** Stepped edge handing off to the next section */
edge?: boolean;
edgeTone?: EdgeTone;
copy?: Partial<ToolReplacerCopy>;
state?: 'default' | 'hover' | 'active' | 'disabled';
className?: string;
};
const DEFAULT_GROUPS: ToolReplacerGroup[] = [
{
label: 'To-do apps',
replacement: 'Tasks and reminders',
tools: [
{ name: 'Task list', job: 'Keeps your daily to-dos', icon: ListTodo },
{ name: 'Reminder app', job: 'Nudges you before deadlines', icon: BellRing },
],
},
{
label: 'Scheduling',
replacement: 'Booking with automatic reminders',
tools: [
{ name: 'Booking page', job: 'Lets people pick a time', icon: CalendarClock },
{ name: 'Calendar sync', job: 'Keeps every calendar in step', icon: RefreshCw },
],
},
{
label: 'Note-taking',
replacement: 'Notes and docs in one place',
tools: [
{ name: 'Notes app', job: 'Holds your meeting notes', icon: NotebookPen },
{ name: 'Doc editor', job: 'Writes and shares documents', icon: FileText },
],
},
{
label: 'Billing',
replacement: 'Invoices and card payments',
tools: [
{ name: 'Invoice app', job: 'Sends and tracks invoices', icon: Receipt },
{ name: 'Payment link', job: 'Takes card payments', icon: CreditCard },
],
},
];
const DEFAULT_COPY: ToolReplacerCopy = {
toolCount: '{count} separate apps to pay for',
replacedBy: 'Replaced by {product}',
separatelyLabel: 'Separately:',
hereLabel: 'Here:',
includedLabel: 'What {product} gives you instead',
};
export function ToolReplacer(props: ToolReplacerProps) {
const {
headline = 'Everything you’re juggling, in one place',
highlight = 'in one place',
lead = 'Stop paying for a separate app for every job. Move it all into one login.',
groups = DEFAULT_GROUPS,
productName = 'this app',
productImage,
productImageAlt = '',
offerTitle = 'One login replaces all of it',
aside,
currency = '$',
price,
priceNote,
separately,
here,
actionLabel = 'Add To Cart',
actionPrice,
href,
onAction,
reassurance,
linkLabel = 'See how switching works',
linkHref,
edge = true,
edgeTone = 'band' as EdgeTone,
copy,
state = 'default',
className,
} = props;
const text = { ...DEFAULT_COPY, ...copy };
const uid = useId();
const rootRef = useRef<HTMLElement>(null);
const [motion, setMotion] = useState<'static' | 'armed' | 'drawn'>('static');
const [picked, setPicked] = useState<{ g: number; t: number } | null>(null);
const current = picked ?? (state === 'hover' && groups[0]?.tools[0] ? { g: 0, t: 0 } : null);
const disabled = state === 'disabled';
const ticks = groups.filter((group) => group.replacement);
useIsoLayoutEffect(() => {
const el = rootRef.current;
if (!el || typeof window === 'undefined') return;
const reduce = window.matchMedia ? window.matchMedia('(prefers-reduced-motion: reduce)').matches : false;
if (reduce || typeof IntersectionObserver === 'undefined') return;
setMotion('armed');
const io = new IntersectionObserver(
(entries) => {
if (entries.some((entry) => entry.isIntersecting)) {
setMotion('drawn');
io.disconnect();
}
},
{ threshold: 0.2 },
);
io.observe(el.querySelector('.cf-tool-replacer__groups') ?? el);
return () => io.disconnect();
}, []);
const handleAction = (event: React.MouseEvent<HTMLElement>) => {
if (disabled) {
event.preventDefault();
return;
}
onAction?.(event);
};
const actionInner = (
<>
<ShoppingCart size={20} strokeWidth={2.5} aria-hidden='true' />
<span>{actionLabel}</span>
{actionPrice ? <span className='cf-tool-replacer__btnprice'>{actionPrice}</span> : null}
</>
);
const actionState = state === 'hover' || state === 'active' ? state : undefined;
return (
<section
ref={rootRef}
className={['cf-tool-replacer', className].filter(Boolean).join(' ')}
data-motion={motion}
aria-labelledby={`${uid}-h`}
style={{ ...FX_HOST, ['--tr-edge' as string]: edge ? '56px' : '0px' } as React.CSSProperties}
>
<style>{CSS}</style>
<Texture src={linen} tone='ink' />
<div className='cf-tool-replacer__inner'>
<header className='cf-tool-replacer__head'>
<h2 id={`${uid}-h`} className='cf-tool-replacer__title'>
{renderHeadline(headline, highlight)}
</h2>
{lead ? <p className='cf-tool-replacer__lead'>{lead}</p> : null}
</header>
<div className='cf-tool-replacer__cols'>
<div className='cf-tool-replacer__stack'>
<ul className='cf-tool-replacer__groups'>
{groups.map((group, gi) => {
const on = current && current.g === gi ? group.tools[current.t] : undefined;
const readoutId = `${uid}-r${gi}`;
const delay = `${(Math.min(gi * 0.07, 0.28) + 0.1).toFixed(2)}s`;
return (
<li key={group.label + gi} className='cf-tool-replacer__group'>
<div className='cf-tool-replacer__ghead'>
<h3 className='cf-tool-replacer__glabel'>{group.label}</h3>
<span className='cf-tool-replacer__badge cf-tool-replacer__badge--no' aria-hidden='true'>
<X size={14} strokeWidth={3} />
</span>
</div>
<span className='cf-tool-replacer__sr'>{fill(text.replacedBy, { product: productName })}</span>
<div className='cf-tool-replacer__toolwrap'>
<ul className='cf-tool-replacer__tools'>
{group.tools.map((tool, ti) => {
const Icon = tool.icon;
const isOn = !!current && current.g === gi && current.t === ti;
return (
<li key={tool.name + ti}>
<button
type='button'
className='cf-tool-replacer__tile'
data-on={isOn ? 'true' : 'false'}
aria-describedby={readoutId}
onMouseEnter={() => setPicked({ g: gi, t: ti })}
onMouseLeave={() => setPicked(null)}
onFocus={() => setPicked({ g: gi, t: ti })}
onBlur={() => setPicked(null)}
onClick={() => setPicked({ g: gi, t: ti })}
>
{Icon ? <Icon size={18} strokeWidth={2.5} aria-hidden='true' /> : null}
<span>{tool.name}</span>
</button>
</li>
);
})}
</ul>
<svg
className='cf-tool-replacer__strike'
style={{ ['--d' as string]: delay } as React.CSSProperties}
viewBox='0 0 100 100'
preserveAspectRatio='none'
aria-hidden='true'
focusable='false'
>
<line x1='2' y1='96' x2='98' y2='4' />
</svg>
</div>
<p id={readoutId} className='cf-tool-replacer__readout' data-on={on ? 'true' : 'false'} aria-live='polite'>
{on ? on.job : group.caption ?? fill(text.toolCount, { count: String(group.tools.length) })}
</p>
</li>
);
})}
</ul>
{separately || here ? (
<p className='cf-tool-replacer__cost'>
{separately ? (
<span>
{text.separatelyLabel} <strong>{separately}</strong>
</span>
) : null}
{separately && here ? <span className='cf-tool-replacer__dot' aria-hidden='true' /> : null}
{here ? (
<span className='is-here'>
{text.hereLabel} <strong>{here}</strong>
</span>
) : null}
</p>
) : null}
{linkHref && linkLabel ? (
<a className='cf-tool-replacer__link' href={linkHref}>
{linkLabel}
</a>
) : null}
</div>
<div className='cf-tool-replacer__offer'>
{productImage ? (
<img className='cf-tool-replacer__shot' src={productImage} alt={productImageAlt} width={600} height={450} loading='lazy' />
) : null}
<h3 className='cf-tool-replacer__otitle'>{offerTitle}</h3>
{ticks.length ? (
<ul className='cf-tool-replacer__ticks' aria-label={fill(text.includedLabel, { product: productName })}>
{ticks.map((group, i) => (
<li key={group.label + i}>
<span className='cf-tool-replacer__badge cf-tool-replacer__badge--yes' aria-hidden='true'>
<Check size={14} strokeWidth={3} />
</span>
<span>{group.replacement}</span>
</li>
))}
</ul>
) : null}
{aside ? <p className='cf-tool-replacer__aside'>{aside}</p> : null}
{price ? (
<div className='cf-tool-replacer__price'>
<p className='cf-tool-replacer__fig'>
<span className='cf-tool-replacer__sr'>
{currency}
{price}
</span>
<span className='cf-tool-replacer__cur' aria-hidden='true'>
{currency}
</span>
<span aria-hidden='true'>{price}</span>
</p>
{priceNote ? <p className='cf-tool-replacer__pnote'>{priceNote}</p> : null}
</div>
) : null}
{href && !disabled ? (
<a className='cf-tool-replacer__btn' href={href} data-state={actionState} onClick={handleAction}>
{actionInner}
</a>
) : (
<button type='button' className='cf-tool-replacer__btn' data-state={actionState} disabled={disabled} onClick={handleAction}>
{actionInner}
</button>
)}
{reassurance ? (
<p className='cf-tool-replacer__assure'>
<ShieldCheck size={16} strokeWidth={2.5} aria-hidden='true' />
{reassurance}
</p>
) : null}
</div>
</div>
</div>
{edge ? <Divider shape='step' tone={edgeTone} height={56} /> : null}
</section>
);
}
export default ToolReplacer;
const useIsoLayoutEffect = typeof window !== 'undefined' ? useLayoutEffect : useEffect;
function fill(template: string, vars: Record<string, string>) {
return Object.keys(vars).reduce((out, key) => out.split('{' + key + '}').join(vars[key]), template);
}
function renderHeadline(headline: React.ReactNode, highlight?: string) {
if (typeof headline !== 'string' || !highlight) return headline;
const at = headline.indexOf(highlight);
if (at < 0) return headline;
return (
<>
{headline.slice(0, at)}
<span className='cf-tool-replacer__mark'>{highlight}</span>
{headline.slice(at + highlight.length)}
</>
);
}
const CSS = `
.cf-tool-replacer{position:relative;isolation:isolate;overflow-x:clip;background:var(--surface);color:var(--ink);font-family:var(--font-body);padding:clamp(56px,8vw,112px) clamp(16px,5vw,48px) calc(clamp(64px,8.5vw,120px) + var(--tr-edge,0px))}
.cf-tool-replacer *,.cf-tool-replacer *::before,.cf-tool-replacer *::after{box-sizing:border-box}
.cf-tool-replacer__inner{position:relative;z-index:1;max-width:1120px;margin:0 auto}
.cf-tool-replacer__head{max-width:46rem;margin:0 auto clamp(32px,5vw,56px);text-align:center}
.cf-tool-replacer__title{margin:0;font-family:var(--font-display);font-weight:var(--display-weight,800);letter-spacing:var(--display-tracking,-0.025em);text-transform:var(--display-case,none);font-size:clamp(2rem,3.6vw,3.25rem);line-height:1.06;color:var(--ink);text-wrap:balance}
.cf-tool-replacer__mark{background:linear-gradient(to bottom,transparent 54%,color-mix(in oklch,var(--marker,#fae37c) 55%,transparent) 54%,color-mix(in oklch,var(--marker,#fae37c) 55%,transparent) 94%,transparent 94%);-webkit-box-decoration-break:clone;box-decoration-break:clone;padding:0 .08em;border-radius:.14em .3em .2em .1em}
.cf-tool-replacer__lead{margin:16px auto 0;max-width:60ch;font-size:clamp(1.125rem,1.5vw,1.375rem);line-height:1.4;font-weight:500;color:var(--muted);text-wrap:pretty}
.cf-tool-replacer__cols{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,420px);gap:clamp(32px,5vw,72px);align-items:start}
.cf-tool-replacer__stack{min-width:0}
.cf-tool-replacer__groups{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(12px,1.6vw,16px)}
.cf-tool-replacer__group{display:flex;flex-direction:column;gap:12px;min-width:0;padding:clamp(14px,2vw,20px);border-radius:var(--card-radius,var(--radius,14px));background:color-mix(in oklch,var(--ink) 5%,var(--surface));border:1px solid oklch(from var(--ink) l c h / .08)}
.cf-tool-replacer__ghead{display:flex;align-items:flex-start;justify-content:space-between;gap:8px}
.cf-tool-replacer__glabel{margin:0;font-family:var(--font-display);font-weight:var(--display-weight,800);font-size:1.0625rem;line-height:1.25;letter-spacing:-.01em;text-transform:var(--display-case,none);color:var(--ink);text-wrap:balance;min-width:0}
.cf-tool-replacer__badge{flex:0 0 auto;display:inline-grid;place-items:center;width:24px;height:24px;border-radius:999px;color:var(--badge-glyph,#fff)}
.cf-tool-replacer__badge--no{background:var(--danger)}
.cf-tool-replacer__badge--yes{background:var(--success)}
.cf-tool-replacer__toolwrap{position:relative}
.cf-tool-replacer__tools{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(132px,1fr));gap:8px}
.cf-tool-replacer__tile{display:flex;align-items:center;gap:8px;width:100%;min-height:44px;padding:8px 12px;margin:0;background:var(--card);color:var(--ink);border:1px solid var(--card-border,oklch(from var(--ink) l c h / .12));border-radius:10px;box-shadow:var(--button-2-shadow,var(--shadow-sm,0 1px 2px oklch(from var(--shadow,oklch(.22 .03 260)) l c h / .2)));font-family:var(--font-body);font-size:.875rem;font-weight:700;line-height:1.25;text-align:left;text-wrap:pretty;cursor:help;transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease}
.cf-tool-replacer__tile:active{transform:translateY(0)}
.cf-tool-replacer__tile svg{flex:0 0 auto;color:var(--accent)}
.cf-tool-replacer__tile span{min-width:0}
.cf-tool-replacer__tile:hover,.cf-tool-replacer__tile[data-on=true]{transform:translateY(-2px);box-shadow:var(--shadow-md,0 1px 2px oklch(from var(--shadow,oklch(.22 .03 260)) l c h / .22),0 4px 10px -2px oklch(from var(--shadow,oklch(.22 .03 260)) l c h / .2));border-color:color-mix(in oklch,var(--accent) 45%,var(--card))}
.cf-tool-replacer__tile:focus-visible{outline:3px solid oklch(from var(--field-focus,var(--accent)) l c h / .45);outline-offset:2px}
.cf-tool-replacer__strike{position:absolute;top:-6px;left:-10px;width:calc(100% + 20px);height:calc(100% + 12px);overflow:visible;pointer-events:none;z-index:2}
.cf-tool-replacer__strike line{stroke:var(--danger);stroke-width:4;stroke-linecap:round;vector-effect:non-scaling-stroke}
.cf-tool-replacer[data-motion=armed] .cf-tool-replacer__strike{clip-path:inset(-8px 100% -8px -8px)}
.cf-tool-replacer[data-motion=drawn] .cf-tool-replacer__strike{animation:cf-tr-draw .55s cubic-bezier(.2,.7,.2,1) var(--d,0s) both}
@keyframes cf-tr-draw{from{clip-path:inset(-8px 100% -8px -8px)}to{clip-path:inset(-8px -8px -8px -8px)}}
.cf-tool-replacer__readout{margin:auto 0 0;min-height:2.8em;font-size:.9375rem;line-height:1.4;font-weight:500;color:var(--muted);text-wrap:pretty}
.cf-tool-replacer__readout[data-on=true]{color:var(--ink);font-weight:600}
.cf-tool-replacer__cost{margin:24px 0 0;display:flex;flex-wrap:wrap;justify-content:center;align-items:baseline;gap:4px 14px;font-size:clamp(1.0625rem,1.25vw,1.125rem);line-height:1.4;color:var(--muted);text-align:center}
.cf-tool-replacer__cost span{white-space:nowrap}
.cf-tool-replacer__cost strong{color:var(--ink);font-weight:800;font-variant-numeric:tabular-nums}
.cf-tool-replacer__cost .is-here strong{color:var(--success)}
.cf-tool-replacer__dot{width:5px;height:5px;border-radius:999px;background:oklch(from var(--ink) l c h / .3);align-self:center}
.cf-tool-replacer__link{display:table;margin:12px auto 0;font-size:1rem;font-weight:600;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}
.cf-tool-replacer__link:hover{color:oklch(from var(--link,var(--accent)) calc(l - .08) c h);text-decoration-color:currentColor}
.cf-tool-replacer__link:focus-visible{outline:3px solid oklch(from var(--field-focus,var(--accent)) l c h / .45);outline-offset:3px;border-radius:4px}
.cf-tool-replacer__offer{min-width:0;background:var(--card);color:var(--ink);border-radius:var(--card-radius,var(--radius,14px));border:1px solid color-mix(in oklch,var(--accent) 40%,var(--card));box-shadow:var(--card-shadow,var(--shadow-lg,0 2px 4px oklch(from var(--shadow,oklch(.22 .03 260)) l c h / .22),0 12px 24px -8px oklch(from var(--shadow,oklch(.22 .03 260)) l c h / .32)));padding:clamp(20px,3vw,32px)}
.cf-tool-replacer__shot{display:block;width:100%;max-width:240px;height:auto;max-height:150px;object-fit:contain;margin:0 auto 16px;filter:drop-shadow(0 2px 3px oklch(from var(--shadow,oklch(.22 .03 260)) l c h / .3)) drop-shadow(0 12px 14px oklch(from var(--shadow,oklch(.22 .03 260)) l c h / .2))}
.cf-tool-replacer__otitle{margin:0;font-family:var(--font-display);font-weight:var(--display-weight,800);font-size:clamp(1.3125rem,1.8vw,1.625rem);line-height:1.15;letter-spacing:-.01em;text-transform:var(--display-case,none);color:var(--ink);text-wrap:balance}
.cf-tool-replacer__ticks{list-style:none;margin:16px 0 0;padding:0;display:grid;gap:10px}
.cf-tool-replacer__ticks li{display:flex;align-items:flex-start;gap:10px;font-size:1rem;font-weight:600;line-height:1.4;color:var(--ink);text-wrap:pretty}
.cf-tool-replacer__ticks .cf-tool-replacer__badge{margin-top:-1px}
.cf-tool-replacer__aside{margin:16px 0 0;font-size:1rem;line-height:1.5;font-style:italic;color:var(--muted);text-wrap:pretty}
.cf-tool-replacer__price{margin-top:24px;display:flex;flex-wrap:wrap;align-items:flex-end;gap:8px 16px}
.cf-tool-replacer__fig{position:relative;margin:0;display:flex;align-items:flex-start;font-family:var(--font-display);font-weight:var(--display-weight,800);font-size:clamp(2.5rem,4.2vw,3.75rem);line-height:1;letter-spacing:-.03em;font-variant-numeric:tabular-nums;color:var(--ink)}
.cf-tool-replacer__cur{font-size:.45em;line-height:1;letter-spacing:0;margin:.1em .06em 0 0}
.cf-tool-replacer__pnote{flex:1 1 150px;margin:0;padding-bottom:.3em;font-size:.9375rem;line-height:1.4;font-weight:600;color:var(--muted);text-wrap:pretty}
.cf-tool-replacer__btn{margin-top:24px;width:100%;min-height:64px;padding:0 24px;display:inline-flex;align-items:center;justify-content:center;gap:12px;border:0;border-radius:var(--button-radius,var(--radius,12px));background:linear-gradient(oklch(from var(--button-bg,var(--cta)) calc(l + .04) c h),oklch(from var(--button-bg-2,var(--cta-2)) calc(l - .02) c h));color:var(--button-ink,var(--cta-ink));font-family:var(--button-font,var(--font-display));font-weight:var(--button-weight,800);text-transform:var(--button-case,none);font-size:clamp(1.125rem,1.55vw,1.375rem);line-height:1.15;white-space:nowrap;text-decoration:none;text-shadow:var(--button-text-shadow,none);box-shadow:var(--button-shadow,inset 0 1px 0 oklch(from var(--button-bg,var(--cta)) calc(l + .14) c h / .7),inset 0 -3px 0 oklch(from var(--button-bg,var(--cta)) calc(l - .16) c h),0 1px 2px oklch(from var(--shadow,oklch(.22 .03 260)) l c h / .3),0 8px 16px -6px oklch(from var(--shadow,oklch(.22 .03 260)) l c h / .45));cursor:pointer;transition:transform .16s ease,box-shadow .16s ease,background .16s ease}
.cf-tool-replacer__btn svg{flex:0 0 auto}
.cf-tool-replacer__btnprice{display:inline-flex;align-items:center;min-height:32px;padding:4px 12px;border-radius:999px;background:oklch(from var(--button-ink,var(--cta-ink)) l c h / .16);box-shadow:inset 0 0 0 1px oklch(from var(--button-ink,var(--cta-ink)) l c h / .22);font-size:.9em;line-height:1;font-variant-numeric:tabular-nums}
.cf-tool-replacer__btn:hover:not(:disabled),.cf-tool-replacer__btn[data-state=hover]{background:linear-gradient(oklch(from var(--button-bg,var(--cta)) calc(l - .01) c h),oklch(from var(--button-bg-2,var(--cta-2)) calc(l - .07) c h));box-shadow:var(--button-shadow,inset 0 1px 0 oklch(from var(--button-bg,var(--cta)) calc(l + .12) c h / .7),inset 0 -3px 0 oklch(from var(--button-bg,var(--cta)) calc(l - .2) c h),0 1px 2px oklch(from var(--shadow,oklch(.22 .03 260)) l c h / .34),0 10px 18px -6px oklch(from var(--shadow,oklch(.22 .03 260)) l c h / .55))}
.cf-tool-replacer__btn:active:not(:disabled),.cf-tool-replacer__btn[data-state=active]{transform:translateY(1px);background:linear-gradient(oklch(from var(--button-bg,var(--cta)) calc(l - .04) c h),oklch(from var(--button-bg-2,var(--cta-2)) calc(l - .08) c h));box-shadow:inset 0 2px 4px oklch(from var(--button-bg,var(--cta)) calc(l - .22) c h / .55),inset 0 -2px 0 oklch(from var(--button-bg,var(--cta)) calc(l - .16) c h),0 1px 1px oklch(from var(--shadow,oklch(.22 .03 260)) l c h / .3)}
.cf-tool-replacer__btn:focus-visible{outline:3px solid oklch(from var(--field-focus,var(--accent)) l c h / .5);outline-offset:3px}
.cf-tool-replacer__btn:disabled{cursor:not-allowed;background:var(--secondary);color:var(--secondary-ink);text-shadow:none;box-shadow:var(--shadow-sm,0 1px 2px oklch(from var(--shadow,oklch(.22 .03 260)) l c h / .2));transform:none}
.cf-tool-replacer__btn:disabled .cf-tool-replacer__btnprice{background:oklch(from var(--secondary-ink) l c h / .08);box-shadow:inset 0 0 0 1px oklch(from var(--secondary-ink) l c h / .2)}
.cf-tool-replacer__assure{margin:12px 0 0;text-align:center;font-size:.9375rem;line-height:1.4;font-weight:600;color:var(--muted);text-wrap:pretty}
.cf-tool-replacer__assure svg{display:inline-block;vertical-align:-.15em;margin-inline-end:.4em;color:var(--success)}
.cf-tool-replacer__sr{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
@media (min-width:961px){.cf-tool-replacer__cols{align-items:stretch}.cf-tool-replacer__offer{position:sticky;top:24px;align-self:start}.cf-tool-replacer__stack{display:flex;flex-direction:column}.cf-tool-replacer__groups{flex:1 1 auto;grid-auto-rows:1fr}}
@media (max-width:960px){.cf-tool-replacer__cols{grid-template-columns:minmax(0,1fr)}.cf-tool-replacer__offer{width:100%;max-width:560px;margin:0 auto}}
@media (max-width:480px){.cf-tool-replacer__cost{flex-direction:column;align-items:center}.cf-tool-replacer__dot{display:none}.cf-tool-replacer__btn{padding:0 20px}}
@media (max-width:359px){.cf-tool-replacer__groups{grid-template-columns:minmax(0,1fr)}.cf-tool-replacer__btn>svg{display:none}}
@media (prefers-reduced-motion:reduce){.cf-tool-replacer[data-motion] .cf-tool-replacer__strike{animation:none;clip-path:none}.cf-tool-replacer__tile,.cf-tool-replacer__btn{transition:none}.cf-tool-replacer__tile:hover,.cf-tool-replacer__tile[data-on=true]{transform:none}}
`;
pieces/content/tool-replacer/specimen.tsx 72 lines
import __studioImageeab9bdff from "../assets/b7edbf816774a429.webp";
// Specimen: Orbit, a fictional all-in-one practice app for therapists, striking out the ten tools a solo practice pays for.
import { CalendarDays, ClipboardList, CreditCard, MessageSquareText, MessagesSquare, NotebookPen, PenLine, Receipt, RefreshCw, Video } from 'lucide-react';
import { ToolReplacer } from '../tool-replacer';
import type { ToolReplacerProps } from '../tool-replacer';
import defaults from '../../studio-defaults.json';
import { slot } from '../../slots';
export const states = ['default', 'hover', 'active', 'disabled'];
export default function ToolReplacerSpecimen({ state }: { state?: ToolReplacerProps['state'] }) {
return (
<ToolReplacer
state={state}
headline='Everything you’re juggling, in one place'
highlight='in one place'
lead='Booking, notes, billing and video sessions in one calm app built for therapists.'
productName='Orbit'
productImage={slot('product', __studioImageeab9bdff)}
productImageAlt='Orbit open on a tablet, showing a week of client sessions'
groups={[
{
label: 'Scheduling',
replacement: 'Online booking with session reminders',
tools: [
{ name: 'Booking page', job: 'Lets clients pick a session time', icon: CalendarDays },
{ name: 'Reminder texts', job: 'Texts clients before each session', icon: MessageSquareText },
{ name: 'Calendar sync', job: 'Keeps your diary in step', icon: RefreshCw },
],
},
{
label: 'Session notes',
replacement: 'Private notes, intake forms and e-sign',
tools: [
{ name: 'Notes app', job: 'Stores your progress notes', icon: NotebookPen },
{ name: 'Intake forms', job: 'Collects history before session one', icon: ClipboardList },
{ name: 'E-signature', job: 'Gets consent forms signed', icon: PenLine },
],
},
{
label: 'Billing',
replacement: 'Invoices and card payments',
tools: [
{ name: 'Invoicing app', job: 'Bills clients after each session', icon: Receipt },
{ name: 'Card payments', job: 'Takes payment at checkout', icon: CreditCard },
],
},
{
label: 'Telehealth',
replacement: 'Video sessions and secure messages',
tools: [
{ name: 'Video calls', job: 'Runs your online sessions', icon: Video },
{ name: 'Secure chat', job: 'Lets clients reach you safely', icon: MessagesSquare },
],
},
]}
copy={{ hereLabel: 'With Orbit:' }}
separately='$186/month'
here='$39/month'
linkLabel='See how switching works'
linkHref='#how-switching-works'
offerTitle='Orbit replaces all ten'
aside='(I ran my own practice on all ten of these. Never again.)'
currency='$'
price='39'
priceNote='per month · all ten tools included'
actionLabel='Add To Cart'
actionPrice='$39/mo'
reassurance={`Cancel anytime · ${defaults.sample.guarantee}`}
/>
);
}
| Name | Type | Details |
|---|---|---|
headline OptionalToolReplacer |
React.ReactNode |
|
highlight OptionalToolReplacer |
string |
|
lead OptionalToolReplacer |
React.ReactNode |
|
groups OptionalToolReplacer |
ToolReplacerGroup[] |
|
productName OptionalToolReplacer |
string |
|
productImage OptionalToolReplacer |
string |
|
productImageAlt OptionalToolReplacer |
string |
|
offerTitle OptionalToolReplacer |
React.ReactNode |
|
aside OptionalToolReplacer |
React.ReactNode |
|
currency OptionalToolReplacer |
string |
|
price OptionalToolReplacer |
string |
|
priceNote OptionalToolReplacer |
string |
|
separately OptionalToolReplacer |
string |
|
here OptionalToolReplacer |
string |
|
actionLabel OptionalToolReplacer |
string |
|
actionPrice OptionalToolReplacer |
string |
|
href OptionalToolReplacer |
string |
|
onAction OptionalToolReplacer |
(event: React.MouseEvent<HTMLElement>) => void |
|
reassurance OptionalToolReplacer |
string |
|
linkLabel OptionalToolReplacer |
string |
|
linkHref OptionalToolReplacer |
string |
|
edge OptionalToolReplacer |
boolean |
|
edgeTone OptionalToolReplacer |
EdgeTone |
|
copy OptionalToolReplacer |
Partial<ToolReplacerCopy> |
|
state OptionalToolReplacer |
'default' | 'hover' | 'active' | 'disabled' |
|
className OptionalToolReplacer |
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-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.
product- The main product shot or cover (ebook, kit, bottle).
-
2c539f422023a290.webp
image/webp · 115 KB
-
b77916eca54aa689.webp
image/webp · 8.32 KB
-
b7edbf816774a429.webp
image/webp · 77.9 KB
-
d435db6662febfcf.webp
image/webp · 10 KB
-
f0a5d3e1e61804ba.webp
image/webp · 11.6 KB