Layout tree (as in design/layout.json)
{
"pattern": "pricing.frosted-segmented-pane",
"kind": "pricing",
"grid": {
"header": "1-12",
"pane": "1-12"
},
"slots": [
"title",
"sectionLabel",
"plans[2..3]"
],
"notes": "The recommended segment gets a second frost layer (surfaceAlt) inside the pane and a primary button.",
"tree": {
"el": "box",
"gap": 5,
"children": [
{
"el": "box",
"mobile": "keep",
"dir": "row",
"gap": 3,
"align": "end",
"justify": "between",
"wrap": true,
"children": [
{
"el": "text",
"slot": "title",
"role": "h2",
"step": 4,
"weight": 600,
"tracking": "tight",
"maxCh": 20
},
{
"el": "text",
"color": "textMuted",
"slot": "sectionLabel",
"role": "small"
}
]
},
{
"el": "box",
"bg": "surface",
"pad": [
2,
2
],
"border": "all",
"children": [
{
"el": "repeat",
"slot": "plans",
"min": 2,
"max": 3,
"layout": "grid",
"cols": 3,
"gap": 0,
"divider": true,
"of": {
"el": "box",
"gap": 3,
"pad": [
4,
4
],
"children": [
{
"el": "text",
"slot": "title",
"role": "h4",
"weight": 600
},
{
"el": "text",
"slot": "number",
"role": "number",
"step": 5,
"weight": 600,
"tracking": "tight"
},
{
"el": "text",
"color": "textMuted",
"slot": "body",
"role": "small",
"maxCh": 34
},
{
"el": "button",
"slot": "cta",
"variant": "secondary",
"arrow": true
}
]
}
}
]
}
]
}
}