Backgrounds

background-position to Tailwind

The nine keyword positions map to bg-*; offsets and percentages become arbitrary values.

The 9 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 background-position.

background-position values and their classes

CSSTailwind
background-position: bottom;bg-bottom
background-position: center;bg-center
background-position: left;bg-left
background-position: left bottom;bg-bottom-left
background-position: left top;bg-top-left
background-position: right;bg-right
background-position: right bottom;bg-bottom-right
background-position: right top;bg-top-right
background-position: top;bg-top

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.

bg-[your value]

Other backgrounds 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