Skip to content

πŸ“ Text align

The text-align utility allows you to control the horizontal alignment of inline text within an element. It supports both static and responsive variants generated through mixins and loops.

.u--text-{value}
.u--text-{breakpoint}-{value}

Use this utility when:

  • You need to align text content (e.g. center)
  • You want to adjust text alignment at specific breakpoints

This utility supports responsive variants, using breakpoint prefixes like: desktop, laptop, tabletl, tabletm, tablets, mobile.

You can apply them directly in HTML:

<p class="u--text-center u--text-tabletl-left">
Centered on desktop, left-aligned on tablet
</p>

Or extend them in SCSS if you have a custom class:

.c--card-a {
&__title {
@extend .u--text-center;
@extend .u--text-tabletl-left;
}
}