Browse documentation

Reference / Backgrounds

Background blending

Blend the background image with the color painted beneath it on the same element.

Working example

Multiply darkens the lighter end of this black-to-white gradient against the gray base color.

HTML
<div role="img" aria-label="A shaded paper swatch"
  class="h-20 bg-neutral-500 bg-gradient-to-r from-black to-white bg-blend-multiply"></div>

Class reference

ClassCSS declarations
bg-blend-normalbackground-blend-mode: normal;
bg-blend-multiplybackground-blend-mode: multiply;
bg-blend-screenbackground-blend-mode: screen;
bg-blend-overlaybackground-blend-mode: overlay;
bg-blend-differencebackground-blend-mode: difference;
View full generated CSS
Compiled CSS
.bg-blend-difference {
  background-blend-mode: difference;
}
.bg-blend-multiply {
  background-blend-mode: multiply;
}
.bg-blend-normal {
  background-blend-mode: normal;
}
.bg-blend-overlay {
  background-blend-mode: overlay;
}
.bg-blend-screen {
  background-blend-mode: screen;
}