Font Variant Numeric

Utilities to change an element's font variant numeric.

The font-variant-numeric CSS property controls the usage of alternate glyphs for numbers, fractions, and ordinal markers.

Normal (Default)

Use d-fvn-normal to deactivate any alternate glyphs.

Ordinal

The class d-fvn-ordinal forces the use of special glyphs for ordinal markers, like 1st, 2nd, 3rd.

Proportional-Nums

Use d-fvn-proportional to set different sizes for each number.

Tabular-Nums

Use d-fvn-tabular for aligning tabular data and preventing layout shifts of dynamically-changing content. For example, a timer counting down.

Diagonal-Fractions

Use d-fvn-diagonal to display numerator and denominator smaller and separated by a slash.

Unset

Use d-fvn-unset to deactivate other value previously set to font-variant-numeric.

Classes

Class
Output
.d-fvn-normal font-variant-numeric: normal !important;
.d-fvn-ordinal font-variant-numeric: ordinal !important;
.d-fvn-proportional font-variant-numeric: proportional-nums !important;
.d-fvn-tabular font-variant-numeric: tabular-nums !important;
.d-fvn-diagonal font-variant-numeric: diagonal-fractions !important;
.d-fvn-unset font-variant-numeric: unset !important;

Font Variant Numeric documentation last updated Thursday, June 18, 2026