Skip to content

Mix Blend Mode

Use mix-blend-* utilities to control how an element’s content and background blend with whatever is painted behind it in the same stacking context.

Style('flex justify-center -space-x-14', children: [
Style('bg-blue-500 mix-blend-multiply ...'),
Style('bg-pink-500 mix-blend-multiply ...'),
])

Use the isolate utility to start a new stacking context so children with mix-blend-* only blend with one another, not with content painted behind the parent.

Style('isolate flex justify-center -space-x-14', children: [
Style('bg-yellow-500 mix-blend-multiply ...'),
Style('bg-green-500 mix-blend-multiply ...'),
])
Style('flex justify-center -space-x-14', children: [
Style('bg-yellow-500 mix-blend-multiply ...'),
Style('bg-green-500 mix-blend-multiply ...'),
])
ClassDescription
mix-blend-normalSet blend mode to normal
mix-blend-multiplySet blend mode to multiply
mix-blend-screenSet blend mode to screen
mix-blend-overlaySet blend mode to overlay
mix-blend-darkenSet blend mode to darken
mix-blend-lightenSet blend mode to lighten
mix-blend-color-dodgeSet blend mode to color-dodge
mix-blend-color-burnSet blend mode to color-burn
mix-blend-hard-lightSet blend mode to hard-light
mix-blend-soft-lightSet blend mode to soft-light
mix-blend-differenceSet blend mode to difference
mix-blend-exclusionSet blend mode to exclusion
mix-blend-hueSet blend mode to hue
mix-blend-saturationSet blend mode to saturation
mix-blend-colorSet blend mode to color
mix-blend-luminositySet blend mode to luminosity

mix-blend-plus-darker and mix-blend-plus-lighter are not yet supported — Flutter’s BlendMode enum has no equivalent for the CSS plus-darker / plus-lighter modes. Tracked in PLAYGROUND_PARITY.md.