typst-as-lib 0.16.0

Small wrapper for typst that makes it easier to use it as a templating engine
Documentation
1
2
3
4
5
6
7
8
9
10
#let alert(body, fill: red) = {
  set text(white)
  set align(center)
  rect(
    fill: fill,
    inset: 8pt,
    radius: 4pt,
    [*Warning:\ #body*],
  )
}