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.
.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 / 16pxAa
text-af-sm14px / 20pxAa
text-af-base16px / 24pxAa
text-af-lg18px / 28pxAa
text-af-xl20px / 28pxAa
text-af-2xl24px / 32pxAa
text-af-3xl30px / 36pxAa
text-af-4xl36px / 40pxAa
text-af-5xl48px / 48pxAa
text-af-6xl60px / 60pxAa
text-af-7xl72px / 72pxAa
text-af-8xl96px / 96pxAa
text-af-9xl128px / 128pxAa
Font families
font-sansClear forms. Considered details.
DM Sans · 100, 200, 300, 400, 500, 600, 700, 800, 900 · normal and italicfont-displayClear forms. Considered details.
Anybody · 100, 200, 300, 400, 500, 600, 700, 800, 900 · normal and italicfont-monoClear forms. Considered details.
Space Mono · 400, 700 · normal and italicfont-serifClear forms. Considered details.
System serif · Georgia · 400, 700 · normal and italicDM 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
| Utility | Value |
|---|---|
font-af-thin | 100 |
font-af-extralight | 200 |
font-af-light | 300 |
font-af-normal | 400 |
font-af-medium | 500 |
font-af-semibold | 600 |
font-af-bold | 700 |
font-af-extrabold | 800 |
font-af-black | 900 |
| Utility | Value |
|---|---|
leading-af-none | 1 |
leading-af-tight | 1.25 |
leading-af-snug | 1.375 |
leading-af-normal | 1.5 |
leading-af-relaxed | 1.625 |
leading-af-loose | 2 |
| Utility | Value |
|---|---|
tracking-af-tighter | -0.05em |
tracking-af-tight | -0.025em |
tracking-af-normal | 0em |
tracking-af-wide | 0.025em |
tracking-af-wider | 0.05em |
tracking-af-widest | 0.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.
| Purpose | Examples |
|---|---|
| Style and alignment | italic, not-italic, text-start, text-center, text-end, text-justify |
| Case and decoration | uppercase, lowercase, capitalize, normal-case, underline, overline, line-through, no-underline |
| Wrap and overflow | text-wrap, text-nowrap, text-balance, text-pretty, truncate, text-ellipsis, line-clamp-3, break-words |
| Numeric features | tabular-nums, proportional-nums, lining-nums, oldstyle-nums, ordinal, slashed-zero, diagonal-fractions, stacked-fractions |
| Lists and rhythm | list-disc, list-decimal, list-inside, list-outside, indent-4, leading-6 |
| Rendering and width | antialiased, 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.