Layout tree (as in design/layout.json)
{
"pattern": "contact.hairline-form-cells",
"kind": "contact",
"grid": {
"copy": "1-5",
"form": "7-12"
},
"slots": [
"sectionLabel",
"title",
"body",
"facts[3..4]",
"label",
"contact"
],
"tree": {
"el": "grid",
"gap": 6,
"children": [
{
"el": "box",
"span": "1-5",
"gap": 5,
"children": [
{
"el": "text",
"slot": "sectionLabel",
"role": "eyebrow",
"transform": "uppercase",
"weight": 400,
"tracking": "wide",
"font": "mono"
},
{
"el": "text",
"slot": "title",
"role": "h2",
"step": 5,
"weight": 500,
"tracking": "tight",
"leading": "tight",
"maxCh": 14
},
{
"el": "text",
"color": "textMuted",
"slot": "body",
"role": "body",
"maxCh": 48
},
{
"el": "box",
"gap": 3,
"children": [
{
"el": "divider"
},
{
"el": "repeat",
"slot": "facts",
"min": 3,
"max": 4,
"layout": "list",
"gap": 3,
"divider": true,
"of": {
"el": "box",
"mobile": "keep",
"dir": "row",
"gap": 4,
"align": "baseline",
"justify": "between",
"children": [
{
"el": "text",
"color": "textMuted",
"slot": "label",
"role": "small",
"transform": "uppercase",
"tracking": "wide",
"font": "mono"
},
{
"el": "text",
"slot": "title",
"role": "small"
}
]
}
}
]
}
]
},
{
"el": "box",
"span": "7-12",
"gap": 5,
"pad": [
8,
6
],
"border": "all",
"children": [
{
"el": "text",
"color": "textMuted",
"slot": "label",
"role": "small",
"transform": "uppercase",
"tracking": "wide",
"font": "mono"
},
{
"el": "form",
"slot": "contact",
"fields": [
"name",
"email",
"message"
]
}
]
}
]
}
}