Layout tree (as in design/layout.json)
{
"pattern": "list.memphis-zigzag-steps",
"kind": "list",
"grid": {
"number": "1-3",
"box": "4-9",
"shape": "11-12"
},
"slots": [
"title",
"items[3..6]"
],
"notes": "The cycling fills and shapes give each step its own colour; the numerals stay in one column so the steps read in order. At phone width the numeral sits above its box and the shapes hide.",
"tree": {
"el": "box",
"gap": 6,
"children": [
{
"el": "text",
"slot": "title",
"role": "h2",
"step": 5,
"leading": "tight"
},
{
"el": "repeat",
"slot": "items",
"min": 3,
"max": 6,
"layout": "grid",
"cols": 1,
"gap": 6,
"of": {
"el": "grid",
"gap": 3,
"align": "center",
"children": [
{
"el": "text",
"span": "1-3",
"color": "accent",
"slot": "number",
"role": "number",
"step": 7
},
{
"el": "box",
"span": "4-9",
"bg": "surfaceAlt",
"gap": 1,
"pad": [
3,
3
],
"border": "all",
"children": [
{
"el": "text",
"slot": "title",
"role": "h3",
"step": 3
},
{
"el": "text",
"slot": "body",
"role": "lead"
}
]
},
{
"el": "shape",
"span": "11-12",
"mobile": "hide",
"alignSelf": "center",
"kind": "triangle",
"size": "md",
"fill": "accent",
"rotate": -8
}
]
}
}
]
}
}