Layout tree (as in design/layout.json)
{
"pattern": "list.risograph-contents-page",
"kind": "list",
"grid": {
"entry": "1-8",
"line": "9-11",
"page": "12-12"
},
"slots": [
"sectionLabel",
"title",
"items[4..8]"
],
"tree": {
"el": "grid",
"gap": 3,
"rowGap": 3,
"children": [
{
"el": "text",
"span": "1-12",
"slot": "sectionLabel",
"role": "eyebrow",
"font": "mono"
},
{
"el": "text",
"span": "1-8",
"slot": "title",
"role": "display",
"step": 6,
"transform": "uppercase",
"leading": "tight",
"maxCh": 16
},
{
"el": "repeat",
"span": "1-12",
"slot": "items",
"min": 4,
"max": 8,
"layout": "list",
"divider": true,
"of": {
"el": "grid",
"gap": 3,
"pad": [
2,
0
],
"align": "baseline",
"children": [
{
"el": "box",
"span": "1-8",
"mobile": "keep",
"dir": "row",
"gap": 4,
"align": "baseline",
"children": [
{
"el": "text",
"color": "link",
"slot": "number",
"role": "number",
"step": 5
},
{
"el": "text",
"slot": "title",
"role": "h3",
"transform": "uppercase"
}
]
},
{
"el": "text",
"span": "9-11",
"mobile": "hide",
"slot": "body",
"role": "small",
"maxCh": 40
},
{
"el": "text",
"span": "12-12",
"slot": "meta",
"role": "label",
"font": "mono"
}
]
}
}
]
}
}