typography
font-variant-numeric
Sets font-variant-numeric; u.tabularNums() covers the common tabular-nums case and shares the same declaration.
import { fontVariantNumeric } from "@sdxc/u/typography";Quick reference
Every documented call, beside the CSS it emits.
| Call | CSS |
|---|---|
u.fontVariantNumeric() | css({ fontVariantNumeric: "tabular-nums" }) |
u.fontVariantNumeric("slashed-zero") | css({ fontVariantNumeric: "slashed-zero" }) |
u.fontVariantNumeric("tabular-nums slashed-zero") | css({ fontVariantNumeric: "tabular-nums slashed-zero" }) |
Using a custom value
Every scale argument also takes a raw CSS value, which passes through untouched.
u.fontVariantNumeric()Applying on a state
Wrap the call in a state utility to scope it to one selector.
u.hover(u.fontVariantNumeric())Responsive design
Wrap the call in a container query to scope it to one width.
u.at("md", u.fontVariantNumeric())Signature
u.fontVariantNumeric(value?: FontVariantNumericValue)