The type scale as the components use it: a live specimen for each size with its line height, weight and class, and where the scale is ad hoc.
Fonts
One system font stack for text and one for code. Knowns UI sets neither on its own: it inherits your page font, and font-mono is Tailwind’s, so setting --font-sans and --font-mono in your theme restyles everything. The stacks below are what this site uses.
| Role | Stack | Specimen |
|---|---|---|
| Text | ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif | Aa Bb Cc 0123 |
| Code (utility) | ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace | Aa Bb Cc 0123 |
| Code boxes | ui-monospace, "SF Mono", Menlo, Consolas, monospace | Aa Bb Cc 0123 |
The scale
Components set sizes with arbitrary values such as text-[13px], not a named scale. These are the sizes used 10 or more times across the component files, in order. The weight and line height shown are the ones each size is most often paired with, and the specimen renders at exactly those values.
| Specimen | Class | ||
|---|---|---|---|
| 10px / 10px · 600 | Agent finished in 4.2s | 15 | |
| 10.5px / 16px · 500 | Agent finished in 4.2s | 17 | |
| 11px / 16.5px · 500 | Agent finished in 4.2s | 185 | |
| 11.5px / 18.69px · 500 | Agent finished in 4.2s | 200 | |
| 12px / 15px · 500 | Agent finished in 4.2s | 407 | |
| 12.5px / 17.19px · 500 | Agent finished in 4.2s | 518 | |
| 13px / 20px · 500 | Agent finished in 4.2s | 683 | |
| 13.5px / 21.94px · 500 | Agent finished in 4.2s | 218 | |
| 14px / 22.75px · 500 | Agent finished in 4.2s | 281 | |
| 14.5px / 22px · 600 | Agent finished in 4.2s | 11 | |
| 15px / 24.38px · 600 | Agent finished in 4.2s | 192 | |
| 16px / 26px · 600 | Agent finished in 4.2s | 96 | |
| 17px / 27.63px · 600 | Agent finished in 4.2s | 28 | |
| 19px / 23.75px · 600 | Agent finished in 4.2s | 15 | |
| 20px / 28px · 600 | Agent finished in 4.2s | 17 | |
| 22px / 27.5px · 600 | Agent finished in 4.2s | 28 | |
| 24px / 32px · 600 | Agent finished in 4.2s | 11 | |
| 26px / 26px · 600 | Agent finished in 4.2s | 10 | |
| 28px / 28px · 600 | Agent finished in 4.2s | 14 | |
| 32px / 40px · 600 | Agent finished in 4.2s | 14 | |
| 40px / 40px · 600 | Agent finished in 4.2s | 10 | |
| 48px / 49.92px · 600 | Agent finished in 4.2s | 10 |
Rare sizes
Sizes used fewer than 10 times. Most are a half pixel away from a step above.
| Class | Uses | Usually with |
|---|---|---|
| text-[9px] | 5 | leading-none font-semibold |
| text-[9.5px] | 1 | leading-relaxed font-medium |
| text-[15.5px] | 4 | leading-relaxed |
| text-[16.5px] | 1 | leading-[26px] |
| text-[18px] | 8 | leading-6 font-medium |
| text-[21px] | 2 | leading-snug font-medium |
| text-[23px] | 1 | leading-7 font-medium |
| text-[25px] | 1 | leading-[31px] font-semibold |
| text-[27px] | 1 | leading-[31px] font-semibold |
| text-[30px] | 6 | leading-9 font-semibold |
| text-[34px] | 2 | leading-none font-semibold |
| text-[36px] | 9 | leading-10 font-semibold |
| text-[38px] | 6 | leading-9 font-semibold |
| text-[42px] | 1 | leading-[1] font-medium |
| text-[44px] | 8 | leading-[1.08] font-semibold |
| text-[46px] | 1 | leading-[48px] font-semibold |
| text-[52px] | 1 | - |
| text-[56px] | 9 | leading-[1.04] font-medium |
| text-[60px] | 6 | leading-[1.04] font-semibold |
| text-[64px] | 2 | leading-[1.04] font-semibold |
| text-[68px] | 3 | leading-relaxed font-medium |
| text-[72px] | 1 | - |
| text-[76px] | 1 | - |
| text-[84px] | 2 | leading-[1] font-medium |
| text-[88px] | 1 | - |
| text-[90px] | 1 | leading-[48px] font-semibold |
| text-[96px] | 1 | - |
| text-[112px] | 1 | leading-[1] font-medium |
| text-[124px] | 1 | - |
| text-[186px] | 1 | leading-[0.8] font-semibold |
| text-[380px] | 1 | leading-[0.82] font-medium |
Tailwind steps
A few components use Tailwind’s named sizes. Each one lands on a size the arbitrary values already cover.
| Class | Size / line height | Same size as | Uses |
|---|---|---|---|
| text-xs | 12px / 16px | text-[12px] | 44 |
| text-sm | 14px / 20px | text-[14px] | 42 |
| text-base | 16px / 24px | text-[16px] | 5 |
| text-xl | 20px / 28px | text-[20px] | 1 |
| text-2xl | 24px / 32px | text-[24px] | 1 |
| text-5xl | 48px / 48px | text-[48px] | 1 |
Weights
| Class | Weight | Specimen | Uses |
|---|---|---|---|
| font-normal | 400 | Agent run complete | 61 |
| font-medium | 500 | Agent run complete | 788 |
| font-semibold | 600 | Agent run complete | 510 |
| font-bold | 700 | Agent run complete | 3 |
Line height and tracking
Line height is set with Tailwind’s numeric and named classes, tracking mostly with tracking-tight and em values. These are the most used.
| Class | Uses |
|---|---|
| leading-relaxed | 139 |
| leading-5 | 117 |
| leading-snug | 108 |
| leading-none | 68 |
| leading-tight | 65 |
| leading-4 | 45 |
| leading-6 | 42 |
| leading-[18px] | 24 |
| Class | Uses |
|---|---|
| tracking-tight | 120 |
| tracking-[-0.01em] | 51 |
| tracking-wide | 40 |
| tracking-[-0.02em] | 22 |
| tracking-[-0.035em] | 12 |
| tracking-[-0.03em] | 12 |
| tracking-[0.06em] | 9 |
| tracking-[-0.025em] | 6 |