Yesterday me and my wife designed a site for her company.
We wanted to follow the glassmorphism trend because itās pretty fucking beautiful, I mean, look at this:
That blurred sidebar look so slick! And Apple isnāt the only one using this trend, if you just search for the term in Dribbble or Google, youāll see how freaking satisfying is to look at those glassy panels.
But what makes a glass panel look so good? Because if we just draw a shape and blur the background itās not gonna look good, look:
See? It doesnāt even look like glass. The reason is that thereās a few parts missing for this small little card to look good and glass-like. The first one is having something to blur. A solid color will never look good blurred, because when you blur a solid color, nothing happens.
Letās put a nice image behind it to see how it looks:
It already looks waaaaay better. The blur radius is set to 40px. Yeah I added a star icon and tweaked the typography, but the glass effect itself already looks kinda good, but itās not done yet, still doesnāt look real enough. If you take a closer look at Appleās example above, youāll notice thereās a little border around the glass. Thereās actually 2 borders, a black low opacity border outside and a gradient border inside going from white to transparent, diagonally. Thatās because glasses reflect light differently in the borders.
Letās add those:
Hmmm, tasty. I added a 10% opacity black border outside and, inside, a gradient border with opacity set in 30% going from white (100% opacity in the color, not in the whole border) and 50% white in the other edge:
But itās not done yet, thereās one last step missing: THE MIGHTY SHADOW. You just need to add a drop shadow in the glass to make it look like itās raised, above the background. But you have to make sure the shadow doesnāt go behind the glass itself. Figma has a checkbox for this. Hereās my drop shadow panel:
Make sure to uncheck that āShow behind transparent areasā. And hereās the final result:
It looks AWESOOOOOOOOME. Oh, I increased the black border opacity to 20% (cause it disappeared after adding the shadow) and also increased the background blur radius to 60px.
Thatās it, this is how you make a good looking glass panel, but I have one last tip: smooth shadows.
You may be wondering what the hell is that, since the drop shadow effect is already smooth. Well, what if I say thereās another way to create shadows that looks way different?
Take a look:
Itās subtle, but noticeable. It's a different style, but it sure look good as well. This is not something we usually do by hand, thereās plenty of smooth shadow generators out there, but Iāll mention two of them:
It basically adds multiple shadows to create something more realistic.
If you wanna see the difference, hereās a side-by-side:
In my wifeās companyās site, we wanted it to look like something old, so we combined a bunch of shit. We created some black/white gradients for the background, created a abstract shape behind the main stuff, added grain to the whole thing, used glass panels (with smooth shadow) in the inputs and blurred everything just a little bit (the fonts included), so you feel youāre inside an old movie. Hereās the result:
To be honest, I love it. Itās pretty different and really weird, but I love how weird and interesting it is.
The font I used in all images is Inter, an open source font. You can find it in Google Fonts or in Github. It's gorgeous.
Thatās it, thanks for reading!
There won't be any wallpapers today since this newsletter got long enough lol