Problem: Footer socials.

Solution#

html
<div class="flex gap-2">
  <a class="grid size-9 place-items-center rounded-lg border hover:bg-slate-50" aria-label="GitHub">GH</a>
</div>

Why this works#

Square icon buttons + aria-labels.

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