What is Glasmorphism and why devs are so excited about this?

Case study

Text over complex backgrounds is hard to read

Have you ever noticed that when you place text over an image with a complex background, the sharp parts of the image make the text hard to read and confusing?

Examples of text over images:

A 3d building with a logo that says “Real state”
A 3D coffee cup  with a froth heart shape and a text that says “INDIGO COFFEE HOUSE”

For sure, you may be able to read what it says, but the experience isn't smooth at all, it requires time from you to read the content

If you would like to see a code sample of glasmorphism, you can see a sample in this pen here.

Now, glasmorphism refers in simple words, to add blur to the background where UI elements are displayed, keeping in mind the images above, with glasmorphism, this is how they would look.

With glasmorphism:

Easier to read now, isn't?

Now you don't need to put your glasses on for this one, right? Now, the words “Real State” are one of the main focus of the overall image. You may have noticed that the blur has a subtle yellow-green overlay.

A 3d building with a logo that says “Real state” over a blurry rounded rectangular area
A 3d building with a logo that says “Real state” over a blurry rounded rectangular area

Way better, isn't it?

Now, the words “INDIGO COFFEE HOUSE” are not obscured by the sharp edges or very dark parts of the image below. You may have noticed that in also has a slightly purple overlay on the blur area.

A 3D coffee cup  with a froth heart shape and a text that says “INDIGO COFFEE HOUSE” over a blurry rounded rectangular area
A 3D coffee cup  with a froth heart shape and a text that says “INDIGO COFFEE HOUSE” over a blurry rounded rectangular area

Advantages of using glasmorphism:

  • Makes text more accessible
  • Visually appealing
  • As is becoming a trend, is becoming more familiar

How to replicate it:

  1. 1
    Choose a background where you want to display a UI
  2. 2
    Select the area
  3. 3
    Add a background blur property
What you want to avoid:

You will not want to use this everywhere, unless you want to make people visit their oculist because they are starting to believe their sight is getting worse. Use it when it adds cohesiveness to the design and makes the experience pleasant.

When to use it:

When you need to provide better contrast, this is a great approach; in overlays or modals where it makes the user focus on the content; In navigation menus where this method will make it more appealing to the users.

Leaving, glasmorphism aside for a moment. Have you heard of a visual effect called magnetism? You can see a great sample of it in the video. Is this something you would do? Check the live preview with the link below.

There is an interesting article about Nielsen Norma Group (not sponsoring), that describes in detail about glasmorphism, you may want to read it.

Three 3D plant on soil with leaves of different colors and pots, on top there is a text that says “Glasmorphism”, the half of it has a a blurry rectangle in the background
Three 3D plant on soil with leaves of different colors and pots, on top there is a text that says “Glasmorphism”, the half of it has a a blurry rectangle in the background
A comparison of text with and without glasmorphism

Is it too much bother? Remember:

“When you make minor permutations (choices) that deviate from your initial conditions, profound effects transpire over time.”

M.J. DeMarco

Who am I?

My name is Toberth Smith, and I'm passionate about developing products, with a weakness for UI/UX design and web development… and… well… I just love computers and get things done.

A youn man of latin appearance wearing glasses

Who am I?

My name is Toberth Smith, and I'm passionate about developing products, with a weakness for UI/UX design and web development… and… well… I just love computers and get things done.

A youn man of latin appearance wearing glasses