Layout tree (as in design/layout.json)
{
"pattern": "pricing.y2k-chrome-pill-plans",
"kind": "pricing",
"grid": {
"title": "3-10",
"plans": "1-12"
},
"slots": [
"title",
"plans[2..4]"
],
"tree": {
"el": "grid",
"gap": 4,
"rowGap": 6,
"children": [
{
"el": "text",
"span": "3-10",
"slot": "title",
"role": "h2",
"align": "center",
"transform": "uppercase",
"weight": 700,
"tracking": "tight",
"leading": "tight"
},
{
"el": "repeat",
"span": "1-12",
"slot": "plans",
"min": 2,
"max": 4,
"layout": "grid",
"cols": 2,
"gap": 4,
"of": {
"el": "box",
"bg": "surface",
"gap": 2,
"pad": [
4,
4
],
"border": "all",
"children": [
{
"el": "text",
"slot": "label",
"role": "label",
"transform": "uppercase",
"font": "mono"
},
{
"el": "text",
"slot": "title",
"role": "h3"
},
{
"el": "text",
"slot": "number",
"role": "number",
"step": 6,
"weight": 700
},
{
"el": "text",
"slot": "body",
"role": "body"
},
{
"el": "button",
"slot": "cta",
"variant": "primary",
"size": "lg"
}
]
}
}
]
}
}