Problem: Feature matrix.
Solution#
<table class="w-full text-sm">
<thead><tr><th class="text-left py-3">Feature</th><th>Free</th><th class="text-blue-600">Pro</th></tr></thead>
<tbody class="divide-y text-center [&>tr>td:first-child]:text-left">
<tr><td class="py-2">Projects</td><td>3</td><td>∞</td></tr>
</tbody>
</table>Why this works#
Centered cells, left-aligned labels, highlighted column.
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
