Skip to content

Callout

This page details CSS classes and variables for Callouts.

VariableDescription
--callout-color-defaultDefault callout color
--callout-border-widthCallout border width
--callout-border-colorCallout border color
--callout-paddingCallout padding
--callout-radiusCallout radius
--callout-title-colorCallout title text color
--callout-title-paddingCallout title padding
--callout-title-sizeCallout title font size
--callout-title-weightCallout title weight

Sizing can be controlled through variables found in Block.

Type colors

Callout types have unique icons and colors, and may have multiple aliases.

Different callouts can be created or modified through a CSS data-callout selector.

For Example:

.editor-callout[data-callout="warning"] {
--callout-color: var(--color-red-rgb);
--callout-icon: triangle-alert;
}
  • --callout-icon is the slug of the icon found in the Lucide icon library.
  • --callout-color is the color of the callout represented as an rgb value.

Currently recognized values are as follows:

  • warning
  • tip
  • success
  • hint
  • quote
  • caution
  • error