Font Style
Controls the font style of an element.
Widely available
This feature is well established and works across many devices and browser versions.
Chrome
Edge
Firefox
Safari
| Class | Style |
|---|---|
fs-i | font-style: italic; |
fs-n | font-style: normal; |
Normal
Initial value
The text will be displayed in a standard format without any italicization.
Sphinx of black quartz, judge my vow.
<p class="fs-lg fs-n ta-c tc-slate">Sphinx of black quartz, judge my vow.</p>Italic
The text will be displayed in an italicized format.
Sphinx of black quartz, judge my vow.
<p class="fs-lg fs-i ta-c tc-slate">Sphinx of black quartz, judge my vow.</p>Using utility variants
Learn how to override existing utilities based on the user's screen size or other factors, such as hover states.
Targeting different viewports
You can combine responsive breakpoints like sm:fs-*, md:fs-*, lg:fs-*, and xxl:fs-* to allow targeting specific utilities in different viewports.
Targeting hover states
Alternatively, you can apply :hover by using h:fs-* utility to override elements and change their values when hovering over them.