Text Utility Classes Documentation

This documentation covers the available SCSS utility classes for text styling, including alignment, font styles, weights, decorations, and more.

Text Ellipsis (Multi-line Truncation)

ClassDescription
.text-dotted-1 to .text-dotted-10Truncates text after 1-10 lines with an ellipsis.

This text will be truncated after 2 lines with an ellipsis. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Text Alignment

ClassDescription
.text-leftAligns text to the left
.text-centerCenters text
.text-rightAligns text to the right
.text-justifyJustifies text
.text-startAligns text to the start
.text-endAligns text to the end
.text-inheritInherits text alignment

This text is centered.

Font Styles

ClassDescription
.text-i, .text-italicSets font style to italic
.text-n, .text-normalSets font style to normal
.text-obliqueSets font style to oblique

This text is italic.

Usage Examples

Centered bold text with ellipsis


<p class="text-center text-bold text-ellipsis">Centered bold text with ellipsis</p>
<span class="text-dotted-2 text-uppercase">Two-line truncated UPPERCASE text</span>
<label class="mandatory">Required Field</label>
<p class="text-500 text-dashed">Medium weight text with dashed underline</p>