Skip to content

Font Style

Font style utilities set font-style. They are a small family: italic, oblique, and whatever the browser does when the face has no true italic.

Class font-style
font-italic italic
font-oblique oblique
<p class="font-italic">An italic aside</p>
<p class="font-oblique">An oblique emphasis</p>

italic asks for the italic face. oblique slants the regular face when no italic exists; many fonts render the two identically, so do not rely on the difference for meaning.

These classes are in the separate responsive module: import nightcss/utilities/responsive after the base bundle, or use nightcss/full.

Responsive forms exist (font-sm-italic … font-2xl-oblique), but there is no normal value to switch back. Write font-style: normal in a media query:

@media (min-width: 48rem) {
.aside {
font-style: normal;
}
}

There is no font-style: normal utility. To undo font-italic, write the property in your CSS:

.quote cite {
font-style: normal;
}

See Weight for emphasis that does not depend on a second face.