Utility families

Media and backgrounds

Aspect ratio, image fit, background position and repeat, border style.

aspect-ratio

ar:
Class CSS properties
ar: aspect-ratio
  • Keywords: auto square video photo portrait
  • Arbitrary values: yes, in brackets
ar:auto
.ar\:auto {
  aspect-ratio: auto;
}

object-fit

obf:
Class CSS properties
obf: object-fit
  • Keywords: contain cover fill none scale-down
  • Arbitrary values: no
obf:contain
.obf\:contain {
  object-fit: contain;
}

object-position

obp:
Class CSS properties
obp: object-position
  • Keywords: center top bottom left right top-left top-right bottom-left bottom-right
  • Arbitrary values: yes, in brackets
obp:center
.obp\:center {
  object-position: center;
}

background-position

bgp:
Class CSS properties
bgp: background-position
  • Keywords: center top bottom left right top-left top-right bottom-left bottom-right
  • Arbitrary values: yes, in brackets
bgp:center
.bgp\:center {
  background-position: center;
}

background-repeat

bgr:
Class CSS properties
bgr: background-repeat
  • Keywords: repeat none x y round space
  • Arbitrary values: no
bgr:repeat
.bgr\:repeat {
  background-repeat: repeat;
}

mix-blend-mode

mix:
Class CSS properties
mix: mix-blend-mode
  • Keywords: normal multiply screen overlay darken lighten difference luminosity
  • Arbitrary values: no
mix:normal
.mix\:normal {
  mix-blend-mode: normal;
}

border-style

bs:
Class CSS properties
bs: border-style
  • Keywords: solid dashed dotted double none hidden
  • Arbitrary values: no
bs:solid
.bs\:solid {
  border-style: solid;
}