Problem: Cards in a row should match heights.

Solution#

html
<div class="grid md:grid-cols-3 gap-6 items-stretch">
  <div class="flex flex-col rounded-xl border p-6">
    <p class="flex-1">Content of any length…</p>
    <button class="mt-auto pt-4">Action</button>
  </div>
</div>

Why this works#

Grid stretches by default; flex-col + mt-auto pins the action to the card bottom.

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