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.
<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
| Class | CSS declarations |
|---|---|
bg-blend-normal | background-blend-mode: normal; |
bg-blend-multiply | background-blend-mode: multiply; |
bg-blend-screen | background-blend-mode: screen; |
bg-blend-overlay | background-blend-mode: overlay; |
bg-blend-difference | background-blend-mode: difference; |
View full generated 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;
}