Spacing

padding-right to Tailwind

Becomes pr-*; the logical equivalent Tailwind also ships is pe-*.

The 35 mappings below are read straight out of Tailwind v4.3.3, not maintained by hand, so this is what the converter will actually produce for padding-right.

padding-right values and their classes

CSSTailwind
padding-right: 0;pr-0
padding-right: 0.125rem;pr-0.5
padding-right: 0.25rem;pr-1
padding-right: 0.375rem;pr-1.5
padding-right: 0.5rem;pr-2
padding-right: 0.625rem;pr-2.5
padding-right: 0.75rem;pr-3
padding-right: 0.875rem;pr-3.5
padding-right: 1px;pr-px
padding-right: 1rem;pr-4
padding-right: 1.25rem;pr-5
padding-right: 1.5rem;pr-6
padding-right: 1.75rem;pr-7
padding-right: 2rem;pr-8
padding-right: 2.25rem;pr-9
padding-right: 2.5rem;pr-10
padding-right: 2.75rem;pr-11
padding-right: 3rem;pr-12
padding-right: 3.5rem;pr-14
padding-right: 4rem;pr-16
padding-right: 5rem;pr-20
padding-right: 6rem;pr-24
padding-right: 7rem;pr-28
padding-right: 8rem;pr-32
padding-right: 9rem;pr-36
padding-right: 10rem;pr-40
padding-right: 11rem;pr-44
padding-right: 12rem;pr-48
padding-right: 13rem;pr-52
padding-right: 14rem;pr-56
padding-right: 15rem;pr-60
padding-right: 16rem;pr-64
padding-right: 18rem;pr-72
padding-right: 20rem;pr-80
padding-right: 24rem;pr-96

The spacing scale

padding-right is written with pr-*, which counts in steps of 0.25rem. The step number is the multiplier, so the class number is the value divided by that step rather than a pixel count.

Values that are not on the scale

Anything without a named class is written as an arbitrary value in square brackets. The converter falls back to this rather than rounding your CSS to the nearest class, because silently changing a value is worse than an ugly class name.

pr-[your value]

Other spacing properties

Converting a whole stylesheet?

Paste it into the converter and get every rule at once, shorthands expanded, media queries turned into breakpoint variants, and the parts that have no Tailwind equivalent flagged rather than dropped.

Open the converter