Effects
Utilities for controlling how an element should blend with the background.
Class | Styles |
---|---|
mix-blend-normal | mix-blend-mode: normal; |
mix-blend-multiply | mix-blend-mode: multiply; |
mix-blend-screen | mix-blend-mode: screen; |
mix-blend-overlay | mix-blend-mode: overlay; |
mix-blend-darken | mix-blend-mode: darken; |
mix-blend-lighten | mix-blend-mode: lighten; |
mix-blend-color-dodge | mix-blend-mode: color-dodge; |
mix-blend-color-burn | mix-blend-mode: color-burn; |
mix-blend-hard-light | mix-blend-mode: hard-light; |
mix-blend-soft-light | mix-blend-mode: soft-light; |
mix-blend-difference | mix-blend-mode: difference; |
mix-blend-exclusion | mix-blend-mode: exclusion; |
mix-blend-hue | mix-blend-mode: hue; |
mix-blend-saturation | mix-blend-mode: saturation; |
mix-blend-color | mix-blend-mode: color; |
mix-blend-luminosity | mix-blend-mode: luminosity; |
mix-blend-plus-darker | mix-blend-mode: plus-darker; |
mix-blend-plus-lighter | mix-blend-mode: plus-lighter; |
Use utilities like mix-blend-overlay
and mix-blend-soft-light
to control how an element's content and background is blended with other content in the same stacking context:
Use the isolate
utility on the parent element to create a new stacking context and prevent blending with content behind it:
Prefix a mix-blend-mode
utility with a breakpoint variant like md:
to only apply the utility at medium screen sizes and above:
<div class="mix-blend-multiply md:mix-blend-overlay ..."> <!-- ... --></div>
Learn more about using variants in the variants documentation.