Why my fixed mobile menu was 81px tall: backdrop-filter and containing blocks
The mobile menu on this site opened as an 81px strip. The cause was a frosted-glass header, and a CSS rule most of us never think about.
Notes on HTML, CSS, JavaScript, responsive layouts and accessible interfaces.
The mobile menu on this site opened as an 81px strip. The cause was a frosted-glass header, and a CSS rule most of us never think about.
You don't need a token pipeline to get the benefits of design tokens. Two layers of CSS custom properties cover most sites.
Dark mode is mostly a token problem. Swap a few CSS custom properties, respect the system setting, and stop the white flash before the first paint.
When a layout breaks in one browser only, a calm, repeatable process beats trial and error. Here is mine.
Accessibility is easier to build in than to retrofit. These are the checks I run on every page before calling it done.
Mobile-first is more than a media query direction. A few habits that keep responsive stylesheets small and predictable.
Before writing any markup, I read the design as a system. Here is the order I work in when a new Figma file lands.