Skip to content
Nizivo UI

Typography

Text styles as single font shorthands, with their tracking.

Each text style is one font shorthand token, plus a letter-spacing token where the style has one:

.price {
  font: var(--nz-font-numeric-l);
  letter-spacing: var(--nz-tracking-numeric-l);
  font-variant-numeric: tabular-nums;
}

The parts are tokens too (--nz-font-body-m-font-size, -font-weight, -line-height, -font-family). Prefer the shorthand.

Text styles

StyleSampleSize / lineWeightTracking
--nz-font-body-lStoneware mug1rem16px / 1.64000em
--nz-font-body-mStoneware mug0.875rem14px / 1.54000em
--nz-font-body-m-strongStoneware mug0.875rem14px / 1.55000em
--nz-font-body-sStoneware mug0.75rem12px / 1.54000em
--nz-font-display-lStoneware mug3.5rem56px / 1.04600-0.03em
--nz-font-display-mStoneware mug2.75rem44px / 1.08600-0.025em
--nz-font-heading-h1Stoneware mug2rem32px / 1.2600-0.02em
--nz-font-heading-h2Stoneware mug1.5rem24px / 1.3600-0.015em
--nz-font-heading-h3Stoneware mug1.25rem20px / 1.4600-0.01em
--nz-font-heading-h4Stoneware mug1rem16px / 1.5600-0.005em
--nz-font-label-lStoneware mug1rem16px / 1.4500-0.002em
--nz-font-label-mStoneware mug0.875rem14px / 1.45000em
--nz-font-label-m-strongStoneware mug0.875rem14px / 1.46000em
--nz-font-label-sStoneware mug0.75rem12px / 1.45000em
--nz-font-mono-mStoneware mug0.875rem14px / 1.44000em
--nz-font-mono-m-strongStoneware mug0.875rem14px / 1.45000em
--nz-font-numeric-display1,284.502.5rem40px / 1600-0.03em
--nz-font-numeric-kpi1,284.502rem32px / 1600-0.025em
--nz-font-numeric-l1,284.501.5rem24px / 1.1600-0.015em
--nz-font-numeric-m1,284.501rem16px / 1.2500-0.005em

Font families

The library ships no font files. The family tokens read --font-geist-sans and --font-geist-mono when an app sets them (this site does, through next/font), and fall back to the system stack.

  • --nz-font-family-mono: var(--font-geist-mono, "Geist Mono"), ui-monospace, "SFMono-Regular", "Menlo", "Consolas", monospace
  • --nz-font-family-sans: var(--font-geist-sans, "Geist"), ui-sans-serif, system-ui, sans-serif

On this page