Layout tree (as in design/layout.json)
{
"pattern": "hero.swiss-numbered-poster",
"kind": "hero",
"grid": {
"index": "1-3",
"headline": "4-12",
"facts": "4-12"
},
"slots": [
"index",
"headline",
"subhead",
"facts[3..3]",
"cta"
],
"notes": "Numeral at step 8 in the accent colour (the one accent on screen). Facts sit under a hairline in three equal sub-columns.",
"tree": {
"el": "grid",
"gap": 3,
"rowGap": 5,
"align": "start",
"children": [
{
"el": "text",
"span": "1-3",
"color": "accent",
"slot": "index",
"role": "number",
"step": 8,
"weight": 700,
"tracking": "tight",
"leading": "tight"
},
{
"el": "box",
"span": "4-12",
"gap": 4,
"children": [
{
"el": "text",
"slot": "headline",
"role": "h1",
"step": 5,
"weight": 700,
"tracking": "tight",
"leading": "tight",
"maxCh": 18
},
{
"el": "text",
"slot": "subhead",
"role": "lead",
"maxCh": 48
}
]
},
{
"el": "divider",
"span": "4-12",
"weight": 1
},
{
"el": "repeat",
"span": "4-12",
"slot": "facts",
"min": 3,
"max": 3,
"layout": "grid",
"cols": 3,
"gap": 3,
"of": {
"el": "box",
"gap": 1,
"children": [
{
"el": "text",
"slot": "title",
"role": "label",
"weight": 700
},
{
"el": "text",
"color": "textMuted",
"slot": "body",
"role": "small"
}
]
}
},
{
"el": "button",
"span": "4-7",
"slot": "cta",
"variant": "underline",
"arrow": true
}
]
}
}