Problem: Docs headings with #.
Solution#
<h2 id="setup" class="group scroll-mt-24">Setup <a href="#setup" class="opacity-0 group-hover:opacity-100 text-blue-500">#</a></h2>Why this works#
Hover-revealed hash links.
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
