Alignment Utilities
The alignment utilities map directly to logical CSS properties, so they work automatically for both LTR and RTL content.Alignment classes
| Class | CSS | When to use |
|---|---|---|
.text-start | text-align: start; | Default left alignment (LTR) or right alignment (RTL) |
.text-center | text-align: center; | Headlines, testimonials, CTA sections |
.text-end | text-align: end; | Pricing tables, metadata, RTL body copy |
Responsive Alignment Strategy
- Mobile-first: Keep paragraphs left-aligned for readability; reserve
.text-centerfor short statements. - Hero sections: Combine
.text-centerwith.max-w-fluid-md mx-autoto keep lines readable across breakpoints. - Data tables: Use
.text-endfor numbers and currency to align decimals cleanly.
Wrap alignment utilities alongside flexbox helpers:
class="flex flex-col items-start text-start md:text-center" gives you nuanced control as layouts shift.
