Layout tree (as in design/layout.json)
{
"pattern": "contact.desktop-mail-compose",
"kind": "contact",
"grid": {
"compose": "1-8",
"info": "9-12"
},
"slots": [
"caption",
"date",
"title",
"body",
"contact",
"sectionLabel",
"email",
"phone",
"hours",
"image"
],
"tree": {
"el": "grid",
"gap": 6,
"align": "start",
"children": [
{
"el": "box",
"span": "1-8",
"bg": "surface",
"gap": 0,
"pad": 0,
"children": [
{
"el": "box",
"dir": "row",
"gap": 3,
"pad": [
2,
4
],
"align": "center",
"justify": "between",
"border": "bottom",
"children": [
{
"el": "text",
"color": "heading",
"slot": "caption",
"role": "label",
"font": "mono"
},
{
"el": "text",
"mobile": "hide",
"color": "textMuted",
"slot": "date",
"role": "label",
"font": "mono"
}
]
},
{
"el": "box",
"gap": 5,
"pad": [
8,
8
],
"children": [
{
"el": "text",
"slot": "title",
"role": "h2",
"step": 5,
"weight": 700,
"tracking": "tight",
"leading": "tight"
},
{
"el": "text",
"color": "textMuted",
"slot": "body",
"role": "body",
"maxCh": 56
},
{
"el": "form",
"slot": "contact",
"fields": [
"name",
"email",
"message"
]
}
]
}
]
},
{
"el": "box",
"span": "9-12",
"gap": 4,
"children": [
{
"el": "box",
"bg": "surface",
"gap": 1,
"pad": [
5,
5
],
"children": [
{
"el": "text",
"color": "textMuted",
"slot": "sectionLabel",
"role": "label",
"font": "mono"
},
{
"el": "text",
"slot": "email",
"role": "h4",
"weight": 700
}
]
},
{
"el": "box",
"bg": "surface",
"gap": 1,
"pad": [
5,
5
],
"children": [
{
"el": "text",
"slot": "phone",
"role": "body",
"weight": 600
},
{
"el": "text",
"color": "textMuted",
"slot": "hours",
"role": "small"
}
]
},
{
"el": "media",
"mobile": "hide",
"slot": "image",
"aspect": "4/3",
"treatment": "pixel",
"frame": "none"
}
]
}
]
}
}