Callout Plugin
The Callout plugin provides themed notification boxes for highlighting important information, warnings, errors, success messages, and general notes.Installation
Usage
Features
- Five themed styles: default, info, success, warning, error
- Distinct colors and borders for each theme
- Keyboard shortcut:
< - HTML, Markdown, and Email export
- Supports all text marks (bold, italic, etc.)
- Supports alignment and depth
Options
Element Type
Default Props
Theme Styles
Each theme has distinct colors:Default
- Color:
#374151(dark gray) - Border:
4px solid #9ca3af(gray) - Background:
#f3f4f6(light gray)
Info
- Color:
#1e3a5f(dark blue) - Border:
4px solid #3b82f6(blue) - Background:
#eff6ff(light blue)
Success
- Color:
#14532d(dark green) - Border:
4px solid #22c55e(green) - Background:
#f0fdf4(light green)
Warning
- Color:
#713f12(dark yellow) - Border:
4px solid #eab308(yellow) - Background:
#fefce8(light yellow)
Error
- Color:
#7f1d1d(dark red) - Border:
4px solid #ef4444(red) - Background:
#fef2f2(light red)
Commands
Parsers
HTML
Deserialize: Converts<dl> or <div> tags with data-theme attribute
Serialize: Outputs styled callout box
Markdown
Exports as blockquote (Markdown doesn’t have native callout support):Examples
Basic Usage
Insert Callout with Theme
Change Callout Theme
Using Keyboard Shortcut
Type< at the start of an empty paragraph, then press Space:
All Theme Examples
Use Cases
Info Callouts
- Additional context
- Tips and hints
- Reference information
Success Callouts
- Completion messages
- Best practices
- Achievements
Warning Callouts
- Deprecation notices
- Important considerations
- Breaking changes
Error Callouts
- Common mistakes
- Critical warnings
- Security notices
Default Callouts
- General notes
- Neutral information
- Asides
Related
- Blockquote Plugin - Quote blocks
- Paragraph Plugin - Basic text content
- Elements API - Manipulate element properties