TypographyFont Style

Font Style

Controls the font style of an element.

ClassStyle
fs-ifont-style: italic;
fs-nfont-style: normal;

Normal

Initial value

The text will be displayed in a standard format without any italicization.

<div class="bg-indigo-1 p-4 rad-1">
<p class="bg-white fs-lg fs-n p-4 rad-1 ta-c tc-slate">Sphinx of black quartz, judge my vow.</p>
</div>

Italic

The text will be displayed in an italicized format.

<div class="bg-indigo-1 p-4 rad-1">
<p class="bg-white fs-lg fs-i p-4 rad-1 ta-c tc-slate">Sphinx of black quartz, judge my vow.</p>
</div>

Using utility variants

Learn how to override existing utilities based on the user's screen size or other factors, such as hover states.

Using media queries

You can combine responsive breakpoints like sm:fs-*, md:fs-*, lg:fs-*, and xxl:fs-* to allow targeting specific utilities in different viewports.

Using hover states

Alternatively, you can apply :hover by using h:fs-* utility to override elements and change their values when hovering over them.