Layout tree (as in design/layout.json)
{
"pattern": "stats.claymorphism-scoreboard",
"kind": "stats",
"grid": {
"intro": "1-4",
"scores": "5-12"
},
"slots": [
"title",
"body",
"stats[4..4]"
],
"tree": {
"el": "box",
"bg": "surfaceAlt",
"pad": [
10,
10
],
"children": [
{
"el": "grid",
"gap": 8,
"align": "center",
"children": [
{
"el": "box",
"span": "1-4",
"gap": 3,
"justify": "center",
"children": [
{
"el": "text",
"slot": "title",
"role": "h2",
"step": 5,
"weight": 700,
"tracking": "tight",
"leading": "tight",
"maxCh": 16
},
{
"el": "text",
"slot": "body",
"role": "body",
"maxCh": 32
}
]
},
{
"el": "repeat",
"span": "5-12",
"slot": "stats",
"min": 4,
"max": 4,
"layout": "grid",
"cols": 2,
"phoneCols": 2,
"gap": 4,
"of": {
"el": "box",
"bg": "surface",
"gap": 1,
"pad": [
6,
6
],
"children": [
{
"el": "text",
"slot": "number",
"role": "number",
"step": 8,
"weight": 700,
"tracking": "tight"
},
{
"el": "text",
"slot": "title",
"role": "body",
"weight": 600
},
{
"el": "text",
"color": "textMuted",
"slot": "meta",
"role": "small"
}
]
}
}
]
}
]
}
}