Problem: Slide-in side panel.

Solution#

html
<aside class="fixed inset-y-0 right-0 w-80 max-w-full bg-white shadow-2xl translate-x-full transition-transform open:translate-x-0">…</aside>

Why this works#

translate-x-full parks it off-screen; removing the class slides it in (wire with your framework of choice).

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