Introduction
CSS Classes
React Components
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.
| Class name prefix | CSS properties |
|---|---|
| fon-fam-* | font-family |
| Class name suffix | CSS properties value |
|---|---|
| *-primary | var(--cssville-font-family-primary) |
| *-secondary | var(--cssville-font-family-secondary) |
| *-code | var(--cssville-font-family-code) |
.fon-fam-primary {
font-family: var(--cssville-font-family-primary);
}