Skip to main content

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

StepValueWidth (w-*)
0.50.125rem
10.25rem
1.50.375rem
20.5rem
30.75rem
41rem
51.25rem
61.5rem
82rem
102.5rem
123rem
143.5rem
164rem
184.5rem
205rem
246rem
328rem
4010rem
4812rem
5614rem
6416rem

Containers

Use these as max-w-* to cap a block's width.

  • max-w-md 28rem
  • max-w-xl 36rem
  • max-w-3xl 48rem
  • max-w-6xl 72rem