Tagged: web-dev

Feed
2026.AUG.08

Solving a Largely Imaginary User Goal

Marcin Wichary:

On her blog, Lea Verou makes a case that each user-facing website dark-mode toggle should only ever show two options, but in a smart way.

The challenge is that any dark mode toggle needs to actually accommodate three options: dark, light, and the default “whatever the system says” (which can be always dark, always light, or change with the time of day). Many toggles simply pass that complexity onto the user:

I have been enjoying the Unsung blog by Marcin Wichary a lot. This post exemplifies why. He takes the smallest ideas in design and UX and dives deep into them.

I have already changed my website’s dark/light mode toggle to work this way! (I never had the tri-state toggle, but any change in preference was only for the current browser tab, it wasn’t getting persisted.)

2026.JAN.07

You can make up HTML tags

Browsers handle unrecognized tags by treating them as a generic element, with no effect beyond what’s specified in the CSS. This isn’t just a weird quirk, but is standardized behavior. If you include hyphens in the name, you can guarantee that your tag won’t appear in any future versions of HTML.

This is so cool, and I had never heard of this before. I wonder why this is not more popular — really semantic HTML!