Layout tree (as in design/layout.json)
{
"pattern": "faq.neumorphism-pressed-list",
"kind": "faq",
"slots": [
"sectionLabel",
"title",
"body",
"cta",
"faqs[5..5]"
],
"tree": {
"el": "grid",
"gap": 8,
"align": "start",
"children": [
{
"el": "box",
"span": "1-4",
"gap": 5,
"children": [
{
"el": "text",
"color": "link",
"slot": "sectionLabel",
"role": "label",
"transform": "uppercase",
"tracking": "wide"
},
{
"el": "text",
"slot": "title",
"role": "h2",
"step": 5,
"weight": 700,
"tracking": "tight",
"leading": "tight",
"maxCh": 18
},
{
"el": "text",
"color": "textMuted",
"slot": "body",
"role": "body",
"maxCh": 46
},
{
"el": "button",
"slot": "cta",
"variant": "secondary",
"arrow": true
}
]
},
{
"el": "repeat",
"span": "5-12",
"slot": "faqs",
"min": 5,
"max": 5,
"layout": "list",
"gap": 6,
"of": {
"el": "box",
"mobile": "keep",
"bg": "surface",
"dir": "row",
"gap": 5,
"pad": [
6,
6
],
"align": "start",
"children": [
{
"el": "box",
"bg": "surface",
"dir": "row",
"pad": [
2,
3
],
"align": "center",
"justify": "center",
"children": [
{
"el": "text",
"color": "link",
"slot": "number",
"role": "label",
"font": "mono"
}
]
},
{
"el": "box",
"gap": 2,
"children": [
{
"el": "text",
"slot": "title",
"role": "h4",
"step": 1,
"weight": 600
},
{
"el": "text",
"color": "textMuted",
"slot": "body",
"role": "small",
"maxCh": 64
}
]
}
]
}
}
]
}
}