Walking on broken glass…

attempt to replicate glass ui with css

Apple has something of a history of making its UIs difficult to imitate. There was a long period in the 1990s when Apple's user interface began to look dated in comparison to the shaded user interfaces in, for example NeXTStep and Windows 95. (Fun fact: the Windows 95 close widget was licensed from NeXT!)

When Mac OS X shipped, Steve Jobs clearly wanted the Mac user interface to not just look modern, but to look modern in a way that would be very hard for Microsoft (et al) to imitate.

In a nutshell, because Apple's engineers had done some spectacularly clever things with Quartz—its graphics engine—Mac OS X could render things like fonts, anti-aliased splines, translucency and soft-shadows using the GPU (and all Macs had GPUs), and this was used to great effect in making the Aqua user interface look like something from science fiction.

(Another funny story: Quartz was written because Adobe wouldn't reduce its ridiculously high license fee for Display Postscript, the result of which is Apple now has a better, faster PDF engine than Adobe).

I was working in Multimedia and Game Development at the time, and Apple was doing things with their buttons (which glowed, and throbbed, and were translucent, and had composited highlights) that we had trouble replicating with Photoshop, and that was just to make swappable images for active and hover states. But all of this was live and animated and the refresh rate of the monitor on Mac OS X.

Sure, Aqua was over-the-top, kind of garish, and looks dated now, but at the time it was very, very impressive.

Since then, Apple has generally toned down the flashiness of their user interfaces, stressing minimalism, attention to detail, and incredible execution (e.g. the San Francisco system font is a work of art, and the squircle is something it's hard to imagine any other company coming up with).

But then along came a delightful and elegant new software design, a.k.a. "glass".

When I saw the new UI being demonstrated at the WWDC keynote, my first reaction was "this is going to be Aqua all over again", and the demo itself didn't really dispel that. But actually in its released form in iOS 26 / macOS Tahoe it's actually very understated and quite subtle. It's so subtle it can be hard to tell whether a given App is actually using glass widgets or not.

That said, it has details in its design that are (as far as I can manage) impossible to replicate using CSS. E.g. there are refraction effects in panels that are mind-blowing, and the way buttons are lit is very clever. At least the "active" effect is doable…

Anyway, can't blame a guy for trying.

— Tonio Loewald,