Layout tree (as in design/layout.json)
{
"pattern": "gallery.y2k-chrome-carousel",
"kind": "gallery",
"grid": {
"title": "1-8",
"controls": "10-12",
"track": "full"
},
"slots": [
"title",
"cta",
"cta2",
"items[4..8]"
],
"tree": {
"el": "box",
"gap": 4,
"children": [
{
"el": "grid",
"gap": 3,
"align": "end",
"children": [
{
"el": "text",
"span": "1-8",
"slot": "title",
"role": "h2",
"transform": "uppercase",
"weight": 700,
"tracking": "tight",
"leading": "tight"
},
{
"el": "box",
"span": "10-12",
"dir": "row",
"gap": 1,
"justify": "end",
"children": [
{
"el": "button",
"slot": "cta",
"variant": "secondary",
"size": "sm"
},
{
"el": "button",
"slot": "cta2",
"variant": "secondary",
"size": "sm"
}
]
}
]
},
{
"el": "repeat",
"slot": "items",
"min": 4,
"max": 8,
"layout": "carousel",
"gap": 3,
"of": {
"el": "box",
"gap": 1,
"children": [
{
"el": "media",
"slot": "image",
"aspect": "3/4",
"treatment": "gradient-mesh",
"frame": "rounded"
},
{
"el": "text",
"slot": "label",
"role": "label",
"transform": "uppercase",
"font": "mono"
}
]
}
}
]
}
}