callout

A callout is an admonition: an icon, a coloured heading, and a body. Six built-in types are selected by class, each shipping a default colour and icon — note, info, tip, warning, error, success.

Preview

Note

Background context the reader should remember.

Info

Neutral information worth surfacing.

Tip

A helpful shortcut or best practice.

Warning

Something to be careful about.

Error

A failure or hard constraint.

Success

Confirm an action completed.

Note

Background context the reader should remember.

Info

Neutral information worth surfacing.

Tip

A helpful shortcut or best practice.

Warning

Something to be careful about.

Error

A failure or hard constraint.

Success

Confirm an action completed.

Example

callout "Note" {
  class = ["note"]
  body = "Background context the reader should remember."
}
callout "Info" {
  class = ["info"]
  body = "Neutral information worth surfacing."
}
callout "Tip" {
  class = ["tip"]
  body = "A helpful shortcut or best practice."
}
callout "Warning" {
  class = ["warning"]
  body = "Something to be careful about."
}
callout "Error" {
  class = ["error"]
  body = "A failure or hard constraint."
}
callout "Success" {
  class = ["success"]
  body = "Confirm an action completed."
}
PropertyTypeRequiredDescription
headingutf8yesInline label — the coloured heading at the top of the callout.
bodyutf8yesThe prose under the heading. Runs through the inline-pattern engine.
ididentifiernoOptional explicit HTML id.
classlist<utf8>noSelects the type: ["note"] / ["tip"] / etc. May also carry user classes.
iconutf8noOverride the default icon (any pack.name from a built-in or declared iconset).

§ 1The six classes

ClassUse
noteBackground context the reader should remember
infoNeutral information worth surfacing
tipA helpful shortcut or best practice
warningSomething to be careful about
successConfirm an action completed
errorA failure or hard constraint

§ 2Custom types

For a custom type, give a class an accent colour and list it in the callout's class — that sets the accent (heading, border, icon) with no CSS — and the icon field picks any glyph. See styling.

Preview

Deploying

A custom type — the deploy class sets its accent colour, and icon picks the glyph.

Deploying

A custom type — the deploy class sets its accent colour, and icon picks the glyph.

Example

callout "Deploying" {
  class = ["deploy"]
  icon = "lucide.rocket"
  body = "A **custom** type — the `deploy` class sets its accent colour, and `icon` picks the glyph."
}
wcl
class "deploy" { accent = "#b48ead" }
callout "Deploying" {
  class = ["deploy"]
  icon  = "lucide.rocket"
  body  = "A custom type — the class sets its accent colour."
}

§ 3Examples

§ 3.1The six callout types

Each built-in admonition type is selected by its class, shipping a default colour and icon.

wcl
callout "Note"    { class = ["note"]    body = "Background context the reader should remember." }
callout "Tip"     { class = ["tip"]     body = "A helpful shortcut or best practice." }
callout "Warning" { class = ["warning"] body = "Something to be careful about." }
callout "Error"   { class = ["error"]   body = "A failure or hard constraint." }

Expected: Four admonitions, each with its type's icon and accent colour.