Effects

object-fit to Tailwind

Maps to the object-* family, where object-cover is the usual choice for images.

The 5 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 object-fit.

object-fit values and their classes

CSSTailwind
object-fit: contain;object-contain
object-fit: cover;object-cover
object-fit: fill;object-fill
object-fit: none;object-none
object-fit: scale-down;object-scale-down

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