Layout tree (as in design/layout.json)
{
"pattern": "stats.neobrutal-number-tiles",
"kind": "stats",
"grid": {
"title": "1-7",
"note": "9-12",
"tiles": "1-12"
},
"slots": [
"title",
"body",
"stats[3..4]"
],
"bg": "surfaceAlt",
"tree": {
"el": "grid",
"gap": 4,
"rowGap": 5,
"children": [
{
"el": "text",
"span": "1-7",
"slot": "title",
"role": "h2",
"step": 5,
"maxCh": 20
},
{
"el": "text",
"span": "9-12",
"alignSelf": "end",
"slot": "body",
"role": "body",
"maxCh": 34
},
{
"el": "repeat",
"span": "1-12",
"slot": "stats",
"min": 3,
"max": 4,
"layout": "grid",
"cols": 4,
"gap": 3,
"of": {
"el": "box",
"bg": "surface",
"gap": 1,
"pad": [
5,
4
],
"border": "all",
"children": [
{
"el": "text",
"slot": "number",
"role": "number",
"step": 7,
"tracking": "tight",
"leading": "tight"
},
{
"el": "text",
"slot": "title",
"role": "label",
"weight": 700
}
]
}
}
]
}
}