Actions and feedback
Callout
A highlighted note for documentation and long form content.
Example
<div class="space-y-3">
<div class="callout">
<p class="callout-title"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="12" cy="12" r="10"/><path d="M12 16v-4M12 8h.01"/></svg> Note</p>
<p>Theme tokens follow the seed color, so callouts match your brand.</p>
</div>
<div class="callout callout-warning">
<p class="callout-title"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M10.3 3.9 1.8 18a2 2 0 0 0 1.7 3h17a2 2 0 0 0 1.7-3L13.7 3.9a2 2 0 0 0-3.4 0z"/><path d="M12 9v4M12 17h.01"/></svg> Heads up</p>
<p>This setting affects every project in the workspace.</p>
</div>
<div class="callout callout-success"><p class="callout-title">Tip</p><p>Press <kbd class="kbd kbd-sm">/</kbd> to search.</p></div>
</div>Classes
10 classes. Click a name to copy it. Utilities on the same element always win over component defaults, so any of them can be adjusted with plain utility classes.
| Class | Type | What it does |
|---|---|---|
| Base | Base class of the callout. On a <div> in the example. Sets hidden by default, block display, padding, border, corner radius and background, and 5 custom properties.CSS |
|
| Part | Part of the callout. On a <p> in the example. Sets flex display, alignment, gap, margin, text color and font weight.CSS |
|
| Tone | Primary tone. Not used in the example above. Sets --tone and --tone-fg.CSS |
|
| Tone | Secondary tone. Not used in the example above. Sets --tone, --tone-fg and --tone-tint.CSS |
|
| Tone | Accent tone. Not used in the example above. Sets --tone and --tone-fg.CSS |
|
| Tone | Neutral tone. Not used in the example above. Sets --tone and --tone-fg.CSS |
|
| Tone | Success tone. On a <div> in the example. Sets --tone and --tone-fg.CSS |
|
| Tone | Warning tone. On a <div> in the example. Sets --tone and --tone-fg.CSS |
|
| Tone | Danger tone. Not used in the example above. Sets --tone and --tone-fg.CSS |
|
| Tone | Info tone. Not used in the example above. Sets --tone and --tone-fg.CSS |
Usage
Components ship inside the same stylesheet as the utilities. There is nothing else to install and no script to load: link Monsoon and write the markup.
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/monsooncss">
<!-- Callout: start from the base class, then add modifiers -->
<div class="space-y-3">
<div class="callout">
<p class="callout-title"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="12" cy="12" r="10"/><path d="M12 16v-4M12 8h.01"/></svg> Note</p>
<p>Theme tokens follow the seed color, so callouts match your brand.</p>
</div>
<div class="callout callout-warning">
<p class="callout-title"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M10.3 3.9 1.8 18a2 2 0 0 0 1.7 3h17a2 2 0 0 0 1.7-3L13.7 3.9a2 2 0 0 0-3.4 0z"/><path d="M12 9v4M12 17h.01"/></svg> Heads up</p>
<p>This setting affects every project in the workspace.</p>
</div>
<div class="callout callout-success"><p class="callout-title">Tip</p><p>Press <kbd class="kbd kbd-sm">/</kbd> to search.</p></div>
</div>Theme it with --seed on any ancestor, for example style="--seed: #0d9488", and force a scheme with class="dark" or class="light" on a wrapper.
Accessibility
- Every interactive part shows a visible focus ring with
:focus-visible, and tone colors pair with-foregroundtokens that keep text at 4.5:1 or better in light and dark mode.