Layout tree (as in design/layout.json)
{
"pattern": "list.desktop-file-explorer",
"kind": "list",
"grid": {
"sidebar": "1-3",
"files": "4-12"
},
"slots": [
"caption",
"index",
"title",
"cta",
"sectionLabel",
"pages",
"items[5..7]",
"hours",
"date"
],
"tree": {
"el": "box",
"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": "index",
"role": "label",
"font": "mono"
}
]
},
{
"el": "box",
"dir": "row",
"gap": 4,
"pad": [
3,
4
],
"align": "center",
"justify": "between",
"border": "bottom",
"children": [
{
"el": "text",
"slot": "title",
"role": "h2",
"step": 3,
"weight": 700,
"tracking": "tight",
"leading": "tight"
},
{
"el": "button",
"slot": "cta",
"variant": "secondary",
"size": "sm"
}
]
},
{
"el": "grid",
"gap": 0,
"align": "start",
"children": [
{
"el": "box",
"span": "1-3",
"mobile": "hide",
"gap": 3,
"pad": [
5,
4
],
"children": [
{
"el": "text",
"color": "textMuted",
"slot": "sectionLabel",
"role": "label",
"font": "mono"
},
{
"el": "nav-links",
"slot": "pages",
"dir": "col",
"style": "plain"
}
]
},
{
"el": "repeat",
"span": "4-12",
"slot": "items",
"min": 5,
"max": 7,
"layout": "list",
"gap": 0,
"divider": true,
"of": {
"el": "box",
"mobile": "keep",
"dir": "row",
"gap": 4,
"pad": [
3,
4
],
"align": "center",
"children": [
{
"el": "shape",
"kind": "square",
"size": "sm",
"fill": "accent2"
},
{
"el": "box",
"gap": 1,
"children": [
{
"el": "text",
"slot": "title",
"role": "body",
"weight": 600
},
{
"el": "text",
"color": "textMuted",
"slot": "body",
"role": "small",
"maxCh": 70
}
]
},
{
"el": "text",
"mobile": "hide",
"color": "textMuted",
"slot": "meta",
"role": "label",
"font": "mono"
}
]
}
}
]
},
{
"el": "box",
"dir": "row",
"gap": 4,
"pad": [
2,
4
],
"align": "center",
"justify": "between",
"border": "top",
"children": [
{
"el": "text",
"color": "textMuted",
"slot": "hours",
"role": "label",
"font": "mono"
},
{
"el": "text",
"color": "textMuted",
"slot": "date",
"role": "label",
"font": "mono"
}
]
}
]
}
}