Stat Callout 1
One real, sourced number set huge, one line on what it measures and where it comes from; a cold or warm proof ad for any front-end page.
The sample's post copy
Sample brand, fictional copy: the pattern to follow, written for the person's real offer.
- Platform 4 characters
- meta
- Primary text 188 characters
- 9 in 10 new patients at Tamsett Physio are seen within 48 hours.
That figure comes from our own clinic bookings, Jan–Jun 2026.
Book your assessment online and choose a time that suits you. - Headline 24 characters
- Book a physio assessment
- Description 28 characters
- 9 in 10 seen within 48 hours
- Button 8 characters
- Book Now
What it is for
- Angle
- proof
- Temperature
- cold, warm
- Archetype
- stat callout
- Sends people to
- any front end page
- Words on the image
- At most 20
Use it in a prompt
Make the ads/stat-callout ad from the FunnelDNA library in my brand, at every size (square, portrait, story, landscape), with post copy written the way the sample's is. Follow the ads skill. Ask me for the offer, images and facts 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/ads/stat-callout.tsx. - Import it and pass your copy and images (Props tab):
import { StatCallout } from "@/components/funneldna/ads/stat-callout"
It restyles from the theme tokens on any wrapper (Theme tab). The specimen source is a complete working example.
pieces/ads/stat-callout/component.tsx 238 lines
// archetype: stat-callout
// When to use: One real, sourced number set huge, one line on what it measures and where it comes from; a cold or warm proof ad for any front-end page.
import * as React from "react"
import { AdFrame, AdHeadline, Cue, LogoMark, type AdFormat } from "../fx/ad-kit"
import { Glow, Texture } from "../fx/fx"
import halftone from "../fx/textures/halftone"
/**
* Stat callout: one supplied number is the whole poster. It is set as display type with tabular figures. Its unit is
* smaller, and a joining word ("in", "of") is smaller still, both in the band ink. It sits on a flat --band field with a
* low halftone texture and one pool of accent light behind the figures. Under the number is the one line that says
* what it measures (the headline) and a small source line.
* Square: logo top-left, then the number on one line across the width, the measure and source tight under it, and the
* cue at the foot. Portrait and story centre the stack and break the number onto two lines when that sets it larger
* ("9 in" / "10"); story keeps everything between its safe lines. Landscape: the number on the left at full height;
* logo top-right, then the measure, source and cue in the right column.
* Fit: the figure size is chosen per format from the column width and the height the lines leave. Digits are
* estimated at a heavy display face's width, and the number carries a reserve of .26em above it (and below it in
* landscape) for the font's ascender box, so its glyph boxes stay inside the frame, 40px or more from every edge, and
* below the story's top safe line under any theme face.
* Contrast: the figures' tint is the accent fill blended into the band ink (64% band ink), so the accent hue reads
* while the figures keep clear of 4.5:1 on the band under every theme, including mid-tone accent fills.
* Truth: the number renders only with its measure and its source. If any of the three is empty, the piece falls back
* to a plain headline layout, so a stat ad never ships an unsourced number.
*/
export type StatCalloutProps = {
format?: AdFormat
/** The supplied number, e.g. "9 in 10", "87%", "$2.4M". Digits are set huge; units and joining words smaller. Empty: fallback layout. */
stat?: string
/** What the number measures, one line (the headline under the number). Empty: fallback layout. */
measure?: string
/** Where the number comes from, e.g. "Source: 2026 customer survey, 412 replies". Empty: fallback layout. */
source?: string
/** Headline for the fallback layout (no sourced stat), 12 words or fewer; a newline forces a break. */
headline?: string
/** One phrase inside the headline (or measure) set in the highlight tint. Empty: none. */
highlight?: string
/** The page button's words. */
cue?: string
/** One short line under the cue for the offer terms. Empty: none. */
cueNote?: string
/** Logo slot image; empty sets `brand` as a wordmark. */
logo?: string
brand?: string
}
export const formats: AdFormat[] = ["square", "portrait", "story", "landscape"]
export const lead = "portrait" satisfies AdFormat
export const wordCap = 20
/** Size of a unit (%, $, M, x) and of a joining phrase (" in ", " of ") against the figures (em; matches CSS). */
const UNIT = 0.44
const JOIN = 0.34
/** Line height of the figures (matches CSS). */
const LH = 0.8
/** Reserve for the font's ascender/descender box beyond the 0.8 line box, per side (em; matches the CSS padding). */
const OVER = 0.26
/** Width headroom on the figure estimate. */
const SAFE = 1.03
/**
* The number's room per format, mirroring the CSS below.
* - w: the column the number sets in (px). h: the height the number and (when `under`) its lines share, after the
* logo and the cue. max: the largest figure size.
* - stack: the number may break onto two lines before its last figure when that sets it larger.
* - under: the measure and source sit under the number (false: beside it, and the number reserves both sides).
* - claim / source: their sizes. gap: the number-to-claim and claim-to-source gaps plus slack for real wrapping.
*/
type Fit = { w: number; h: number; max: number; stack: boolean; under: boolean; claim: number; source: number; gap: number }
const FIT: Record<AdFormat, Fit> = {
square: { w: 952, h: 793, max: 460, stack: false, under: true, claim: 88, source: 30, gap: 92 },
portrait: { w: 952, h: 1063, max: 480, stack: true, under: true, claim: 84, source: 30, gap: 96 },
story: { w: 952, h: 1105, max: 620, stack: true, under: true, claim: 84, source: 32, gap: 104 },
landscape: { w: 520, h: 548, max: 380, stack: true, under: false, claim: 64, source: 24, gap: 0 },
thumbnail: { w: 560, h: 640, max: 400, stack: true, under: false, claim: 64, source: 24, gap: 0 },
}
/** Where the light pool sits: behind the figures in each composition. */
const GLOW: Record<AdFormat, string> = {
square: "36% 34%", portrait: "50% 39%", story: "50% 40%", landscape: "20% 50%", thumbnail: "22% 50%",
}
export function StatCallout({
format = "portrait",
stat = "",
measure = "",
source = "",
headline = "Say the one result your page promises, in plain words.",
highlight = "",
cue = "Learn more",
cueNote = "",
logo = "",
brand = "",
}: StatCalloutProps) {
const fit = FIT[format] || FIT.square
const shown = Boolean(stat.trim() && measure.trim() && source.trim())
const text = shown ? measure : headline
let figure: React.ReactNode = null
if (shown) {
const parts = parseStat(stat)
const below = fit.under
? linesOf(measure, fit.claim, fit.w, 0.58) * fit.claim * 1.04 + linesOf(source, fit.source, fit.w, 0.54) * fit.source * 1.25 + fit.gap
: 0
const room = Math.max(fit.h - below, fit.h * 0.3)
const single = fitStat([parts], fit, room)
const split = fit.stack ? splitStat(parts) : null
const stacked = split ? fitStat(split, fit, room) : 0
const rows = split && stacked > single ? split : null
const style = { "--stat-fs": `${Math.max(single, stacked)}px` } as React.CSSProperties
figure = (
<p className="fd-stat__num" style={style}>
{rows
? rows.map((row, i) => <span key={i} className="fd-stat__row">{row.map(renderPart)}</span>)
: parts.map(renderPart)}
</p>
)
}
return (
<AdFrame format={format} className={shown ? "fd-stat" : "fd-stat fd-stat--plain"}>
<style href="fd-stat" precedence="default">{CSS}</style>
<Texture src={halftone} tone="band-ink" opacity={0.1} />
<Glow tone="accent-fill" at={GLOW[format] || GLOW.square} size="56%" strength={0.42} />
<div className="fd-stat__body">
<LogoMark src={logo} brand={brand} className="fd-stat__logo" />
{figure ? <div className="fd-stat__lead">{figure}</div> : null}
<div className="fd-stat__lines">
<AdHeadline as="h1" text={text} highlight={highlight} mark="ink" className="fd-stat__claim" />
{shown ? <p className="fd-stat__source">{source}</p> : null}
</div>
<Cue note={cueNote} className="fd-stat__cue">{cue}</Cue>
</div>
</AdFrame>
)
}
type Part = { text: string; big: boolean; raise: boolean; join: boolean }
/** Splits a stat into figure runs (big) and the units or joining words around them. */
function parseStat(stat: string): Part[] {
const raw = stat.replace(/\s+/g, " ").trim().split(/(\d[\d.,]*)/).filter(Boolean)
const last = raw.length - 1
return raw.map((text, i) => {
const big = /^\d/.test(text)
const word = !big && /\p{L}/u.test(text)
return { text, big, raise: !big && !word && (i === 0 || i === last), join: word && /\s/.test(text) }
})
}
/** Two rows, broken after the joining phrase before the last figure ("9 in" / "10"); null when the stat has none. */
function splitStat(parts: Part[]): Part[][] | null {
let at = -1
parts.forEach((p, i) => { if (p.big) at = i })
if (at < 1 || !parts[at - 1].join) return null
const top = parts.slice(0, at).map((p, i, a) => (i === a.length - 1 ? { ...p, text: p.text.trimEnd() } : p))
return [top, parts.slice(at)]
}
function renderPart(p: Part, i: number) {
if (p.big) return <React.Fragment key={i}>{p.text}</React.Fragment>
return (
<span key={i} className="fd-stat__unit" data-sym={p.raise ? "" : undefined} data-join={p.join ? "" : undefined}>{p.text}</span>
)
}
/**
* The largest figure size whose widest row fits the column and whose rows, plus the ascender reserve (top only when
* the lines sit under the number, both sides when it stands alone), fit the room left by the lines.
*/
function fitStat(rows: Part[][], fit: Fit, room: number): number {
const wide = Math.max(...rows.map((row) => row.reduce((w, p) => w + partEm(p), 0)))
const tall = rows.length * LH + OVER * (fit.under ? 1 : 2)
return Math.floor(Math.min(fit.max, fit.w / (wide * SAFE), room / tall))
}
/** Advance widths in em, set for a heavy display face so wide figures never outrun the column. */
const charEm = (ch: string) =>
/\d/.test(ch) ? 0.7 : ch === " " ? 0.28 : /[.,]/.test(ch) ? 0.3 : /[ijlftr]/.test(ch) ? 0.34 : 0.62
/** Width in em with the CSS tracking applied: -0.045em on figures, -0.01em on units. */
const textEm = (t: string, track: number) => [...t].reduce((w, ch) => w + charEm(ch) - track, 0)
const partEm = (p: Part) => (p.big ? textEm(p.text, 0.045) : textEm(p.text, 0.01) * (p.join ? JOIN : UNIT))
const linesOf = (t: string, fs: number, width: number, k: number) => Math.max(1, Math.ceil((t.length * k * fs) / width))
const CSS = `
.fd-stat{--stat-ink:color-mix(in oklab,var(--accent-fill,var(--accent)) 36%,var(--band-ink));--stat-note:color-mix(in oklch,var(--band-ink) 80%,var(--band));background:var(--band);color:var(--band-ink)}
.fd-stat__body{position:absolute;display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(0,1fr) auto auto minmax(0,1fr) auto;grid-template-areas:"logo" "." "num" "lines" "." "cue";justify-items:start;min-width:0;min-height:0}
.fd-stat__logo{grid-area:logo;align-self:start;color:var(--band-ink)}
.fd-stat__lead{grid-area:num;display:flex;min-width:0;max-width:100%}
.fd-stat__num{margin:0;padding-top:.26em;font-family:var(--font-display);font-weight:var(--display-weight,800);font-size:var(--stat-fs,320px);line-height:.8;letter-spacing:-0.045em;color:var(--stat-ink);font-variant-numeric:tabular-nums lining-nums;white-space:nowrap}
.fd-stat__row{display:block}
.fd-stat__unit{font-size:.44em;letter-spacing:-0.01em;color:var(--band-ink)}
.fd-stat__unit[data-join]{font-size:.34em}
.fd-stat__unit[data-sym]{vertical-align:.9em}
.fd-stat__lines{grid-area:lines;display:flex;flex-direction:column;align-items:flex-start;min-width:0}
.fd-stat__claim{color:var(--band-ink);line-height:1.04}
.fd-stat__source{margin:0;font-family:var(--font-body);font-weight:500;line-height:1.25;color:var(--stat-note);text-wrap:pretty}
.fd-stat .fd-stat__cue{grid-area:cue;min-width:0;max-width:100%;white-space:normal;text-align:center;text-wrap:balance}
.fd-stat[data-format="square"] .fd-stat__body{inset:64px}
.fd-stat[data-format="square"] .fd-stat__lead+.fd-stat__lines{margin-top:28px}
.fd-stat[data-format="square"] .fd-stat__lines{gap:24px}
.fd-stat[data-format="square"] .fd-stat__claim{font-size:88px}
.fd-stat[data-format="square"] .fd-stat__source{font-size:30px}
.fd-stat[data-format="square"] .fd-stat__cue{--cue-fs:44px}
.fd-stat--plain[data-format="square"] .fd-stat__claim{font-size:112px}
.fd-stat[data-format="portrait"] .fd-stat__body{inset:64px;justify-items:center;text-align:center}
.fd-stat[data-format="portrait"] .fd-stat__logo{justify-self:start}
.fd-stat[data-format="portrait"] .fd-stat__lead+.fd-stat__lines{margin-top:32px}
.fd-stat[data-format="portrait"] .fd-stat__lines{gap:24px;align-items:center}
.fd-stat[data-format="portrait"] .fd-stat__claim{font-size:84px}
.fd-stat[data-format="portrait"] .fd-stat__source{font-size:30px}
.fd-stat[data-format="portrait"] .fd-stat__cue{--cue-fs:44px}
.fd-stat--plain[data-format="portrait"] .fd-stat__claim{font-size:120px}
.fd-stat[data-format="story"] .fd-stat__body{top:calc(var(--safe-top) + 24px);bottom:calc(var(--safe-bottom) + 20px);left:64px;right:64px;justify-items:center;text-align:center}
.fd-stat[data-format="story"] .fd-stat__logo{--logo-h:64px;justify-self:start}
.fd-stat[data-format="story"] .fd-stat__lead+.fd-stat__lines{margin-top:40px}
.fd-stat[data-format="story"] .fd-stat__lines{gap:24px;align-items:center}
.fd-stat[data-format="story"] .fd-stat__claim{font-size:84px}
.fd-stat[data-format="story"] .fd-stat__source{font-size:32px}
.fd-stat[data-format="story"] .fd-stat__cue{--cue-fs:52px}
.fd-stat--plain[data-format="story"] .fd-stat__claim{font-size:136px}
.fd-stat[data-format="landscape"] .fd-stat__body{inset:48px;grid-template-columns:auto minmax(0,1fr);grid-template-rows:auto minmax(0,1fr) auto auto;grid-template-areas:"num logo" "num ." "num lines" "num cue";column-gap:56px}
.fd-stat[data-format="landscape"] .fd-stat__lead{align-self:center;margin-block:-8px}
.fd-stat[data-format="landscape"] .fd-stat__num{padding-bottom:.26em}
.fd-stat[data-format="landscape"] .fd-stat__logo{justify-self:end}
.fd-stat[data-format="landscape"] .fd-stat__lines{gap:16px}
.fd-stat[data-format="landscape"] .fd-stat__claim{font-size:64px}
.fd-stat[data-format="landscape"] .fd-stat__source{font-size:24px}
.fd-stat[data-format="landscape"] .fd-stat__cue{--cue-fs:30px;margin-top:36px}
.fd-stat--plain[data-format="landscape"] .fd-stat__body{grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto minmax(0,1fr) auto;grid-template-areas:"lines logo" "lines ." "lines cue"}
.fd-stat--plain[data-format="landscape"] .fd-stat__lines{align-self:center}
.fd-stat--plain[data-format="landscape"] .fd-stat__claim{font-size:76px}
.fd-stat--plain[data-format="landscape"] .fd-stat__cue{margin-top:0}
`
export default StatCallout
pieces/ads/stat-callout/specimen.tsx 46 lines
import * as React from "react"
import { slot } from "../../slots"
import { StatCallout, formats } from "../stat-callout"
import type { AdFormat } from "../../fx/ad-kit"
// Sample brand (fictional): Tamsett Physio, an independent physiotherapy clinic. The stat and its source are sample
// proof for this specimen only; the piece's stat, measure and source default to empty.
const tamsettLogo = "data:image/svg+xml," + encodeURIComponent(
`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 280 56"><path fill-rule="evenodd" fill="currentColor" d="M14 4h28a10 10 0 0 1 10 10v28a10 10 0 0 1-10 10H14A10 10 0 0 1 4 42V14A10 10 0 0 1 14 4zm10 10v10H14v8h10v10h8V32h10v-8H32V14z"/><text x="64" y="38" fill="currentColor" font-family="Helvetica, Arial, sans-serif" font-size="28" font-weight="700" letter-spacing="-.3">tamsett physio</text></svg>`,
)
export const states = ["square", "portrait", "story", "landscape"]
export const copy = {
platform: "meta",
primary_text: "9 in 10 new patients at Tamsett Physio are seen within 48 hours.\nThat figure comes from our own clinic bookings, Jan–Jun 2026.\nBook your assessment online and choose a time that suits you.",
headline: "Book a physio assessment",
description: "9 in 10 seen within 48 hours",
cta: "Book Now",
}
// Sample brand (berry palette, invented): previews, the pack and the site show this ad in it by default.
export const sampleBrand = {
name: "Tamsett Physio",
theme: "light",
background: "#f1f8f8",
colors: ["#0e7c7b", "#f2a541"],
fonts: ["Fraunces", "DM Sans"],
button: "square",
band: "#d2eeee",
}
export default function StatCalloutSpecimen({ state = "portrait" }: { state?: string }) {
return (
<StatCallout
format={(formats.includes(state as AdFormat) ? state : "portrait") as AdFormat}
stat="9 in 10"
measure="new patients are seen within 48 hours"
source="Source: clinic bookings, Jan-Jun 2026"
cue="Book my assessment"
logo={slot("logo", tamsettLogo)}
brand="Tamsett Physio"
/>
)
}
| Name | Type | Details |
|---|---|---|
format OptionalStatCallout |
AdFormat |
Default "portrait"
|
stat OptionalStatCallout |
string |
Default ""
|
measure OptionalStatCallout |
string |
Default ""
|
source OptionalStatCallout |
string |
Default ""
|
headline OptionalStatCallout |
string |
Default "Say the one result your page promises, in plain words."
|
highlight OptionalStatCallout |
string |
Default ""
|
cue OptionalStatCallout |
string |
Default "Learn more"
|
cueNote OptionalStatCallout |
string |
Default ""
|
logo OptionalStatCallout |
string |
Default ""
|
brand OptionalStatCallout |
string |
Default ""
|
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.
--display-weight- Headlines: weight, letter case and tracking.
Image slots
Filled from the brand’s images; the specimen ships its own defaults.
logo- The brand’s logo mark.
-
a9be0c2aa69b7f17.webp
image/webp · 47.4 KB