Backgrounds

Background Blend

Utilities for sets the blending mode of each background layer (color or image).


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
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-darkenbackground-blend-mode: darken
bg-blend-lightenbackground-blend-mode: lighten
bg-blend-colorbackground-blend-mode: color
bg-blend-color-dodgebackground-blend-mode: color-dodge
bg-blend-color-burnbackground-blend-mode: color-burn
bg-blend-hard-lightbackground-blend-mode: hard-light
bg-blend-soft-lightbackground-blend-mode: soft-light
bg-blend-differencebackground-blend-mode: difference
bg-blend-exclusionbackground-blend-mode: exclusion
bg-blend-huebackground-blend-mode: hue
bg-blend-saturationbackground-blend-mode: saturation
bg-blend-luminosityWbackground-blend-mode: luminosity

Usage

Set normal blending mode background image with HTML inline attribute style="..." and a CSS property background-image: url(...) to an element.

<div class="bg-blend-normal bg-shade-amber-1 ... bg-auto bg-center bg-no-repeat ... height-48 width-full" style="background-image:url(...)">
...
</div>
HTML
.dummy {
@extend
.bg-blend-normal,
.bg-shade-amber-1,
.bg-auto,
.bg-center,
.bg-no-repeat,
.height-48,
.width-full;
}
SCSS

Set multiply blending mode to background image.

<div class="bg-blend-multiply bg-shade-amber-1 ... bg-auto bg-center bg-no-repeat ... height-48 width-full" style="background-image:url(...)">
...
</div>
HTML
.dummy {
@extend
.bg-blend-multiply,
.bg-shade-amber-1,
.bg-auto,
.bg-center,
.bg-no-repeat,
.height-48,
.width-full;
}
SCSS

Set screen blending mode to background image.

<div class="bg-blend-screen bg-shade-amber-1 ... bg-auto bg-center bg-no-repeat ... height-48 width-full" style="background-image:url(...)">
...
</div>
HTML
.dummy {
@extend
.bg-blend-screen,
.bg-shade-amber-1,
.bg-auto,
.bg-center,
.bg-no-repeat,
.height-48,
.width-full;
}
SCSS

Set overlay blending mode to background image.

<div class="bg-blend-overlay bg-shade-amber-1 ... bg-auto bg-center bg-no-repeat ... height-48 width-full" style="background-image:url(...)">
...
</div>
HTML
.dummy {
@extend
.bg-blend-overlay,
.bg-shade-amber-1,
.bg-auto,
.bg-center,
.bg-no-repeat,
.height-48,
.width-full;
}
SCSS

Set darken blending mode to background image.

<div class="bg-blend-darken bg-shade-amber-1 ... bg-auto bg-center bg-no-repeat ... height-48 width-full" style="background-image:url(...)">
...
</div>
HTML
.dummy {
@extend
.bg-blend-darken,
.bg-shade-amber-1,
.bg-auto,
.bg-center,
.bg-no-repeat,
.height-48,
.width-full;
}
SCSS

Set lighten blending mode to background image.

<div class="bg-blend-lighten bg-shade-amber-1 ... bg-auto bg-center bg-no-repeat ... height-48 width-full" style="background-image:url(...)">
...
</div>
HTML
.dummy {
@extend
.bg-blend-lighten,
.bg-shade-amber-1,
.bg-auto,
.bg-center,
.bg-no-repeat,
.height-48,
.width-full;
}
SCSS

Set color blending mode to background image.

<div class="bg-blend-color bg-shade-amber-1 ... bg-auto bg-center bg-no-repeat ... height-48 width-full" style="background-image:url(...)">
...
</div>
HTML
.dummy {
@extend
.bg-blend-color,
.bg-shade-amber-1,
.bg-auto,
.bg-center,
.bg-no-repeat,
.height-48,
.width-full;
}
SCSS

Set color-dodge blending mode to background image.

<div class="bg-blend-color-dodge bg-shade-amber-1 ... bg-auto bg-center bg-no-repeat ... height-48 width-full" style="background-image:url(...)">
...
</div>
HTML
.dummy {
@extend
.bg-blend-color-dodge,
.bg-shade-amber-1,
.bg-auto,
.bg-center,
.bg-no-repeat,
.height-48,
.width-full;
}
SCSS

Set color-burn blending mode to background image.

<div class="bg-blend-color-burn bg-shade-amber-1 ... bg-auto bg-center bg-no-repeat ... height-48 width-full" style="background-image:url(...)">
...
</div>
HTML
.dummy {
@extend
.bg-blend-color-burn,
.bg-shade-amber-1,
.bg-auto,
.bg-center,
.bg-no-repeat,
.height-48,
.width-full;
}
SCSS

Set hard-light blending mode to background image.

<div class="bg-blend-hard-light bg-shade-amber-1 ... bg-auto bg-center bg-no-repeat ... height-48 width-full" style="background-image:url(...)">
...
</div>
HTML
.dummy {
@extend
.bg-blend-hard-light,
.bg-shade-amber-1,
.bg-auto,
.bg-center,
.bg-no-repeat,
.height-48,
.width-full;
}
SCSS

Set soft-light blending mode to background image.

<div class="bg-blend-soft-light bg-shade-amber-1 ... bg-auto bg-center bg-no-repeat ... height-48 width-full" style="background-image:url(...)">
...
</div>
HTML
.dummy {
@extend
.bg-blend-soft-light,
.bg-shade-amber-1,
.bg-auto,
.bg-center,
.bg-no-repeat,
.height-48,
.width-full;
}
SCSS

Set different blending mode to background image.

<div class="bg-blend-different bg-shade-amber-1 ... bg-auto bg-center bg-no-repeat ... height-48 width-full" style="background-image:url(...)">
...
</div>
HTML
.dummy {
@extend
.bg-blend-different,
.bg-shade-amber-1,
.bg-auto,
.bg-center,
.bg-no-repeat,
.height-48,
.width-full;
}
SCSS

Set exclusion blending mode to background image.

<div class="bg-blend-exclusion bg-shade-amber-1 ... bg-auto bg-center bg-no-repeat ... height-48 width-full" style="background-image:url(...)">
...
</div>
HTML
.dummy {
@extend
.bg-blend-exclusion,
.bg-shade-amber-1,
.bg-auto,
.bg-center,
.bg-no-repeat,
.height-48,
.width-full;
}
SCSS

Set hue blending mode to background image.

<div class="bg-blend-hue bg-shade-amber-1 ... bg-auto bg-center bg-no-repeat ... height-48 width-full" style="background-image:url(...)">
...
</div>
HTML
.dummy {
@extend
.bg-blend-hue,
.bg-shade-amber-1,
.bg-auto,
.bg-center,
.bg-no-repeat,
.height-48,
.width-full;
}
SCSS

Set saturation blending mode to background image.

<div class="bg-blend-saturation bg-shade-amber-1 ... bg-auto bg-center bg-no-repeat ... height-48 width-full" style="background-image:url(...)">
...
</div>
HTML
.dummy {
@extend
.bg-blend-saturation
.bg-shade-amber-1,
.bg-auto,
.bg-center,
.bg-no-repeat,
.height-48,
.width-full;
}
SCSS

Set luminosity blending mode to background image.

<div class="bg-blend-luminosity bg-shade-amber-1 ... bg-auto bg-center bg-no-repeat ... height-48 width-full" style="background-image:url(...)">
...
</div>
HTML
.dummy {
@extend
.bg-blend-luminosity,
.bg-shade-amber-1,
.bg-auto,
.bg-center,
.bg-no-repeat,
.height-48,
.width-full;
}
SCSS