Problem: FAB.
Solution#
<button class="fixed bottom-6 right-6 grid size-14 place-items-center rounded-full bg-blue-600 text-2xl text-white shadow-xl hover:scale-105 transition" aria-label="Compose">+</button>Why this works#
Fixed circle with scale feedback.
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
