root = Card([header, kpiRow, trendSection, productsSection, actions])
header = CardHeader("Monthly Sales Check", "March 2025")
kpiRow = Card([revenueCard, conversionCard], "clear", "row", "l")
revenueCard = Card([revenueLabel, revenueValue], "sunk")
revenueLabel = TextContent("Revenue this month", "small")
revenueValue = TextContent("$84,200", "large-heavy")
conversionCard = Card([conversionLabel, conversionValue], "sunk")
conversionLabel = TextContent("Conversion rate", "small")
conversionValue = TextContent("2.8%", "large-heavy")
trendSection = Card([trendHeading, trendChart], "sunk")
trendHeading = Heading("Revenue — last 6 months", "h3")
trendChart = LineChart(["Oct", "Nov", "Dec", "Jan", "Feb", "Mar"], [revenueSeries], "natural", "Month", "Revenue (USD)")
revenueSeries = Series("Revenue", [52300, 58100, 64200, 59800, 72400, 84200])
productsSection = Card([productsHeading, productsTable], "sunk")
productsHeading = Heading("Best-selling products", "h3")
productsTable = Table([productCol, unitsCol])
productCol = Col("Product", ["Desk Pro", "Ergo Chair", "Monitor Stand"])
unitsCol = Col("Units sold", [412, 356, 289])
actions = Buttons([downloadBtn])
downloadBtn = Button("Download numbers", null, "primary")