text-left/center/right/justify/start/end. This family contains 6 generated classes in Nakshora 3.1.

Classes#

ClassGenerated CSS
text-lefttext-align: left;
text-centertext-align: center;
text-righttext-align: right;
text-justifytext-align: justify;
text-starttext-align: start;
text-endtext-align: end;

Example#

example
html
<div class="text-center">
  <h2>Centered hero copy</h2>
</div>

Responsive & variants#

Every class here accepts screen prefixes (xxs:5xl:) and state variants — md:hover:p-4 style stacks compile to a single media query. See responsive/index|Responsive design and variants/index|Variants.

Best practices#

  • Logical start/end beat left/right for RTL support
  • Justify needs hyphenation to avoid rivers

Common mistakes#

  • text-center on a flex container does nothing — use justify-*

colors/index|Text color · utilities/typography/font-size|Font size