Utilities for controlling the variant of numbers.
Use the ordinal utility to enable special glyphs for the ordinal markers in fonts that support them:
Use the slashed-zero utility to force a zero with a slash in fonts that support them:
Use the lining-nums utility to use numeric glyphs that are aligned by their baseline in fonts that support them:
Use the oldstyle-nums utility to use numeric glyphs where some numbers have descenders in fonts that support them:
Use the proportional-nums utility to use numeric glyphs that have proportional widths in fonts that support them:
Use the tabular-nums utility to use numeric glyphs that have uniform/tabular widths in fonts that support them:
Use the diagonal-fractions utility to replace numbers separated by a slash with common diagonal fractions in fonts that support them:
Use the stacked-fractions utility to replace numbers separated by a slash with common stacked fractions in fonts that support them:
The font-variant-numeric utilities are composable so you can enable multiple variants by combining them:
Use the normal-nums property to reset numeric font variants:
<!-- [!code classes:slashed-zero,tabular-nums,normal-nums] -->
<p class="slashed-zero tabular-nums md:normal-nums ...">
<!-- ... -->
</p>