renderreport 0.2.0

Data-driven report generation with Typst as embedded render engine — no CLI dependency
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// BigNumber Component
// Large metric display for marketing/impact stats

#let big-number(data) = {
  block(width: 100%, fill: color-surface, stroke: (paint: color-primary, thickness: 2pt), radius: 10pt, inset: spacing-4)[
    #align(center)[
      #text(size: 48pt, weight: "bold", fill: color-primary)[#data.value]
      #v(spacing-2)
      #text(size: font-size-lg, weight: "bold", fill: color-text)[#data.label]
      #if data.context != none [
        #v(spacing-2)
        #text(size: font-size-sm, fill: color-text-muted)[#data.context]
      ]
    ]
  ]
}