Mix Blend Mode

Set how an element's content should blend with the background of its parent.

Widely available

This feature is well established and works across many devices and browser versions.

Chrome
Edge
Firefox
Safari

mbm-n
mix-blend-mode: normal;
mbm-m
mix-blend-mode: multiply;
mbm-s
mix-blend-mode: screen;
mbm-o
mix-blend-mode: overlay;
mbm-d
mix-blend-mode: darken;
mbm-l
mix-blend-mode: lighten;
mbm-cd
mix-blend-mode: color-dodge;
mbm-cb
mix-blend-mode: color-burn;
mbm-hl
mix-blend-mode: hard-light;
mbm-sl
mix-blend-mode: soft-light;
mbm-df
mix-blend-mode: difference;
mbm-e
mix-blend-mode: exclusion;
mbm-h
mix-blend-mode: hue;
mbm-st
mix-blend-mode: saturation;
mbm-c
mix-blend-mode: color;
mbm-lu
mix-blend-mode: luminosity;
mbm-pd
mix-blend-mode: plus-darker;
mbm-pl
mix-blend-mode: plus-lighter;

Responsiveness

Use breakpoint prefixes to target different screen sizes.

@sm:mbm-(value)
Small640px
@md:mbm-(value)
Medium768px
@lg:mbm-(value)
Large1024px
@xxl:mbm-(value)
Extra Large1536px

Hover State

Apply styles conditionally on hover using the h: prefix.

Add the h: prefix to apply styles only when the user hovers over the element.

Syntax:h:mbm-(value)