Loading...

font-family

Cssville has 3 utility classes for font-family. Add one to an element's class attribute to set the property, for example fon-fam-primary. Put a breakpoint name in front of a class to apply it only on screens up to that width, as in md-fon-fam-primary. Add -hover to the end to apply a class only on hover, as in fon-fam-primary-hover. Getting started explains how class names are built.

CSS class prefixes and related properties

Class name prefixCSS properties
fon-fam-*font-family

CSS class suffixes and property values

Class name suffixCSS properties value
*-primaryvar(--cssville-font-family-primary)
*-secondaryvar(--cssville-font-family-secondary)
*-codevar(--cssville-font-family-code)

fon-fam: font-family

.fon-fam-primary.fon-fam-primary-hover.fon-fam-secondary.fon-fam-secondary-hover.fon-fam-code.fon-fam-code-hover
.fon-fam-primary {
  font-family: var(--cssville-font-family-primary);
}
© Cssville 2026
Hosted by Vercel.Protected by Cloudback.