Collection Grid 1
Collection grid: a bento storefront band where visitors shop by the need they have tonight, with one dominant featured collection and one shop button per tile.
Use it in a prompt
Use offer/collection-grid 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/offer/collection-grid.tsx. - Import it and pass your copy and images (Props tab):
import { CollectionGrid } from "@/components/funneldna/offer/collection-grid"
It restyles from the theme tokens on any wrapper (Theme tab). The specimen source is a complete working example.
pieces/offer/collection-grid/component.tsx 459 lines
// layout: bento-grid
// Collection grid: a bento storefront band where visitors shop by the need they have tonight, with one dominant featured collection and one shop button per tile.
import * as React from 'react';
import { Check } from 'lucide-react';
import { Texture, FX_HOST } from '../fx/fx';
import linen from '../fx/textures/linen';
export type CollectionGridItem = {
/** Stable key; falls back to the name. */
id?: string;
name: string;
/** Supplied number of products in the collection; omit when unknown. */
count?: number;
/** Bold lead-in that names the need this collection serves. */
lead?: string;
/** Short line after the lead-in (hidden on small phone tiles). */
detail?: string;
/** Lifestyle photo (slot item-n). */
image: string;
imageAlt?: string;
/** Button label that answers the headline question; defaults to copy.action. */
actionLabel?: string;
/** Optional destination; the shop button becomes a link. */
href?: string;
disabled?: boolean;
};
export type CollectionGridProps = {
/** Section headline, ideally the question the tile buttons answer. */
headline?: React.ReactNode;
/** Intro paragraphs, each opening with a bold lead-in. */
intro?: { lead: string; text?: string }[];
/** Short supplied facts shown as chips under the intro. */
facts?: string[];
collections: CollectionGridItem[];
/** Index of the dominant collection; null gives an even grid with no featured tile. */
featuredIndex?: number | null;
/** Optional flag on the featured tile, e.g. 'Start here'. */
featuredBadge?: string;
/** Templates: {count} and {name} are replaced as text. */
copy?: { count?: string; countOne?: string; action?: string; factsLabel?: string };
/** Called with the chosen collection when its shop button (or photo) is used. */
onSelect?: (collection: CollectionGridItem, index: number) => void;
state?: 'default' | 'hover' | 'active' | 'disabled';
className?: string;
};
const DEFAULT_COPY = {
count: '{count} items',
countOne: '{count} item',
action: 'Shop {name}',
factsLabel: 'Why shop with us',
};
const DEFAULT_INTRO = [
{ lead: 'Shop by what you need, not by product.', text: 'Pick the collection made for your moment and go straight to it.' },
];
export function CollectionGrid(props: CollectionGridProps) {
const {
headline = 'What are you shopping for today?',
intro = DEFAULT_INTRO,
facts = [],
collections,
featuredIndex = 0,
featuredBadge = '',
copy,
onSelect,
state = 'default',
className,
} = props;
const c = { ...DEFAULT_COPY, ...copy };
const uid = React.useId();
const headingId = uid + '-heading';
const hasFeatured =
typeof featuredIndex === 'number' && featuredIndex >= 0 && featuredIndex < collections.length;
const others = collections
.map((collection, index) => ({ collection, index }))
.filter(({ index }) => !(hasFeatured && index === featuredIndex));
const oddOthers = others.length % 2 === 1;
const rootClass = ['cf-collection-grid', hasFeatured ? 'is-bento' : 'is-even', className]
.filter(Boolean)
.join(' ');
return (
<section className={rootClass} style={FX_HOST} aria-labelledby={headingId}>
<Texture src={linen} tone='band-ink' />
<style>{CSS}</style>
<div className='cg-wrap'>
<div className='cg-grid'>
<div className='cg-intro' style={{ '--i': 0 } as React.CSSProperties}>
<h2 id={headingId} className='cg-h2'>
{headline}
</h2>
<div className='cg-intro-body'>
{intro.map((p, i) => (
<p key={i} className='cg-lead'>
<strong>{p.lead}</strong>
{p.text ? ' ' + p.text : null}
</p>
))}
{facts.length > 0 ? (
<ul className='cg-facts' aria-label={c.factsLabel}>
{facts.map((fact) => (
<li key={fact}>
<Check className='cg-fact-ico' size={16} strokeWidth={2.5} aria-hidden />
{fact}
</li>
))}
</ul>
) : null}
</div>
</div>
{hasFeatured ? (
<Tile
collection={collections[featuredIndex as number]}
index={featuredIndex as number}
order={1}
featured
badge={featuredBadge}
copy={c}
state={state}
onSelect={onSelect}
/>
) : null}
{others.map(({ collection, index }, n) => (
<Tile
key={collection.id ?? collection.name}
collection={collection}
index={index}
order={n + (hasFeatured ? 2 : 1)}
copy={c}
state={state}
wideSmall={oddOthers && n === others.length - 1}
onSelect={onSelect}
/>
))}
</div>
</div>
</section>
);
}
export default CollectionGrid;
type TileProps = {
collection: CollectionGridItem;
index: number;
order: number;
featured?: boolean;
badge?: string;
copy: typeof DEFAULT_COPY;
state: NonNullable<CollectionGridProps['state']>;
wideSmall?: boolean;
onSelect?: CollectionGridProps['onSelect'];
};
function Tile({ collection, index, order, featured, badge, copy, state, wideSmall, onSelect }: TileProps) {
const uid = React.useId();
const nameId = uid + '-name';
const countId = uid + '-count';
const actionRef = React.useRef<HTMLElement | null>(null);
const disabled = state === 'disabled' || Boolean(collection.disabled);
const hasCount = typeof collection.count === 'number';
const countText = hasCount
? (collection.count === 1 ? copy.countOne : copy.count).replace('{count}', String(collection.count))
: '';
const label = collection.actionLabel ?? copy.action.replace('{name}', collection.name);
const describedBy = hasCount ? nameId + ' ' + countId : nameId;
const btnClass = ['cg-btn', featured ? 'is-lg' : '', featured && state === 'active' ? 'is-pressed' : '']
.filter(Boolean)
.join(' ');
const tileClass = [
'cg-tile',
featured ? 'is-featured' : '',
wideSmall ? 'is-wide-sm' : '',
featured && state === 'hover' ? 'is-hover' : '',
disabled ? 'is-disabled' : '',
]
.filter(Boolean)
.join(' ');
const select = () => {
if (!disabled) onSelect?.(collection, index);
};
const setRef = (el: HTMLElement | null) => {
actionRef.current = el;
};
return (
<article className={tileClass} style={{ '--i': order } as React.CSSProperties} aria-labelledby={nameId}>
<div
className='cg-frame'
onClick={() => {
if (!disabled) actionRef.current?.click();
}}
>
<img
className='cg-img'
src={collection.image}
alt={collection.imageAlt ?? ''}
loading={featured ? 'eager' : 'lazy'}
decoding='async'
/>
</div>
<div className='cg-cap'>
<div className='cg-cap-text'>
<div className='cg-name-row'>
<h3 id={nameId} className='cg-name'>
{collection.name}
</h3>
{hasCount ? (
<span id={countId} className='cg-count'>
{countText}
</span>
) : null}
{featured && badge ? <span className='cg-badge'>{badge}</span> : null}
</div>
{collection.lead || collection.detail ? (
<p className='cg-text'>
{collection.lead ? <strong>{collection.lead}</strong> : null}
{collection.detail ? (
<span className='cg-detail'>
{collection.lead ? ' ' : ''}
{collection.detail}
</span>
) : null}
</p>
) : null}
</div>
{collection.href && !disabled ? (
<a ref={setRef} className={btnClass} href={collection.href} onClick={select} aria-describedby={describedBy}>
{label}
</a>
) : (
<button
ref={setRef}
type='button'
className={btnClass}
disabled={disabled}
onClick={select}
aria-describedby={describedBy}
>
{label}
</button>
)}
</div>
</article>
);
}
const CSS = `
.cf-collection-grid{
--cg-gap: clamp(12px, 1.6vw, 20px);
--cg-r: var(--card-radius, var(--radius, 14px));
--cg-sh: var(--shadow, oklch(0.22 0.03 260));
--cg-btn: var(--button-bg, var(--cta, oklch(0.58 0.21 29)));
--cg-btn-2: var(--button-bg-2, var(--cta-2, oklch(0.51 0.21 29)));
position: relative;
background: var(--band, oklch(0.27 0.067 256));
color: var(--band-ink, oklch(1 0 0));
font-family: var(--font-body);
padding: clamp(56px, 8vw, 112px) clamp(16px, 5vw, 48px) clamp(64px, 8.5vw, 120px);
overflow: hidden;
}
.cf-collection-grid *, .cf-collection-grid *::before, .cf-collection-grid *::after{ box-sizing: border-box; }
.cf-collection-grid .cg-wrap{ position: relative; z-index: 1; max-width: 1120px; margin-inline: auto; }
.cf-collection-grid .cg-grid{ display: grid; gap: var(--cg-gap); grid-auto-flow: row dense; }
.cf-collection-grid.is-bento .cg-grid{ grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cf-collection-grid.is-even .cg-grid{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cf-collection-grid .cg-intro{
display: flex; flex-direction: column; justify-content: space-between; gap: 24px; min-width: 0;
padding: clamp(24px, 3vw, 40px);
border-radius: var(--cg-r);
background: color-mix(in oklch, var(--band-ink, oklch(1 0 0)) 7%, var(--band, oklch(0.27 0.067 256)));
border: 1px solid oklch(from var(--band-ink, oklch(1 0 0)) l c h / 0.14);
}
.cf-collection-grid.is-bento .cg-intro{ grid-column: 1 / span 2; }
.cf-collection-grid.is-even .cg-intro{
grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
column-gap: clamp(32px, 5vw, 72px); row-gap: 16px; align-items: start;
}
.cf-collection-grid .cg-h2{
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; text-wrap: balance;
color: var(--band-ink, oklch(1 0 0));
}
.cf-collection-grid .cg-lead{
margin: 0; max-width: 60ch; font-size: clamp(1.125rem, 1.5vw, 1.375rem); line-height: 1.4; font-weight: 500;
text-wrap: pretty; color: var(--band-ink, oklch(1 0 0));
}
.cf-collection-grid .cg-lead + .cg-lead{ margin-top: 12px; }
.cf-collection-grid .cg-lead strong{ font-weight: 800; }
.cf-collection-grid .cg-facts{ list-style: none; margin: 20px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.cf-collection-grid .cg-facts li{
display: inline-block; padding: 4px 12px; border-radius: 999px;
background: oklch(from var(--band-ink, oklch(1 0 0)) l c h / 0.12);
color: var(--band-ink, oklch(1 0 0)); font-size: 0.875rem; font-weight: 800; line-height: 1.6;
}
.cf-collection-grid .cg-fact-ico{ display: inline-block; vertical-align: -0.15em; margin-inline-end: 0.4em; }
.cf-collection-grid .cg-tile{
position: relative; display: flex; flex-direction: column; min-width: 0; padding: 8px;
background: var(--card, oklch(1 0 0)); color: var(--ink, oklch(0.21 0.034 263));
border: 1px solid var(--card-border, oklch(from var(--ink, oklch(0.21 0.034 263)) l c h / 0.12));
border-radius: var(--cg-r);
box-shadow: var(--card-shadow, var(--shadow-md, 0 1px 2px oklch(from var(--cg-sh) l c h / 0.22), 0 4px 10px -2px oklch(from var(--cg-sh) l c h / 0.2)));
}
.cf-collection-grid .cg-tile.is-featured{
grid-column: 3 / span 2; grid-row: 1 / span 2;
border-color: color-mix(in oklch, var(--accent-fill, var(--accent, oklch(0.5 0.17 257))) 45%, var(--card, oklch(1 0 0)));
box-shadow: var(--shadow-lg, 0 2px 4px oklch(from var(--cg-sh) l c h / 0.22), 0 12px 24px -8px oklch(from var(--cg-sh) l c h / 0.32));
}
.cf-collection-grid.is-even .cg-tile.is-featured{ grid-column: auto; grid-row: auto; }
.cf-collection-grid .cg-frame{
position: relative; overflow: hidden; aspect-ratio: 4 / 3; cursor: pointer;
border-radius: calc(var(--cg-r) - 4px);
background: color-mix(in oklch, var(--ink, oklch(0.21 0.034 263)) 6%, var(--card, oklch(1 0 0)));
}
.cf-collection-grid .cg-frame::after{
content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
box-shadow: inset 0 0 0 1px oklch(from var(--ink, oklch(0.21 0.034 263)) l c h / 0.08);
}
.cf-collection-grid .cg-tile.is-featured .cg-frame{ flex: 1 1 auto; aspect-ratio: auto; min-height: 320px; }
.cf-collection-grid .cg-tile.is-disabled .cg-frame{ cursor: default; }
.cf-collection-grid .cg-tile.is-disabled .cg-img{ filter: saturate(.35); opacity: .72; }
.cf-collection-grid .cg-img{
position: absolute; inset: 0; width: 100%; height: 100%; display: block;
object-fit: cover; object-position: center; transform: scale(1);
}
.cf-collection-grid .cg-cap{ flex: 1 1 auto; display: flex; flex-direction: column; gap: 16px; padding: 16px 12px 12px; }
.cf-collection-grid .cg-cap-text{ display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.cf-collection-grid .cg-tile.is-featured .cg-cap{ flex: 0 0 auto; gap: 20px; padding: 20px 16px 16px; }
.cf-collection-grid .cg-tile.is-featured .cg-text{ max-width: 60ch; }
.cf-collection-grid .cg-name-row{ display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.cf-collection-grid .cg-name{
margin: 0; font-family: var(--font-display); font-weight: var(--display-weight, 800);
text-transform: var(--display-case, none); font-size: clamp(1.3125rem, 1.8vw, 1.625rem);
line-height: 1.15; letter-spacing: -0.01em; text-wrap: balance; color: var(--ink, oklch(0.21 0.034 263));
}
.cf-collection-grid .cg-count, .cf-collection-grid .cg-badge{
display: inline-flex; align-items: center; min-height: 28px; padding: 4px 12px; border-radius: 999px;
font-size: 0.875rem; font-weight: 800; line-height: 1.2; white-space: nowrap; font-variant-numeric: tabular-nums;
}
.cf-collection-grid .cg-count{
background: color-mix(in oklch, var(--ink, oklch(0.21 0.034 263)) 6%, var(--card, oklch(1 0 0)));
color: var(--ink, oklch(0.21 0.034 263));
}
.cf-collection-grid .cg-badge{
background: var(--accent-fill, var(--accent, oklch(0.5 0.17 257)));
color: var(--accent-fill-ink, var(--card, oklch(1 0 0)));
}
.cf-collection-grid .cg-text{
margin: 0; font-size: clamp(1.0625rem, 1.25vw, 1.125rem); line-height: 1.5; text-wrap: pretty;
color: var(--muted, oklch(0.45 0.03 258));
}
.cf-collection-grid .cg-text strong{ font-weight: 800; color: var(--ink, oklch(0.21 0.034 263)); }
.cf-collection-grid .cg-btn{
display: inline-flex; align-items: center; justify-content: center; gap: 8px;
width: 100%; min-height: 56px; margin-top: auto; padding: 0 20px;
border: 0; cursor: pointer; text-decoration: none; text-align: center; text-wrap: balance;
border-radius: var(--button-radius, var(--radius, 12px));
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;
color: var(--button-ink, var(--cta-ink, oklch(1 0 0)));
text-shadow: var(--button-text-shadow, none);
background: linear-gradient(oklch(from var(--cg-btn) calc(l + 0.04) c h), oklch(from var(--cg-btn-2) calc(l - 0.02) c h));
box-shadow: var(--button-shadow,
inset 0 1px 0 oklch(from var(--cg-btn) calc(l + 0.14) c h / 0.7),
inset 0 -3px 0 oklch(from var(--cg-btn) calc(l - 0.16) c h),
0 1px 2px oklch(from var(--cg-sh) l c h / 0.3),
0 8px 16px -6px oklch(from var(--cg-sh) l c h / 0.45));
transition: background .16s ease, box-shadow .16s ease, transform .16s ease;
}
.cf-collection-grid .cg-btn.is-lg{ width: 100%; min-height: 64px; padding: 0 28px; }
.cf-collection-grid .cg-btn:hover{
background: linear-gradient(oklch(from var(--cg-btn) calc(l - 0.01) c h), oklch(from var(--cg-btn-2) calc(l - 0.07) c h));
box-shadow:
inset 0 1px 0 oklch(from var(--cg-btn) calc(l + 0.1) c h / 0.6),
inset 0 -3px 0 oklch(from var(--cg-btn) calc(l - 0.2) c h),
0 1px 2px oklch(from var(--cg-sh) l c h / 0.34),
0 10px 18px -6px oklch(from var(--cg-sh) l c h / 0.52);
}
.cf-collection-grid .cg-btn:active, .cf-collection-grid .cg-btn.is-pressed{
transform: translateY(1px);
background: linear-gradient(oklch(from var(--cg-btn) calc(l - 0.06) c h), oklch(from var(--cg-btn-2) calc(l - 0.08) c h));
box-shadow:
inset 0 2px 4px oklch(from var(--cg-btn-2) calc(l - 0.2) c h / 0.55),
inset 0 -2px 0 oklch(from var(--cg-btn) calc(l - 0.16) c h),
0 1px 1px oklch(from var(--cg-sh) l c h / 0.3);
}
.cf-collection-grid .cg-btn:focus-visible{ outline: 3px solid var(--field-focus, var(--accent, oklch(0.5 0.17 257))); outline-offset: 3px; }
.cf-collection-grid .cg-btn:disabled{
cursor: not-allowed; transform: none; text-shadow: none;
background: var(--button-2-bg, var(--secondary, oklch(0.93 0.015 263)));
color: color-mix(in oklch, var(--button-2-ink, var(--secondary-ink, oklch(0.21 0.034 263))) 62%, var(--button-2-bg, var(--secondary, oklch(0.93 0.015 263))));
box-shadow: none;
}
@media (hover: hover){
.cf-collection-grid .cg-tile:not(.is-disabled):hover{
box-shadow: var(--shadow-lg, 0 2px 4px oklch(from var(--cg-sh) l c h / 0.22), 0 12px 24px -8px oklch(from var(--cg-sh) l c h / 0.32));
}
.cf-collection-grid .cg-tile.is-featured:not(.is-disabled):hover{
box-shadow: 0 2px 4px oklch(from var(--cg-sh) l c h / 0.26), 0 18px 32px -10px oklch(from var(--cg-sh) l c h / 0.42);
}
}
.cf-collection-grid .cg-tile.is-hover{
box-shadow: 0 2px 4px oklch(from var(--cg-sh) l c h / 0.26), 0 18px 32px -10px oklch(from var(--cg-sh) l c h / 0.42);
}
@media (prefers-reduced-motion: no-preference){
.cf-collection-grid .cg-intro, .cf-collection-grid .cg-tile{
animation: cfcg-rise .45s cubic-bezier(.2,.7,.2,1) both;
animation-delay: min(calc(var(--i, 0) * 70ms), 280ms);
}
.cf-collection-grid .cg-tile{ transition: transform .2s ease, box-shadow .2s ease; }
.cf-collection-grid .cg-img{ transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.cf-collection-grid .cg-tile:not(.is-disabled):focus-within .cg-img,
.cf-collection-grid .cg-tile.is-hover .cg-img{ transform: scale(1.06); }
.cf-collection-grid .cg-tile.is-hover{ transform: translateY(-3px); }
.cf-collection-grid .cg-badge{ animation: cfcg-pop .3s cubic-bezier(.2,.7,.2,1) .35s both; }
}
@media (prefers-reduced-motion: no-preference) and (hover: hover){
.cf-collection-grid .cg-tile:not(.is-disabled):hover .cg-img{ transform: scale(1.06); }
.cf-collection-grid .cg-tile:not(.is-disabled):hover{ transform: translateY(-3px); }
}
@keyframes cfcg-rise{ from{ opacity: .82; transform: translateY(8px); } }
@keyframes cfcg-pop{ from{ transform: scale(.9); } }
@media (max-width: 900px){
.cf-collection-grid.is-bento .cg-grid, .cf-collection-grid.is-even .cg-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cf-collection-grid.is-bento .cg-intro, .cf-collection-grid.is-even .cg-intro{ grid-column: 1 / -1; }
.cf-collection-grid.is-even .cg-intro{ grid-template-columns: minmax(0, 1fr); }
.cf-collection-grid.is-bento .cg-tile.is-featured{ grid-column: 1 / -1; grid-row: auto; }
.cf-collection-grid .cg-tile.is-featured .cg-frame{ flex: none; min-height: 0; aspect-ratio: 16 / 10; }
.cf-collection-grid .cg-tile.is-wide-sm{ grid-column: 1 / -1; }
.cf-collection-grid .cg-tile.is-wide-sm .cg-frame{ aspect-ratio: 16 / 9; }
}
@media (max-width: 560px){
.cf-collection-grid.is-bento .cg-grid, .cf-collection-grid.is-even .cg-grid{ grid-template-columns: minmax(0, 1fr); gap: 12px; }
.cf-collection-grid .cg-intro{ padding: 20px; gap: 16px; }
.cf-collection-grid .cg-tile{ padding: 8px; }
.cf-collection-grid .cg-tile.is-featured .cg-frame{ aspect-ratio: 5 / 4; }
.cf-collection-grid .cg-tile.is-featured .cg-cap{ padding: 16px 8px 8px; gap: 16px; }
.cf-collection-grid .cg-tile:not(.is-featured){ flex-direction: row; align-items: flex-start; gap: 16px; }
.cf-collection-grid .cg-tile:not(.is-featured) .cg-frame{
flex: 0 0 104px; width: 104px; min-height: 0; aspect-ratio: 1 / 1; align-self: flex-start; border-radius: 8px;
}
.cf-collection-grid .cg-tile:not(.is-featured) .cg-cap{ flex: 1 1 auto; min-width: 0; padding: 4px 4px 0 0; gap: 12px; }
.cf-collection-grid .cg-tile:not(.is-featured) .cg-text{ font-size: 0.9375rem; line-height: 1.4; }
.cf-collection-grid .cg-tile:not(.is-featured) .cg-detail{ display: none; }
.cf-collection-grid .cg-tile:not(.is-featured) .cg-btn{ min-height: 56px; padding: 0 16px; font-size: 1.125rem; }
}
`;
pieces/offer/collection-grid/specimen.tsx 71 lines
import __studioImaged7da52e6 from "../assets/786e50f94f7b64d5.webp";
import __studioImagea5c16539 from "../assets/5e81955b96fc4c69.webp";
import __studioImage8304b878 from "../assets/1b37a556abc2099a.webp";
import { CollectionGrid } from '../collection-grid';
import { slot } from '../../slots';
export const states = ['default', 'hover', 'active', 'disabled'];
export default function CollectionGridSpecimen({
state = 'default',
}: {
state?: 'default' | 'hover' | 'active' | 'disabled';
}) {
return (
<CollectionGrid
state={state}
headline='What do you need from tonight?'
intro={[
{
lead: 'Shop by the moment, not the scent.',
text: 'Every Stillroom candle is poured for a feeling. Pick yours and go straight to the jars made for it.',
},
]}
facts={['Hand-poured in small batches', 'Soy and coconut wax', 'Cotton wicks']}
featuredIndex={0}
featuredBadge='Start here'
copy={{ count: '{count} candles', countOne: '{count} candle', action: 'Shop {name}' }}
collections={[
{
id: 'wind-down',
name: 'Wind Down',
count: 14,
lead: 'For the last hour of the day.',
detail: 'Lavender, cedar and warm amber that slow the whole room down.',
actionLabel: 'I need to unwind',
image: slot(
'item-1',
__studioImaged7da52e6
),
imageAlt: 'A lit amber candle on a bedside table beside tea and a book at dusk',
},
{
id: 'clear-head',
name: 'Clear Head',
count: 9,
lead: 'For deep-work mornings.',
detail: 'Rosemary, mint and lemon peel that keep the desk feeling fresh.',
actionLabel: 'I need focus',
image: slot(
'item-2',
__studioImagea5c16539
),
imageAlt: 'A white candle burning on a sunlit desk beside a notebook and rosemary',
},
{
id: 'slow-sunday',
name: 'Slow Sunday',
count: 11,
lead: 'For a full table and a long lunch.',
detail: 'Fig, toasted oak and orange zest for warm, busy rooms.',
actionLabel: 'I need cosy',
image: slot(
'item-3',
__studioImage8304b878
),
imageAlt: 'Two lit ceramic candles on a dining table with figs, bread and wine glasses',
},
]}
/>
);
}
| Name | Type | Details |
|---|---|---|
headline OptionalCollectionGrid |
React.ReactNode |
|
intro OptionalCollectionGrid |
{ lead: string; text?: string }[] |
|
facts OptionalCollectionGrid |
string[] |
|
collections RequiredCollectionGrid |
CollectionGridItem[] |
|
featuredIndex OptionalCollectionGrid |
number | null |
|
featuredBadge OptionalCollectionGrid |
string |
|
copy OptionalCollectionGrid |
{ count?: string; countOne?: string; action?: string; factsLabel?: string } |
|
onSelect OptionalCollectionGrid |
(collection: CollectionGridItem, index: number) => void |
|
state OptionalCollectionGrid |
'default' | 'hover' | 'active' | 'disabled' |
|
className OptionalCollectionGrid |
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-ink- 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.
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.
item-3- One image per offer item (item-1, item-2…), shown in stacks and lists.
-
1b37a556abc2099a.webp
image/webp · 70.3 KB
-
2c539f422023a290.webp
image/webp · 115 KB
-
5e81955b96fc4c69.webp
image/webp · 44.4 KB
-
786e50f94f7b64d5.webp
image/webp · 36.2 KB