Font Style
Controls the font style of an element.
| 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.
<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.