Effects

Mix Blend

Utilities for sets how an element's content should blend with its direct parent background.


Variant

Active Checked Child-Selection Dark Mode Disabled Expand First-Last-Selection First-Letter Focus Focus-Visible Focus-Within Fullscreen Group-Focus Group-Hover Hover Landscape Light Mode Portrait Reduce-Motion Responsive Selection-Hover Visited

API

classcss
blend-normalmix-blend-mode: normal
blend-multiplymix-blend-mode: multiply
blend-screenmix-blend-mode: screen
blend-overlaymix-blend-mode: overlay
blend-darkenmix-blend-mode: darken
blend-lightenmix-blend-mode: lighten
blend-colormix-blend-mode: color
blend-color-dodgemix-blend-mode: color-dodge
blend-color-burnmix-blend-mode: color-burn
blend-hard-lightmix-blend-mode: hard-light
blend-soft-lightmix-blend-mode: soft-light
blend-differencemix-blend-mode: difference
blend-exclusionmix-blend-mode: exclusion
blend-huemix-blend-mode: hue
blend-saturationmix-blend-mode: saturation
blend-luminositymix-blend-mode: luminosity

Usage

Mix blend with background colors.

<div class="...">
<div class="blend-darken bg-tint-amber-4 ... width-48 height-32"></div>
<div class="blend-screen bg-tint-lime-4... -margin-t-24 margin-l-10 height-32"></div>
</div>
HTML
.dummy-blend-one {
@extend
.blend-darken,
.bg-tint-amber-4,
.width-48,
.height-32;
}
.dummy-blend-two {
@extend
.blend-screen,
.bg-tint-lime-4,
.-margin-t-24,
.margin-l-10,
.height-32;
}
SCSS

Mix blend with images.

<div class="...">
<img class="blend-darken ... width-48 height-32" src="...">
<img class="blend-screen ... -margin-t-24 margin-l-10 width-48 height-32" src="...">
</div>
HTML
.dummy-blend-one {
@extend
.blend-darken,
.width-48,
.height-32;
}
.dummy-blend-two {
@extend
.blend-screen,
.-margin-t-24,
.margin-l-10,
.width-48,
.height-32;
}
SCSS

Mix blend with typography.

TEXT
TEXT
<div class="relative">
<div class="blend-darken ... absolute top-0 left-0">
...
</div>
<div class="blend-screen ... absolute top-6 left-6">
...
</div>
</div>
HTML