Menu

The OnePassApps Stylesheet: 403 Custom Properties, Container Queries and Forced Colours
📰

The OnePassApps Stylesheet: 403 Custom Properties, Container Queries and Forced Colours

DEV Community: css·OnePassApps·12 days ago
#BAMz2APE
#devtocss#devto#dev#stylesheet#system
Reading 0:00
15s threshold

I work on OnePassApps, the team behind app.onepassapps.com. This post is a byte-level read of the stylesheet the live site actually serves - the one file every page on the site is painted with. No design documents and no memory: a plain HTTPS GET of the home page, then of the stylesheet that page links to, with a browser User-Agent and no JavaScript.

The file

The live home page links two stylesheets. The first, /shell-fallback.css, is 3,054 bytes and is the pre-JavaScript fallback that puts the first pixels on screen. The second, /assets/index-B_evf03w.css, is the real one: 242,648 bytes of CSS, served with a one-year immutable cache header, an ETag, and no Last-Modified. The same page also preloads three JavaScript chunks as modules.

403 CSS custom properties

The bundle declares 403 CSS custom properties and references them 2,885 times with var().…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.