#let init(body) = {
  set page(fill: rgb("#0d1117"))
  set text(rgb("#f0f6fc"))
  show raw.where(block: false): it => box(fill: luma(50), text(size: 0.9em, white, it.text), inset: 3pt, radius: 2pt, baseline: 20%)
  show raw.where(block: true): it => block(fill: luma(50), text(size: 0.9em, white, it.text), inset: 8pt, radius: 4pt, width: 100%)
  body
}

#let blk(stroke: none, fill: none, text) = block(
  stroke: (left: 2pt + stroke, rest: none),
  fill: fill,
  inset: 8pt,
  text
)

#let note(text) = blk(
  stroke: blue,
  [*Note:* ] + text
)

#let example(head: none, body) = blk(
  stroke: green,
  [*Example:* ] + head + body
)