Problem: Note/tip/warn/danger.

Solution#

html
<div class="space-y-3">
  <div class="rounded-lg border-l-4 border-blue-500 bg-blue-50 p-4 text-sm text-blue-900">Note</div>
  <div class="rounded-lg border-l-4 border-emerald-500 bg-emerald-50 p-4 text-sm text-emerald-900">Tip</div>
  <div class="rounded-lg border-l-4 border-amber-500 bg-amber-50 p-4 text-sm text-amber-900">Warning</div>
</div>

Why this works#

Border-rail callouts in four semantic flavors.

Variants#

  • Responsive: add screen prefixes to the core classes
  • Dark: pair each color utility with its dark: twin
  • Animated: add transition + a state variant for motion

cookbook/index|Cookbook index · utilities/index|Utilities reference · patterns/index|Layout patterns