Dev Helpers
← Back

Blend two overlapping shapes

Blend two overlapping shapes with Tailwind CSS 4 utilities. The preview uses precompiled styles.

Open this example in the interactive library

Source code

<div
  class="demo isolate flex [&_.tile]:bg-[#f9a8d4] [&_.tile]:mix-blend-multiply [&_.tile+.tile]:-ml-2 [&_.tile+.tile]:bg-[#7dd3fc]"
>
  <span class="tile">Pink</span><span class="tile">Blue</span>
</div>