Problem: “OR” divider.

Solution#

html
<div class="flex items-center gap-4 text-xs uppercase text-slate-400">
  <span class="h-px flex-1 bg-slate-200"></span>or<span class="h-px flex-1 bg-slate-200"></span>
</div>

Why this works#

h-px flex-1 bg lines stretch beside centered text.

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