Problem: Mixed-size widgets.
Solution#
<div class="grid gap-4 md:grid-cols-4 auto-rows-[180px]">
<div class="rounded-xl border md:col-span-2 md:row-span-2">big chart</div>
<div class="rounded-xl border">kpi</div>
</div>Why this works#
Spans create the bento layout.
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
