Universe

A package to create callouts in typst, inspired by the Obsidan callouts.

Use preset callouts, or create your own!

A list of example callouts, each being a wide rectangle color block with text: a title and its content. An example: A wide dark blue callout, with a title of "Info" and its content is "This is information". The rest of the callouts are as imaginative to show different usages and customisation options.

Usage

Import the package

#import "@preview/babble-bubbles:0.2.0": *

Or grab it locally and use:

#import "@local/babble-bubbles:0.2.0": *

Presets

Here you can find a list of presets and an example usage of each. You can customise them with the same parameters as the callout function. See the Custom callouts for more details.

#info[This is information]

#success[I'm making a note here: huge success]

#check[This is checked!]

#warning[First warning...]

#note[My incredibly useful note]

#question[Question?]

#example[An example make things interesting]

#quote[To be or not to be]

See more in examples

Custom callouts

callout

Create a default callout. Tweak the parameters to create your own!

callout(
    body,
    kind: none,
    title: none,
    fill: none,
    title-color: none,
    body-color: none,
    icon: none,
    radius: 4pt,
    stroke: none,
    width: 100%,
)

Tips

You can create aliases to more easily handle your newly create callouts or customise presets by using with.

#let mycallout = callout.with(title: "My callout")

#mycallout[Hey this is my custom callout!]

See more in examples