Syntax

Font Variant Numeric

Controlling the usage of alternate glyphs for numbers, fractions, and ordinal markers.

🚧This page is still under construction and some content may not be complete.

Overview

ClassDeclarations
font-variant-numeric:valuefont-variant-numeric: value;
font:normalfont-style: normal;
font:ordinalfont-variant-numeric: ordinal;
font:slashed-zerofont-variant-numeric: slashed-zero;
font:lining-numsfont-variant-numeric: lining-nums;
font:oldstyle-numsfont-variant-numeric: oldstyle-nums;
font:proportional-numsfont-variant-numeric: proportional-nums;
font:tabular-numsfont-variant-numeric: tabular-nums;
font:diagonal-fractionsfont-variant-numeric: diagonal-fractions;
font:stacked-fractionsfont-variant-numeric: stacked-fractions;

Conditionally apply

Apply styles based on different states using selectors and applying conditionally.

<div class="font-variant-numeric:normal:hover font-variant-numeric:normal@sm font-variant-numeric:normal@dark font-variant-numeric:normal@print"></div>
Design Token
Colors

Customizing color variables or starting with the crafted palette.

© Aoyue Design LLC.