10

Glassmorphic Visual Hierarchy — 4 Practical Tips

 3 years ago
source link: https://blog.prototypr.io/glassmorphic-visual-hierarchy-4-practical-tips-76196a1cac03
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

You have 2 free member-only stories left this month.

UI Design Tutorial

Glassmorphic Visual Hierarchy — 4 Practical Tips

You already know how to create elements in Glassmorphic style? Now it is time to go a bit further and see how to use it wisely in UI components!

Glassmorphic layers
Glassmorphic layers

Glassmorphism is a visual design trend noticed in late 2020. It is not an entirely new thing because we already have seen UI that use glass material years ago, with Windows Vista.

Nowadays, designers started to use glass wisely in an attractive and usable way. Good examples of UIs that use glass are Apple’s iOS, macOS and Fluent Design System by Microsoft.

Creating Glassmorphic Elements…

If you would like to create just a single visual element in Glassmorphic style. Feel free to follow 6 simple steps I included in the tutorial — How to Create Glassmorphic Card UI Design. It also includes a video tutorials for Sketch and Figma.

Glass Card
Glass Card

Glassmorphism UI — Issues ⚠️

Key questions asked by everyone who would like to create real UI using Glassmorphic elements are — how to ensure good accessibility and how to style elements to set the right visual hierarchy.

If you won’t know how to play with the glass material. You may hurt your users. For good accessibility, you have to test your glass elevation and UI elements to match WCAG 2.0 guidelines with at least an AA contrast ratio.

For establishing a good visual hierarchy, let’s follow these steps:

How to Ensure The Visual Hierarchy?

Let’s take a look at the example below. 3 layers with the same glass materials overlapping each other. This initial set does not look so good, but it will help us to create a better visual hierarchy.

Glass layers with poor hierarchy
Glass layers with poor hierarchy

These four steps will make huge changes in our perception of the digital glass:

1. Add the subtle shadow

Shadow is almost always the most obvious way to show the hierarchy of the UI elements. Even when the objects with the same color overlap, it clearly shows which element is on top.

Add shadow to glass
Add shadow to glass

2. Differentiate blur

While the classic skeuomorphic interfaces are the song of the past, it is good to inspire from the real world. Look how acrylic or glass materials play with each other.
Elements that are closer to the background usually have a lower blur. The ones that are higher (bigger distance from the background) have got higher blur value.

Now see how it works in the digital world. Looks quite nice, isn’t it?

Differentiate blur
Differentiate blur

3. Lower Elevation Opacity & Dim the Content

If you want to make active elements more readable, it is good to make their opacity higher. Try to differentiate blur opacities. The lowest value for background elements. Highest opacity level for the elements that are currently active and are on the top of the hierarchy.

Remember that glassmorphic elements are background sensitive. I didn’t show the specific values because you have to try them out on your own in your project’s environment.

You may also lower contrast or opacity of content inside glass UI elements. Thanks to this highest layer will gain more focus.

See how it looks like in our example:

Modify opacity of layers
Modify opacity of layers

4. Add borders

If the techniques presented in previous points are not enough, you may always add a border. This may be the subtle white stroke with 20% of opacity. It will clearly communicate the boundaries of the specific UI elements.

Add subtle stroke
Add subtle stroke

If you would like to see how the elements will look in real UI, here is the sample from me:

Glass elements sample
Glass elements sample

See Glassmorphic Visual Hierarchy live

I have also prepared a short video tutorial that is a step by step demonstration how to achieve above effect. It may be done in a very similar way in Sketch and Figma. Check it out:

The final advice for Glassmorphism:

While the style itself is pretty attractive, please do not use it everywhere. If accessibility plays a key role in your project, try to avoid glass elements as the large parts of the UI. Their blur and transparency may lead to some accessibility issues.

Observe how real design systems User Interfaces look like and learn from the. macOS Big Sur includes a lot of examples that are worth following. Apple added a setting that allows users to turn off transculent backgrounds for better readability.

To Conclude

Now you know how to use Glassmorphic UI elements to look good in your projects. Remember about drop shadow, differentiating blur & opacity and consider adding subtle borders.

Digital materials have got their own rules, but it is worth it to inspire from nature. This kind of elements always look more natural to users.

If you found the tutorial useful, share it to let your friends know how to make their UI better! Feel free to 👉 discover more tutorials like this!

This article was originally published on my blog✍️, which has its origin in the Instagram tutorial 📷.

Thanks for reading!


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK