Skip to content
Support Yumma CSS by starring us on GitHub!

Font Style

Controls the font style of an element.

Class Properties

fs-i

font-style: italic;

fs-n

font-style: normal;

Italic

This example sets the font style to italic. The text will be displayed in an italicized format.

The quick brown fox jumps over the lazy dog.

<div class="bg-l-indigo-6 p-4 rad-1">
<p class="bg-white fs-sm fs-i p-4 rad-1 ta-c tc-lead">The quick brown fox jumps over the lazy dog.</p>
</div>

Normal

This example sets the font style to normal. The text will be displayed in a standard format without any italicization.

The quick brown fox jumps over the lazy dog.

<div class="bg-l-indigo-6 p-4 rad-1">
<p class="bg-white fs-sm fs-n p-4 rad-1 ta-c tc-lead">The quick brown fox jumps over the lazy dog.</p>
</div>

Utilizing utilities conditionally

Override existing utilities based on the user's screen size or other factors, such as hover states. Learn more about modifiers in our documentation.

Responsive breakpoints

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

<div class="fs-n md:fs-i ..."></div>

Utilizing utilities conditionally

Override existing utilities based on the user's screen size or other factors, such as hover states. Learn more about modifiers in our documentation.

Hover states

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

<div class="fs-n h:fs-i ..."></div>