Problem: Asset download rows.
Solution#
<div class="flex items-center gap-4 rounded-xl border p-4">
<span class="grid size-12 place-items-center rounded-lg bg-slate-100 text-xl">📄</span>
<div class="flex-1"><p class="font-medium">Brand kit</p><p class="text-xs text-slate-500">ZIP · 4.2 MB</p></div>
<button class="rounded-lg border px-4 py-2 text-sm">Download</button>
</div>Why this works#
Icon + meta + action row.
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
Related recipes#
cookbook/index|Cookbook index · utilities/index|Utilities reference · patterns/index|Layout patterns
