A full range of expression.

Thirteen sizes, nine weights, six line-height presets, and six tracking steps. Explore the scale with antiflex’s own type families.

Try the foundation

Build with clarity. 0123456789

DM Sans · 16px / 24px · 400. Scroll the preview to inspect oversized text. OpenType features depend on the chosen font.

Typography CSS
.example {
  font-family: var(--af-font-sans), sans-serif;
  font-size: var(--af-typography-size-base);
  line-height: var(--af-typography-line-height-base);
  font-weight: 400;
  letter-spacing: var(--af-typography-tracking-normal);
  font-style: normal;
  font-variant-numeric: normal;
}

Type scale

The reference scale runs from xs to 9xl, with a default line height for every size. Values use a 16px reference root; antiflex’s existing component and display sizes remain available.

text-af-xs12px / 16px

Aa

text-af-sm14px / 20px

Aa

text-af-base16px / 24px

Aa

text-af-lg18px / 28px

Aa

text-af-xl20px / 28px

Aa

text-af-2xl24px / 32px

Aa

text-af-3xl30px / 36px

Aa

text-af-4xl36px / 40px

Aa

text-af-5xl48px / 48px

Aa

text-af-6xl60px / 60px

Aa

text-af-7xl72px / 72px

Aa

text-af-8xl96px / 96px

Aa

text-af-9xl128px / 128px

Aa

Font families

font-sans

Clear forms. Considered details.

DM Sans · 100, 200, 300, 400, 500, 600, 700, 800, 900 · normal and italic
font-display

Clear forms. Considered details.

Anybody · 100, 200, 300, 400, 500, 600, 700, 800, 900 · normal and italic
font-mono

Clear forms. Considered details.

Space Mono · 400, 700 · normal and italic
font-serif

Clear forms. Considered details.

System serif · Georgia · 400, 700 · normal and italic

DM Sans, Anybody, and Space Mono are self-hosted. Georgia is a system serif stack, with Times New Roman and the browser’s serif as fallbacks. The browser chooses the available system face. Space Mono and system serif expose regular/bold in the playground; Anybody supports upright and italic faces across the full weight scale. Font synthesis is disabled in the preview.

Weight, leading, tracking

Weight reference
UtilityValue
font-af-thin100
font-af-extralight200
font-af-light300
font-af-normal400
font-af-medium500
font-af-semibold600
font-af-bold700
font-af-extrabold800
font-af-black900
Leading reference
UtilityValue
leading-af-none1
leading-af-tight1.25
leading-af-snug1.375
leading-af-normal1.5
leading-af-relaxed1.625
leading-af-loose2
Tracking reference
UtilityValue
tracking-af-tighter-0.05em
tracking-af-tight-0.025em
tracking-af-normal0em
tracking-af-wide0.025em
tracking-af-wider0.05em
tracking-af-widest0.1em

Use the scale with Tailwind

text-af-xl font-af-bold leading-af-relaxed tracking-af-tight combines size, weight, line height, and spacing. Palette classes such as bg-af-blue-500 use the same reference source.

Compose the rest with native text utilities

Use Tailwind’s standard utilities for italic, alignment, case, decoration, lists, wrapping, truncation, clamping, indentation, smoothing, and OpenType features. These remain ordinary CSS capabilities; they are not additional antiflex component families.

Typography composition guide
PurposeExamples
Style and alignmentitalic, not-italic, text-start, text-center, text-end, text-justify
Case and decorationuppercase, lowercase, capitalize, normal-case, underline, overline, line-through, no-underline
Wrap and overflowtext-wrap, text-nowrap, text-balance, text-pretty, truncate, text-ellipsis, line-clamp-3, break-words
Numeric featurestabular-nums, proportional-nums, lining-nums, oldstyle-nums, ordinal, slashed-zero, diagonal-fractions, stacked-fractions
Lists and rhythmlist-disc, list-decimal, list-inside, list-outside, indent-4, leading-6
Rendering and widthantialiased, subpixel-antialiased, font-stretch-condensed (requires a suitable font)

Use the right scale for the job

Large sizes and tight tracking are reference options, not defaults for interface text. Use readable body sizes, preserve heading semantics, and check your actual content at zoom and narrow widths. The complete scale is based on the Tailwind CSS typography reference; antiflex’s component typography stays stable.