CSS mix blend modes provide an easy, yet powerful way to create visually interesting designs.
Too lazy to read? Go straight to the widgets!
The modes allow you to manipulate how elements interact with each other. Which can lead in unique effects. Or not, depending on how creative you are. 😉
Mix blend modes allows you to overlay images, text, and elements in general, applying various blending techniques such as multiply, screen, overlay, and more.
What we found interesting - or confusing - is that "normal" blend mode actually means "no blending". But that's a minor thing and we can live with that.
CSS blend modes offer similar capabilities to photo editing software such as Photoshop for manipulating the appearance of elements. Just as in editing software, CSS allows you to control how colors and pixels from different elements blend together.
However, it's important to note that CSS blend modes are limited and do not offer the full range of editing options found in Photoshop and its competitors.
Although this article uses the Tailwind framework for the examples and widgets below, everything said here applies to regular CSS. So, even if you are not using Tailwind, you can still benefit from CSS blending. Cute!
Let's start with basic blend modes. Needless to say, they offer many exciting effects.
mix-blend-normal
mix-blend-multiply
mix-blend-screen
mix-blend-overlay
mix-blend-darken
mix-blend-lighten
mix-blend-color-dodge
mix-blend-color-burn
mix-blend-hard-light
mix-blend-soft-light
mix-blend-difference
mix-blend-exclusion
mix-blend-hue
mix-blend-saturation
mix-blend-color
mix-blend-luminosity
mix-blend-plus-lighter
Below is a list of the blend modes available in Tailwind. Click on different colors and see how they work!
mix-blend-normal
mix-blend-multiply
mix-blend-screen
mix-blend-overlay
mix-blend-darken
mix-blend-lighten
mix-blend-color-dodge
mix-blend-color-burn
mix-blend-hard-light
mix-blend-soft-light
mix-blend-difference
mix-blend-exclusion
mix-blend-hue
mix-blend-saturation
mix-blend-color
mix-blend-luminosity
mix-blend-plus-lighter
Did you know that you can overlay multiple layers to create more interesting effects?
Give it a try. Get creative!
... knows how to blend!
Whether you're using Tailwind CSS or regular CSS, the possibilities are endless. Happy blending!