Skip to content

CSS: callout ​

div[class~="instui-callout"] — Inline information alert for a short reminder or note.

✅ Use Callout when:

  • You need to highlight important information or reminders inline

  • The message is relatively brief (a sentence to a short paragraph)

  • The alert should draw attention without interrupting the main flow 🚫 Don't use Callout when:

  • The message requires interaction or multiple actions — use a Modal or Alert Dialog

  • The content is the main focus of the page — use a Card or Hero layout instead

Accessibility ​

  • Ensure the alert role is properly applied (role="alert" or role="status")
  • Use semantic color contrast that meets WCAG AA standards
  • Don't rely on color alone to convey meaning

Usage ​

css
@import "@pantoken/plugin-layouts/layouts.css";

Examples ​

Slots ​

SlotDescription
messageAlert message content

Parts ​

PartDescription
.instui-contentContainer for the text content.
.instui-iconOptional icon to the left of the content.

Pseudo-elements ​

Pseudo-elementDescription
::before—

States ​

StateDescription
:optional—

Tokens consumed ​

TokenTypeValue
--instui-color-info-background——
--instui-color-info-border——
--instui-color-info-text——
--instui-radius-medium——
--instui-size-small<length>—
--instui-space-medium——
--instui-space-small——