Home/Zell Liew
Author
ZLZell Liew

Zell Liew

25 articles by Zell Liew.

Engineering — Markdown + Astro = ❤️

Markdown + Astro = ❤️

Although Astro has built-in support for Markdown via .md files, I'd argue that your Markdown experience can be enhanced with MDX.

ZLZell LiewZell Liew·April 20, 2026Engineering
Languages — Popover API or Dialog API: Which to Choose?

Popover API or Dialog API: Which to Choose?

Choosing between Popover API and Dialog API is difficult because they seem to do the same job, but they don’t! After a bit lots of research, I discovered that the Popover API and Dialog API are wildly different in terms of accessibility and we'll go over that in this article.

ZLZell LiewZell Liew·March 2, 2026Languages
Engineering — Building a Honeypot Field That Works

Building a Honeypot Field That Works

Honeypots are fields that developers use to prevent spam submissions. They still work in 2025. But you got to set a couple of tricks in place so spambots can’t detect your honeypot field.

ZLZell LiewZell Liew·October 20, 2025Engineering
Frontend — Composition in CSS

Composition in CSS

CSS is a composable language by nature. This composition nature is already built into the cascade. We simply don't talk about composition as a Big Thing because it's the nature of the language.

ZLZell LiewZell Liew·September 8, 2025Frontend
Frontend — Making a Masonry Layout That Works Today

Making a Masonry Layout That Works Today

I went on to figure out how make masonry work today with other browsers. I'm happy to report I've found a way — and, bonus! — that support can be provided with only 66 lines of JavaScript.

ZLZell LiewZell Liew·July 28, 2025Frontend
Engineering — A Primer on Focus Trapping

A Primer on Focus Trapping

Focus trapping is about managing focus within an element, such that focus always stays within it. The whole process sounds simple in theory, but it can quite difficult to build in practice, mostly because of the numerous parts to you got to manage.

ZLZell LiewZell Liew·July 21, 2025Engineering
Frontend — Using CSS Cascade Layers With Tailwind Utilities

Using CSS Cascade Layers With Tailwind Utilities

Being the bad boy I am, I don't take Tailwind's default approach to cascade layers as the "best" one. Over a year experimenting with Tailwind and vanilla CSS, I've come across what I believe is a better solution.

ZLZell LiewZell Liew·June 30, 2025Frontend
Performance — A Better API for the Resize Observer

A Better API for the Resize Observer

ResizeObserver, MutationObserver, and IntersectionObserver enhance performance over their predecessors. Zell discusses their API similarities, usage steps, refactoring strategies, and advantages with practical examples.

ZLZell LiewZell Liew·June 16, 2025Performance
Frontend — Tailwind's @apply Feature is Better Than it Sounds

Tailwind's @apply Feature is Better Than it Sounds

Most of the time, people showcase Tailwind's @apply feature with one of Tailwind's single-property utilities (which changes a single CSS declaration). When showcased this way, @apply doesn't sound promising at all. So obviously, nobody wants to use it. Personally, I think Tailwind's @apply feature is better than described.

ZLZell LiewZell Liew·April 10, 2025Frontend
Design & UX — Tooltip Best Practices

Tooltip Best Practices

What are tooltips, exactly? There's two kinds and the one you use has implications on the user experience, as Zell illustrates in this explainer on best practices.

ZLZell LiewZell Liew·October 29, 2024Design & UX
Frontend — The Flavors of Object-Oriented Programming (in JavaScript)

The Flavors of Object-Oriented Programming (in JavaScript)

In my research, I've found there are four approaches to Object-Oriented Programming in JavaScript. Which methods should I use? Which one is "the best" way? Here I'll present my findings along with information that may help you decide which is right for you.

ZLZell LiewZell Liew·September 28, 2020Frontend