Skip to content

Font style

The font-style utility allows you to quickly apply text styles such as italic or normal to elements. It supports both static and responsive variants generated through mixins and loops.


All classes follow the structure:

.u--font-style-{value}
.u--font-style-{breakpoint}-{value}

Use this utility when:

  • You want to apply different text styling (e.g., italic, normal)
  • You need to toggle text styling styles at specific breakpoints

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


In HTML

<p class="u--font-style-italic">This text is italic.</p>
<p class="u--font-style-normal u--font-style-tablets-italic">Responsive font style</p>

In CSS

.c--card-a {
@extend .u--font-style-italic;
}

Knowledge Check

Test your understanding of this section

Loading questions...