Asset list.
The component#
<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 MB</p></div><button class="rounded-lg border px-4 py-2 text-sm">Download</button></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
