Typography
Glyphs
Utilities for sets alternate glyphs for numbers, fractions, and ordinal markers to an element.
Variant
Active Checked Child-Selection Dark Mode Disabled Expand First-Last-Selection First-Letter Focus Focus-Visible Focus-Within Fullscreen Group-Focus Group-Hover Hover Landscape Light Mode Portrait Reduce-Motion Responsive Selection-Hover Visited
API
class | css |
---|---|
glyphs-normal | font-variant-numeric: normal |
glyphs-ordinal | font-variant-numeric: ordinal |
glyphs-slashed-zero | font-variant-numeric: slashed-zero |
glyphs-lining-nums | font-variant-numeric: lining-nums |
glyphs-oldstyle-nums | font-variant-numeric: oldstyle-nums |
glyphs-proportional-nums | font-variant-numeric: proportional-nums |
glyphs-tabular-nums | font-variant-numberic: tabular-nums |
glyphs-diagonal-fractions | font-variant-numeric: diagonal-fractions |
glyphs-stacked-fractions | font-variant-numeric: stacked-fractions |
Usage
2/4 4/5 3/6 4/8
Glyphs: OFF
2/4 4/5 3/6 4/8
Glyphs: ON
<div class="glyphs-diagonal-fractions">
2/4 4/5 3/6 4/8
</div>
HTML
.dummy {
@extend
.glyphs-diagonal-fractions;
}
SCSS