Recipe Card Box 1
A crisp white recipe card laid over a generated photo of the finished dish, with the box offer on a solid band. It is a warm, offer-led meal-kit ad that sends people to the order 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 181 characters
- Tuesday, 6 p.m. Two of you and a fridge full of maybes.
This week's box has harissa chicken in it.
One pan. 25 minutes.
Done.
Your first box is $29 for 3 recipes, and it ships free. - Headline 25 characters
- First box $29, ships free
- Description 17 characters
- 3 recipes for two
- Button 9 characters
- Order Now
What it is for
- Angle
- offer led
- Temperature
- warm
- Archetype
- recipe card
- Sends people to
- order page
- Words on the image
- At most 34
Use it in a prompt
Make the ads/recipe-card-box 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/recipe-card-box.tsx. - Import it and pass your copy and images (Props tab):
import { RecipeCardBox } from "@/components/funneldna/ads/recipe-card-box"
It restyles from the theme tokens on any wrapper (Theme tab). The specimen source is a complete working example.
pieces/ads/recipe-card-box/component.tsx 165 lines
// archetype: recipe-card
// When to use: A crisp white recipe card laid over a generated photo of the finished dish, with the box offer on a solid band. It is a warm, offer-led meal-kit ad that sends people to the order page.
import * as React from "react"
import { Clock } from "lucide-react"
import { AdFrame, AdHeadline, Cue, LogoMark, type AdFormat } from "../fx/ad-kit"
import { Texture } from "../fx/fx"
import noise from "../fx/textures/noise"
/**
* Recipe card: the finished dish runs full-bleed as a generated scene, and one crisp white recipe card (the only card)
* overlaps the photo's edge. The card shows the dish name, a cook-time chip and three ingredient lines with quantities
* in tabular figures, split by hairline rules. The headline asks the reader's moment, the offer terms follow in one
* line on the solid band, and the cue answers the question.
* Re-composed per format: square, portrait and story stack the photo on top, with the card anchored to the photo's
* bottom edge so the headline can never collide with it. Landscape sits side by side, with the copy on the band at
* left and the dish at right under the card.
* Truth: the card is a real recipe from the box, and the offer line copies the order page's price and shipping exactly.
*/
export type RecipeCardBoxIngredient = {
name: string
/** Quantity as written on the recipe ("4", "2 tbsp", "1 can"); set in tabular figures. */
amount: string
}
export type RecipeCardBoxProps = {
format?: AdFormat
/** Names the audience and the moment, 12 words or fewer. A "\n" forces a break. */
headline?: string
/** One phrase inside `headline` set in the marker tint. Empty: none. */
highlight?: string
/** The dish name on the card. */
dish?: string
/** Total cook time, e.g. "25 min". Empty: no chip. */
cookTime?: string
/** Three ingredient lines read best; each is a name and a quantity. */
ingredients?: RecipeCardBoxIngredient[]
/** The offer terms in one line, segments split by " · " (the first is set bold). Empty: none. */
offer?: string
/** The page button's words. */
cue?: string
/** The finished dish (slot "scene"), plated or in its pan, with clear space at lower left. */
dishImage?: string
/** Alt text for the dish photo. Empty: the dish name. */
dishAlt?: string
logo?: string
brand?: string
}
export const formats: AdFormat[] = ["square", "portrait", "story", "landscape"]
export const lead = "portrait" satisfies AdFormat
/** The brief set 30, but the card is the recipe itself (dish, cook time, three ingredient lines: 13 words) beside a 10-word headline, the offer line and the cue, so the cap is 34. */
export const wordCap = 34
export function RecipeCardBox({
format = "portrait",
headline = "Dinner for two tonight? One pan, thirty minutes.",
highlight = "",
dish = "Lemon thyme chicken",
cookTime = "30 min",
ingredients = DEFAULT_INGREDIENTS,
offer = "",
cue = "Get my first box",
dishImage = "",
dishAlt = "",
logo = "",
brand = "",
}: RecipeCardBoxProps) {
const parts = offer.split("·").map((part) => part.trim()).filter(Boolean)
const hasCard = Boolean(dish || cookTime || ingredients.length)
return (
<AdFrame format={format} className="fd-rcard">
<style href="fd-rcard" precedence="default">{CSS}</style>
<Texture src={noise} tone="band-ink" opacity={0.05} />
<div className="fd-rcard__stage">
<div className="fd-rcard__dish">
{dishImage ? <img className="fd-rcard__photo" src={dishImage} alt={dishAlt || dish} /> : null}
{dishImage ? <div className="fd-rcard__scrim" aria-hidden /> : null}
{hasCard ? (
<div className="fd-rcard__card">
{dish || cookTime ? (
<div className="fd-rcard__head">
{dish ? <p className="fd-rcard__name">{dish}</p> : null}
{cookTime ? (
<p className="fd-rcard__time">
<Clock aria-hidden strokeWidth={2.5} />
<span>{cookTime}</span>
</p>
) : null}
</div>
) : null}
{ingredients.length ? (
<ul className="fd-rcard__list">
{ingredients.map((item, i) => (
<li key={`${item.name}-${i}`}>
<span className="fd-rcard__item">{item.name}</span>
<span className="fd-rcard__qty">{item.amount}</span>
</li>
))}
</ul>
) : null}
</div>
) : null}
</div>
<div className="fd-rcard__copy">
<AdHeadline as="h1" text={headline} highlight={highlight} mark="ink" className="fd-rcard__h" />
{parts.length ? (
<p className="fd-rcard__offer">
{parts.map((part, i) => (i === 0 ? <b key={i}>{part}</b> : <span key={i}>{part}</span>))}
</p>
) : null}
<Cue className="fd-rcard__cue">{cue}</Cue>
</div>
</div>
<LogoMark src={logo} brand={brand} className="fd-rcard__logo" />
</AdFrame>
)
}
const DEFAULT_INGREDIENTS: RecipeCardBoxIngredient[] = [
{ name: "Chicken thighs", amount: "4" },
{ name: "Lemon", amount: "1" },
{ name: "Fresh thyme", amount: "6 sprigs" },
]
const CSS = `
.fd-rcard__stage{position:absolute;inset:0;z-index:1;display:flex;flex-direction:column}
.fd-rcard__dish{position:relative;flex:1 1 auto;min-height:0}
.fd-rcard__photo{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:var(--rc-focus,62% 28%)}
.fd-rcard__scrim{position:absolute;left:0;top:0;width:72%;height:var(--rc-scrim-h,300px);pointer-events:none;background:linear-gradient(165deg,oklch(from var(--band) l c h / 0.82) 0%,oklch(from var(--band) l c h / 0.5) 30%,oklch(from var(--band) l c h / 0) 62%)}
.fd-rcard__card{position:absolute;z-index:2;left:var(--ad-m);bottom:calc(var(--rc-over) * -1);width:var(--rc-card-w);padding:var(--rc-pad);background:var(--card);color:var(--ink);border:1px solid var(--card-border,oklch(from var(--ink) l c h / 0.12));border-radius:calc(var(--card-radius,var(--radius,14px)) * 1.5);box-shadow:var(--card-shadow,0 2px 3px oklch(from var(--shadow,oklch(0.22 0.03 260)) l c h / 0.4),0 22px 40px -14px oklch(from var(--shadow,oklch(0.22 0.03 260)) l c h / 0.55))}
.fd-rcard__head{display:flex;flex-direction:column;align-items:flex-start;gap:calc(var(--rc-row-pad) * 0.75);padding-bottom:var(--rc-row-pad)}
.fd-rcard__name{margin:0;font-family:var(--font-display);font-weight:var(--display-weight,800);text-transform:var(--display-case,none);letter-spacing:var(--display-tracking,-0.025em);font-size:var(--rc-name);line-height:1.08;text-wrap:balance;color:var(--ink)}
.fd-rcard__time{margin:0;display:inline-flex;align-items:center;gap:0.35em;padding:0.32em 0.62em;border-radius:999px;background:color-mix(in oklch,var(--ink) 6%,var(--card));color:var(--ink);font-family:var(--font-body);font-size:var(--rc-small);font-weight:700;line-height:1;font-variant-numeric:tabular-nums;white-space:nowrap}
.fd-rcard__time svg{width:1em;height:1em;flex:none;color:var(--accent)}
.fd-rcard__list{list-style:none;margin:0;padding:0}
.fd-rcard__list li{display:flex;align-items:baseline;justify-content:space-between;gap:24px;padding:var(--rc-row-pad) 0;border-top:2px solid oklch(from var(--ink) l c h / 0.13);font-size:var(--rc-row);line-height:1.15}
.fd-rcard__list li:last-child{padding-bottom:0}
.fd-rcard__item{font-family:var(--font-body);font-weight:600;color:var(--ink);text-wrap:pretty}
.fd-rcard__qty{font-family:var(--font-display);font-weight:var(--display-weight,800);letter-spacing:-0.01em;font-variant-numeric:tabular-nums lining-nums;color:var(--accent);white-space:nowrap}
.fd-rcard__copy{position:relative;flex:none;display:flex;flex-direction:column;align-items:flex-start;padding:calc(var(--rc-over) + var(--rc-gap)) var(--ad-m) var(--rc-bottom)}
.fd-rcard__h{color:var(--band-ink);font-size:var(--rc-h);line-height:1.12}
.fd-rcard__offer{margin:var(--rc-offer-gap) 0 0;display:flex;flex-wrap:wrap;row-gap:0.15em;font-family:var(--font-body);font-size:var(--rc-offer);font-weight:600;line-height:1.25;color:var(--band-ink);text-wrap:pretty}
.fd-rcard__offer b{font-family:var(--font-display);font-weight:var(--display-weight,800);letter-spacing:-0.01em;font-variant-numeric:tabular-nums}
.fd-rcard__offer > * + *::before{content:"·";padding:0 0.45em;color:oklch(from var(--band-ink) l c h / 0.55)}
.fd-rcard__cue{margin-top:var(--rc-cue-gap)}
.fd-rcard__logo{position:absolute;z-index:3;left:var(--ad-m);top:var(--ad-m);color:var(--band-ink)}
.fd-rcard[data-format="square"]{--rc-over:60px;--rc-gap:32px;--rc-bottom:64px;--rc-h:76px;--rc-offer:32px;--rc-offer-gap:22px;--rc-cue-gap:30px;--cue-fs:38px;--rc-card-w:520px;--rc-pad:32px;--rc-name:46px;--rc-small:28px;--rc-row:30px;--rc-row-pad:16px;--rc-focus:62% 22%;--rc-scrim-h:280px}
.fd-rcard[data-format="portrait"]{--rc-over:80px;--rc-gap:40px;--rc-bottom:72px;--rc-h:84px;--rc-offer:34px;--rc-offer-gap:26px;--rc-cue-gap:34px;--cue-fs:42px;--rc-card-w:560px;--rc-pad:36px;--rc-name:52px;--rc-small:30px;--rc-row:34px;--rc-row-pad:18px;--rc-focus:62% 28%;--rc-scrim-h:300px}
.fd-rcard[data-format="story"]{--rc-over:110px;--rc-gap:48px;--rc-bottom:calc(var(--safe-bottom) + 20px);--rc-h:92px;--rc-offer:40px;--rc-offer-gap:30px;--rc-cue-gap:40px;--cue-fs:48px;--rc-card-w:720px;--rc-pad:48px;--rc-name:68px;--rc-small:36px;--rc-row:42px;--rc-row-pad:24px;--rc-focus:62% 16%;--rc-scrim-h:540px}
.fd-rcard[data-format="story"] .fd-rcard__logo{top:calc(var(--safe-top) + 24px)}
.fd-rcard[data-format="landscape"]{--rc-over:0px;--rc-gap:0px;--rc-h:56px;--rc-offer:24px;--rc-offer-gap:16px;--rc-cue-gap:20px;--cue-fs:28px;--rc-card-w:300px;--rc-pad:22px;--rc-name:30px;--rc-small:22px;--rc-row:24px;--rc-row-pad:12px;--rc-focus:64% 45%}
.fd-rcard[data-format="landscape"] .fd-rcard__stage{flex-direction:row-reverse}
.fd-rcard[data-format="landscape"] .fd-rcard__copy{width:600px;justify-content:center;padding:139px 56px 48px 48px}
.fd-rcard[data-format="landscape"] .fd-rcard__card{left:-20px;bottom:48px}
.fd-rcard[data-format="landscape"] .fd-rcard__scrim{display:none}
.fd-rcard[data-format="landscape"] .fd-rcard__list li{gap:16px}
`
export default RecipeCardBox
pieces/ads/recipe-card-box/specimen.tsx 55 lines
import __studioImagec365ba9b from "../assets/00934db5d012c06f.webp";
import * as React from "react"
import { slot } from "../../slots"
import { RecipeCardBox, formats } from "../recipe-card-box"
import type { AdFormat } from "../../fx/ad-kit"
// Sample brand (fictional): Cobblebrae Kitchen, a recipe box for two. The dish photo is a generated illustration of a recipe in the sample box.
const cobblebraeLogo = "data:image/svg+xml," + encodeURIComponent(
`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 360 56"><circle cx="24" cy="32" r="17" fill="none" stroke="currentColor" stroke-width="6"/><rect x="40" y="28" width="18" height="8" rx="4" fill="currentColor"/><path d="M17 4c0 5 6 5 6 10M29 3c0 5 6 5 6 10" fill="none" stroke="currentColor" stroke-width="3.5" stroke-linecap="round"/><text x="68" y="40" font-family="Helvetica, Arial, sans-serif" font-size="29" font-weight="700" letter-spacing="-.4" fill="currentColor">cobblebrae kitchen</text></svg>`,
)
export const states = ["square", "portrait", "story", "landscape"]
export const copy = {
platform: "meta",
primary_text: "Tuesday, 6 p.m. Two of you and a fridge full of maybes.\nThis week's box has harissa chicken in it.\nOne pan. 25 minutes.\nDone.\nYour first box is $29 for 3 recipes, and it ships free.",
headline: "First box $29, ships free",
description: "3 recipes for two",
cta: "Order Now",
}
// Sample brand (rose-ink palette, display-serif pair; invented): previews, the pack and the site show this ad in it by default.
// A warm harissa rose for the action colour and a deep ink-indigo accent for quantities and the cook-time icon.
export const sampleBrand = {
name: "Cobblebrae Kitchen",
theme: "light",
background: "#fff7f6",
colors: ["#d2345e", "#3e3a8e"],
fonts: ["Fraunces", "DM Sans"],
button: "soft",
}
export default function RecipeCardBoxSpecimen({ state = "portrait" }: { state?: string }) {
return (
<RecipeCardBox
format={(formats.includes(state as AdFormat) ? state : "portrait") as AdFormat}
headline="Cooking for two on a Tuesday? Harissa chicken, one pan."
highlight="one pan."
dish="Harissa chicken"
cookTime="25 min"
ingredients={[
{ name: "Chicken thighs", amount: "4" },
{ name: "Harissa", amount: "2 tbsp" },
{ name: "Chickpeas", amount: "1 can" },
]}
offer="First box $29 · 3 recipes · ships free"
cue="Get my first box"
dishImage={slot("scene", __studioImagec365ba9b)}
dishAlt="Harissa chicken thighs roasted with chickpeas and lemon in one pan"
logo={slot("logo", cobblebraeLogo)}
brand="Cobblebrae Kitchen"
/>
)
}
| Name | Type | Details |
|---|---|---|
format OptionalRecipeCardBox |
AdFormat |
Default "portrait"
|
headline OptionalRecipeCardBox |
string |
Default "Dinner for two tonight? One pan, thirty minutes."
|
highlight OptionalRecipeCardBox |
string |
Default ""
|
dish OptionalRecipeCardBox |
string |
Default "Lemon thyme chicken"
|
cookTime OptionalRecipeCardBox |
string |
Default "30 min"
|
ingredients OptionalRecipeCardBox |
RecipeCardBoxIngredient[] |
Default DEFAULT_INGREDIENTS
|
offer OptionalRecipeCardBox |
string |
Default ""
|
cue OptionalRecipeCardBox |
string |
Default "Get my first box"
|
dishImage OptionalRecipeCardBox |
string |
Default ""
|
dishAlt OptionalRecipeCardBox |
string |
Default ""
|
logo OptionalRecipeCardBox |
string |
Default ""
|
brand OptionalRecipeCardBox |
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.
--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.
Image slots
Filled from the brand’s images; the specimen ships its own defaults.
logo- The brand’s logo mark.
scene- A wide atmosphere photo behind or beside the copy.
-
00934db5d012c06f.webp
image/webp · 295 KB
-
bec2a41897a3364d.webp
image/webp · 51.2 KB