Skip to main content

Font Family

Utilities for controlling the font family of an element.

CSS Property:font-family
Classes:3

Font Family Classes

ClassCSS
font-sansfont-family: var(--font-sans);
font-seriffont-family: var(--font-serif);
font-monofont-family: var(--font-mono);

Arbitrary Values

You can use arbitrary values with square bracket notation when you need a specific value not included in the default scale.

[font-family:value]

Responsive Variants

Apply font family utilities at specific breakpoints using responsive prefixes.

BreakpointPrefixExample
640px+sm:sm:font-sans
768px+md:md:font-sans
1024px+lg:lg:font-sans
1280px+xl:xl:font-sans
1536px+2xl:2xl:font-sans