tokens
Spacing and containers
The spacing scale that every padding, margin, gap, and size utility uses, and the container widths that cap content.
One scale serves p-*, m-*, gap-*, space-*, w-*, h-*, inset-*, and translate-*. The steps below are the ones the site uses. A step that isn't listed (p-7, say) still compiles from Tailwind's base unit, but it isn't a token, so prefer the nearest listed step.
Spacing
| Step | Value | Width (w-*) |
|---|---|---|
0.5 | 0.125rem | |
1 | 0.25rem | |
1.5 | 0.375rem | |
2 | 0.5rem | |
3 | 0.75rem | |
4 | 1rem | |
5 | 1.25rem | |
6 | 1.5rem | |
8 | 2rem | |
10 | 2.5rem | |
12 | 3rem | |
14 | 3.5rem | |
16 | 4rem | |
18 | 4.5rem | |
20 | 5rem | |
24 | 6rem | |
32 | 8rem | |
40 | 10rem | |
48 | 12rem | |
56 | 14rem | |
64 | 16rem |
Containers
Use these as max-w-* to cap a block's width.
-
max-w-md28rem -
max-w-xl36rem -
max-w-3xl48rem -
max-w-6xl72rem