Two Swatch Sofa 1
The two fabric swatches a shopper viewed, side by side with their names and prices and the product standing between them; a retargeting indecision ad that sends them to order free swatches by post.
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 283 characters
- Still between Sand and Slate? Hold both fabrics in your own living room before you decide. We'll post you free swatches of each, so you can see them in your light, next to your floor and your walls. The Lumbard three-seater is $1,450 in either colour. Order your free swatches today.
- Headline 28 characters
- Free fabric swatches by post
- Description 22 characters
- Sand or Slate · $1,450
- Button 9 characters
- Order Now
What it is for
- Angle
- indecision
- Temperature
- retargeting
- Archetype
- this or that
- Sends people to
- free swatches
- Words on the image
- At most 22
Use it in a prompt
Make the ads/two-swatch-sofa 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/two-swatch-sofa.tsx. - Import it and pass your copy and images (Props tab):
import { TwoSwatchSofa } from "@/components/funneldna/ads/two-swatch-sofa"
It restyles from the theme tokens on any wrapper (Theme tab). The specimen source is a complete working example.
pieces/ads/two-swatch-sofa/component.tsx 235 lines
// archetype: this-or-that
// When to use: The two fabric swatches a shopper viewed, side by side with their names and prices and the product standing between them; a retargeting indecision ad that sends them to order free swatches by post.
import * as React from "react"
import { AdFrame, AdHeadline, Cue, LogoMark, type AdFormat } from "../fx/ad-kit"
import { Texture } from "../fx/fx"
import weave from "../fx/textures/weave"
/**
* This or that: two large square close-ups of the real fabrics (item-1, item-2) stand on one floor line with the
* colour name and the feed price set plainly beneath each (the price as a big figure with a superscript currency
* sign). The product cut-out, upholstered in the first colour, stands on the same floor between them, overlapping both
* swatches a little: the product is the bridge. The headline names the indecision, with one marker tint on the two
* names. The free-sample terms ride under the cue, so they show in every format. Retargeting · indecision → free swatches.
* Truth: the swatch photos show the real fabrics, and prices come from the product feed; both default to empty.
* Finish: the cut-out runs through a 1.5px alpha choke with a dark rim (no light matte fringe on the band) and casts a
* contact shadow on the floor line. The background is a woven texture tinted from --band-ink across the whole band.
*/
export type SwatchChoice = {
/** Colour name as the store lists it ("Sand"). Empty: no name line. */
name?: string
/** Price from the product feed ("$1,450"); a leading currency sign is set superscript. Empty: no price. */
price?: string
/** Close weave photo of the real fabric (slot "item-1" or "item-2"). */
image?: string
/** Show one half of `image` only: for one photo that carries both fabrics side by side (left first, right second). */
crop?: "left" | "right"
}
export type TwoSwatchSofaProps = {
format?: AdFormat
/** Names the indecision, 12 words or fewer. A "\n" forces a break. */
headline?: string
/** The phrase in `headline` set in the marker tint (the two colour names). */
highlight?: string
/** The first colour (slot "item-1"); the product is shown in this one. */
first?: SwatchChoice
/** The second colour (slot "item-2"). */
second?: SwatchChoice
/** Transparent cut-out of the product in the first colour (slot "product"). */
product?: string
productAlt?: string
cue?: string
/** The offer terms under the cue ("Free swatches by post"). Empty: none. */
cueNote?: string
logo?: string
brand?: string
}
export const formats: AdFormat[] = ["square", "portrait", "story", "landscape"]
export const lead = "portrait" satisfies AdFormat
/** 22, not 20: the device itself is two colour names and two prices, on top of the headline, the terms and the cue. */
export const wordCap = 22
export function TwoSwatchSofa({
format = "portrait",
headline = "Still deciding between these two?",
highlight = "",
first = {},
second = {},
product = "",
productAlt = "",
cue = "Order free swatches",
cueNote = "",
logo = "",
brand = "",
}: TwoSwatchSofaProps) {
return (
<AdFrame format={format} className="fd-tot">
<style href="fd-tot" precedence="default">{CSS}</style>
<EdgeFilter />
<Texture src={weave} tone="band-ink" opacity={0.1} />
<LogoMark src={logo} brand={brand} className="fd-tot__logo" />
<SwatchPhoto choice={first} side="a" />
<SwatchPhoto choice={second} side="b" />
<span className="fd-tot__floor" aria-hidden />
{product ? (
<div className="fd-tot__sofa">
<img src={product} alt={productAlt} />
</div>
) : null}
<SwatchLabel choice={first} side="a" />
<SwatchLabel choice={second} side="b" />
<div className="fd-tot__copy">
<AdHeadline as="h1" text={headline} highlight={highlight} mark="ink" className="fd-tot__headline" />
<Cue note={cueNote} className="fd-tot__cue">{cue}</Cue>
</div>
</AdFrame>
)
}
function SwatchPhoto({ choice, side }: { choice: SwatchChoice; side: "a" | "b" }) {
return (
<figure className={`fd-tot__swatch fd-tot__swatch--${side}`} data-crop={choice.image && choice.crop ? choice.crop : undefined}>
{choice.image ? <img src={choice.image} alt={choice.name || ""} /> : null}
</figure>
)
}
function SwatchLabel({ choice, side }: { choice: SwatchChoice; side: "a" | "b" }) {
if (!choice.name && !choice.price) return null
return (
<p className={`fd-tot__label fd-tot__label--${side}`}>
{choice.name ? <span className="fd-tot__name">{choice.name}</span> : null}
{choice.price ? <Price value={choice.price} /> : null}
</p>
)
}
/** Big figure with the leading currency sign set superscript ("$1,450" reads as one price, not two numbers). */
function Price({ value }: { value: string }) {
const m = /^([^\d\s.,]*)\s*(.*)$/.exec(value.trim())
const sign = m ? m[1] : ""
const figure = m ? m[2] : value
return (
<span className="fd-tot__price">
{sign ? <sup>{sign}</sup> : null}
{figure}
</span>
)
}
/**
* Edge choke for the product cut-out: erodes the alpha 1.5px (removing any light matte fringe), then lays a thin dark
* rim from --shadow inside the new edge so no light pixels show against the band.
*/
function EdgeFilter() {
return (
<svg className="fd-tot__defs" aria-hidden focusable="false" width="0" height="0">
<filter id="fd-tot-edge" x="-2%" y="-2%" width="104%" height="104%" colorInterpolationFilters="sRGB">
<feMorphology in="SourceAlpha" operator="erode" radius="1.5" result="core" />
<feGaussianBlur in="core" stdDeviation="0.5" result="coreSoft" />
<feComposite in="SourceGraphic" in2="coreSoft" operator="in" result="choked" />
<feMorphology in="core" operator="erode" radius="3" result="inner" />
<feComposite in="coreSoft" in2="inner" operator="out" result="rim" />
<feGaussianBlur in="rim" stdDeviation="1" result="rimSoft" />
<feFlood style={{ floodColor: "var(--shadow, oklch(0.22 0.03 260))", floodOpacity: 0.5 }} result="shade" />
<feComposite in="shade" in2="rimSoft" operator="in" result="rimShade" />
<feComposite in="rimShade" in2="choked" operator="in" result="edge" />
<feMerge>
<feMergeNode in="choked" />
<feMergeNode in="edge" />
</feMerge>
</filter>
</svg>
)
}
const CSS = `
.fd-tot__defs{position:absolute;width:0;height:0;overflow:hidden;pointer-events:none}
.fd-tot__logo{position:absolute;z-index:5;color:var(--band-ink)}
.fd-tot__swatch{position:absolute;z-index:1;margin:0;overflow:hidden;aspect-ratio:1;border-radius:12px;background:color-mix(in oklch,var(--band-ink) 8%,var(--band));outline:1px solid oklch(from var(--band-ink) l c h / 0.12);outline-offset:-1px;filter:drop-shadow(0 2px 3px oklch(from var(--shadow,oklch(0.22 0.03 260)) l c h / 0.5)) drop-shadow(0 12px 16px oklch(from var(--shadow,oklch(0.22 0.03 260)) l c h / 0.35))}
.fd-tot__swatch img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:50% 50%}
.fd-tot__swatch[data-crop] img{inset:auto;top:-12.5%;width:250%;height:125%}
.fd-tot__swatch[data-crop="left"] img{left:-12.5%}
.fd-tot__swatch[data-crop="right"] img{left:-137.5%}
.fd-tot__floor{position:absolute;z-index:2;height:2px;border-radius:2px;background:oklch(from var(--band-ink) l c h / 0.24)}
.fd-tot__sofa{position:absolute;z-index:3;aspect-ratio:2/1}
.fd-tot__sofa::after{content:"";position:absolute;z-index:0;left:9%;right:9%;bottom:1%;height:10%;border-radius:50%;background:radial-gradient(closest-side,oklch(from var(--shadow,oklch(0.22 0.03 260)) calc(l - 0.06) c h / 0.85),oklch(from var(--shadow,oklch(0.22 0.03 260)) l c h / 0))}
.fd-tot__sofa img{position:relative;z-index:1;width:100%;height:100%;object-fit:cover;object-position:50% 45%;filter:url(#fd-tot-edge) drop-shadow(0 3px 3px oklch(from var(--shadow,oklch(0.22 0.03 260)) l c h / 0.55)) drop-shadow(0 12px 14px oklch(from var(--shadow,oklch(0.22 0.03 260)) l c h / 0.35))}
.fd-tot__label{position:absolute;z-index:4;margin:0;display:flex;flex-direction:column;align-items:flex-start;gap:20px;color:var(--band-ink)}
.fd-tot__label--b{align-items:flex-end;text-align:right}
.fd-tot__name{font-family:var(--font-body);font-weight:700;line-height:1.3;letter-spacing:0.005em;color:color-mix(in oklch,var(--band-ink) 86%,var(--band));text-wrap:pretty}
.fd-tot__price{font-family:var(--font-display);font-weight:var(--display-weight,800);letter-spacing:-0.03em;line-height:1.15;font-variant-numeric:tabular-nums;white-space:nowrap;color:var(--band-ink)}
.fd-tot__price sup{position:relative;top:0.1em;vertical-align:top;font-size:max(var(--ad-min),0.46em);line-height:1;letter-spacing:0;margin-right:0.05em}
.fd-tot__copy{position:absolute;z-index:4;display:flex;flex-direction:column;align-items:flex-start;justify-content:space-between;gap:44px}
.fd-tot__headline{color:var(--band-ink);line-height:1.08}
.fd-tot .fd-tot__cue{line-height:1.3;gap:max(16px,.36em);padding:.5em 1.1em}
.fd-tot[data-format="square"] .fd-tot__logo{left:64px;top:64px}
.fd-tot[data-format="square"] .fd-tot__swatch{top:148px;width:352px}
.fd-tot[data-format="square"] .fd-tot__swatch--a{left:64px}
.fd-tot[data-format="square"] .fd-tot__swatch--b{left:664px}
.fd-tot[data-format="square"] .fd-tot__label{top:516px;flex-direction:row;align-items:baseline;gap:16px}
.fd-tot[data-format="square"] .fd-tot__label--a{left:64px}
.fd-tot[data-format="square"] .fd-tot__label--b{right:64px}
.fd-tot[data-format="square"] .fd-tot__name{font-size:32px}
.fd-tot[data-format="square"] .fd-tot__price{font-size:58px}
.fd-tot[data-format="square"] .fd-tot__floor{left:64px;right:64px;top:600px}
.fd-tot[data-format="square"] .fd-tot__sofa{left:390px;top:458px;width:300px}
.fd-tot[data-format="square"] .fd-tot__copy{left:64px;right:64px;top:636px;bottom:64px}
.fd-tot[data-format="square"] .fd-tot__headline{font-size:80px}
.fd-tot[data-format="square"] .fd-tot__cue{--cue-fs:36px}
.fd-tot[data-format="portrait"] .fd-tot__logo{left:64px;top:64px}
.fd-tot[data-format="portrait"] .fd-tot__swatch{top:152px;width:424px}
.fd-tot[data-format="portrait"] .fd-tot__swatch--a{left:64px}
.fd-tot[data-format="portrait"] .fd-tot__swatch--b{left:592px}
.fd-tot[data-format="portrait"] .fd-tot__label{top:596px;gap:22px}
.fd-tot[data-format="portrait"] .fd-tot__label--a{left:64px}
.fd-tot[data-format="portrait"] .fd-tot__label--b{right:64px}
.fd-tot[data-format="portrait"] .fd-tot__name{font-size:36px}
.fd-tot[data-format="portrait"] .fd-tot__price{font-size:68px}
.fd-tot[data-format="portrait"] .fd-tot__floor{left:64px;right:64px;top:762px}
.fd-tot[data-format="portrait"] .fd-tot__sofa{left:320px;top:552px;width:440px}
.fd-tot[data-format="portrait"] .fd-tot__copy{left:64px;right:64px;top:800px;bottom:64px}
.fd-tot[data-format="portrait"] .fd-tot__headline{font-size:88px}
.fd-tot[data-format="portrait"] .fd-tot__cue{--cue-fs:44px}
.fd-tot[data-format="story"] .fd-tot__logo{left:64px;top:262px}
.fd-tot[data-format="story"] .fd-tot__swatch{left:546px;width:470px}
.fd-tot[data-format="story"] .fd-tot__swatch--a{top:120px}
.fd-tot[data-format="story"] .fd-tot__swatch--b{top:614px}
.fd-tot[data-format="story"] .fd-tot__label{gap:28px;align-items:flex-start;text-align:left}
.fd-tot[data-format="story"] .fd-tot__label--a{left:64px;top:380px}
.fd-tot[data-format="story"] .fd-tot__label--b{left:64px;top:914px}
.fd-tot[data-format="story"] .fd-tot__name{font-size:52px}
.fd-tot[data-format="story"] .fd-tot__price{font-size:108px}
.fd-tot[data-format="story"] .fd-tot__floor{left:64px;width:482px;top:882px}
.fd-tot[data-format="story"] .fd-tot__sofa{left:90px;top:654px;width:480px}
.fd-tot[data-format="story"] .fd-tot__copy{left:64px;right:64px;top:auto;bottom:354px;min-height:394px}
.fd-tot[data-format="story"] .fd-tot__headline{font-size:84px}
.fd-tot[data-format="story"] .fd-tot__cue{--cue-fs:44px}
.fd-tot[data-format="landscape"] .fd-tot__logo{left:48px;top:48px}
.fd-tot[data-format="landscape"] .fd-tot__swatch{top:112px;width:256px;border-radius:10px}
.fd-tot[data-format="landscape"] .fd-tot__swatch--a{left:612px}
.fd-tot[data-format="landscape"] .fd-tot__swatch--b{left:896px}
.fd-tot[data-format="landscape"] .fd-tot__label{top:384px;gap:18px}
.fd-tot[data-format="landscape"] .fd-tot__label--a{left:612px}
.fd-tot[data-format="landscape"] .fd-tot__label--b{right:48px}
.fd-tot[data-format="landscape"] .fd-tot__name{font-size:24px}
.fd-tot[data-format="landscape"] .fd-tot__price{font-size:44px}
.fd-tot[data-format="landscape"] .fd-tot__floor{left:612px;right:48px;top:500px}
.fd-tot[data-format="landscape"] .fd-tot__sofa{left:752px;top:376px;width:260px}
.fd-tot[data-format="landscape"] .fd-tot__copy{left:48px;width:528px;top:140px;bottom:48px;justify-content:flex-end;gap:36px}
.fd-tot[data-format="landscape"] .fd-tot__headline{font-size:62px}
.fd-tot[data-format="landscape"] .fd-tot__cue{--cue-fs:28px}
`
export default TwoSwatchSofa
pieces/ads/two-swatch-sofa/specimen.tsx 56 lines
import __studioImage9e1cf83f from "../assets/74af5a5f0ef931ec.webp";
import __studioImage516f497d from "../assets/366311cbf67ac998.webp";
import * as React from "react"
import { slot } from "../../slots"
import { TwoSwatchSofa, formats } from "../two-swatch-sofa"
import type { AdFormat } from "../../fx/ad-kit"
// Sample brand (fictional): Lumbard Sofa Co., a direct-to-home sofa maker. Both images are generated illustrations.
// One photo carries both fabrics side by side; each swatch shows its own half unless the brand supplies item-1 / item-2.
const fabricPair = __studioImage9e1cf83f
const sofaCutout = __studioImage516f497d
const lumbardLogo = "data:image/svg+xml," + encodeURIComponent(
`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 184 56"><rect x="3" y="9" width="38" height="38" rx="7" fill="none" stroke="currentColor" stroke-width="5"/><path d="M15 18v19h16" fill="none" stroke="currentColor" stroke-width="5" stroke-linecap="round" stroke-linejoin="round"/><text x="52" y="38" font-family="Helvetica, Arial, sans-serif" font-size="29" font-weight="700" letter-spacing="-.4">lumbard</text></svg>`,
)
export const states = ["square", "portrait", "story", "landscape"]
export const copy = {
platform: "meta",
primary_text: "Still between Sand and Slate? Hold both fabrics in your own living room before you decide. We'll post you free swatches of each, so you can see them in your light, next to your floor and your walls. The Lumbard three-seater is $1,450 in either colour. Order your free swatches today.",
headline: "Free fabric swatches by post",
description: "Sand or Slate · $1,450",
cta: "Order Now",
}
// Sample brand (graphite-sky palette, tech fonts, square buttons; invented): previews, the pack and the site show this ad in it by default.
export const sampleBrand = {
name: "Lumbard Sofa Co.",
theme: "dark",
background: "#16191f",
colors: ["#4aa8ff", "#ff8a5c"],
fonts: ["Space Grotesk", "Manrope"],
button: "square",
}
export default function TwoSwatchSofaSpecimen({ state = "portrait" }: { state?: string }) {
const firstImage = slot("item-1", fabricPair)
const secondImage = slot("item-2", fabricPair)
return (
<TwoSwatchSofa
format={(formats.includes(state as AdFormat) ? state : "portrait") as AdFormat}
headline="Still choosing between Sand and Slate?"
highlight="Sand and Slate"
first={{ name: "Sand", price: "$1,450", image: firstImage, crop: firstImage === fabricPair ? "left" : undefined }}
second={{ name: "Slate", price: "$1,450", image: secondImage, crop: secondImage === fabricPair ? "right" : undefined }}
product={slot("product", sofaCutout)}
productAlt="Lumbard three-seat sofa in Sand"
cue="Order free swatches"
cueNote="Both fabrics, posted free"
logo={slot("logo", lumbardLogo)}
brand="Lumbard Sofa Co."
/>
)
}
| Name | Type | Details |
|---|---|---|
format OptionalTwoSwatchSofa |
AdFormat |
Default "portrait"
|
headline OptionalTwoSwatchSofa |
string |
Default "Still deciding between these two?"
|
highlight OptionalTwoSwatchSofa |
string |
Default ""
|
first OptionalTwoSwatchSofa |
SwatchChoice |
Default {}
|
second OptionalTwoSwatchSofa |
SwatchChoice |
Default {}
|
product OptionalTwoSwatchSofa |
string |
Default ""
|
productAlt OptionalTwoSwatchSofa |
string |
Default ""
|
cue OptionalTwoSwatchSofa |
string |
Default "Order free swatches"
|
cueNote OptionalTwoSwatchSofa |
string |
Default ""
|
logo OptionalTwoSwatchSofa |
string |
Default ""
|
brand OptionalTwoSwatchSofa |
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.
item-1- One image per offer item (item-1, item-2…), shown in stacks and lists.
item-2- One image per offer item (item-1, item-2…), shown in stacks and lists.
logo- The brand’s logo mark.
product- The main product shot or cover (ebook, kit, bottle).
-
366311cbf67ac998.webp
image/webp · 55 KB
-
4137412454b17370.webp
image/webp · 94.8 KB
-
74af5a5f0ef931ec.webp
image/webp · 375 KB