Layout tree (as in design/layout.json)
{
"pattern": "features.sketchbook-doodle-cards",
"kind": "features",
"slots": [
"sectionLabel",
"title",
"body",
"items[4..4]"
],
"tree": {
"el": "box",
"gap": 6,
"children": [
{
"el": "grid",
"cols": 12,
"gap": 6,
"align": "end",
"children": [
{
"el": "box",
"span": "1-7",
"gap": 2,
"children": [
{
"el": "text",
"color": "link",
"slot": "sectionLabel",
"role": "label",
"step": 2,
"rotate": -3,
"font": "heading"
},
{
"el": "text",
"slot": "title",
"role": "h2",
"step": 6,
"maxCh": 18,
"mark": true
}
]
},
{
"el": "text",
"span": "8-12",
"color": "textMuted",
"slot": "body",
"role": "lead",
"maxCh": 40
}
]
},
{
"el": "repeat",
"slot": "items",
"min": 4,
"max": 4,
"layout": "grid",
"cols": 4,
"phoneCols": 1,
"gap": 4,
"of": {
"el": "box",
"bg": "surface",
"gap": 2,
"pad": [
3,
3
],
"children": [
{
"el": "media",
"slot": "image",
"aspect": "4/3",
"treatment": "sketch",
"frame": "none"
},
{
"el": "text",
"slot": "title",
"role": "h4",
"step": 2
},
{
"el": "text",
"slot": "body",
"role": "small"
}
]
}
}
]
}
}