Status badges in all flavors.
The component#
<div class="flex flex-wrap gap-2"><span class="rounded-full bg-emerald-100 px-2.5 py-0.5 text-xs font-medium text-emerald-700">Active</span><span class="rounded-full bg-amber-100 px-2.5 py-0.5 text-xs font-medium text-amber-700">Pending</span><span class="rounded-full bg-red-100 px-2.5 py-0.5 text-xs font-medium text-red-700">Failed</span></div>Responsive & dark#
Add dark: twins to every surface and text color (bg-white dark:bg-slate-900, border-slate-200 dark:border-slate-800). Because this recipe is pure utilities, dark mode is a per-class decision — see concepts/dark-mode-strategies|dark mode strategies.
Customization#
- Swap palette classes to re-theme instantly
- Adjust radii (rounded-lg → rounded-2xl) for tone
- Add
transition+ state variants for polish - Extract into a framework component when reused 3+ times
Related recipes#
recipes/index|Recipe index · components/index|Design components
