Flexbox & Grid

place-items to Tailwind

The align/justify shorthand, where place-items-center is the shortest route to centring in a grid.

The 7 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 place-items.

place-items values and their classes

CSSTailwind
place-items: baseline;place-items-baseline
place-items: center;place-items-center
place-items: end;place-items-end
place-items: safe center;place-items-center-safe
place-items: safe end;place-items-end-safe
place-items: start;place-items-start
place-items: stretch;place-items-stretch

Other flexbox & grid 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