Munchable's website is 523 URLs. There is no Tailwind in it, no CSS-in-JS, no component library, and no PostCSS plugin beyond what Next installs for itself. There is one stylesheet, written by hand, and a second one for the admin pages behind the login.

I have spent enough of this year writing audits of other people's frameworks that I thought I should point the same instruments at the thing I actually control. Here is everything in it, counted.

The totals

app/globals.css 3,154 lines 445 rule blocks 493 selectors (423 distinct) app/admin/admin.css 999 lines 145 rule blocks 149 selectors (136 distinct) 

The public one, as the browser receives it, is 50,455 bytes, and 10,067 bytes over brotli. That figure includes the 37 @font-face rules next/font generates for three families, so the design itself is comfortably under 10 KB on the wire. For a site with 523 pages on it, the stylesheet is not the thing to optimise, and knowing that with a number rather than a feeling is most of why I counted.

Other totals, public sheet only:

distinct class names 221 id selectors 0 custom properties 28 var() uses 269 @media 9 @supports 1 @keyframes 8 !important 2 comment lines 127 

Zero ids was not a policy, it is just what happens when every selector is written next to the component that emits it. 269 var() uses against 28 declared properties is the ratio I was most pleased by: roughly ten uses per token, which means the tokens are real rather than decorative. All 28, in full:

--bg --bg-warm --ink --ink-2 --muted --line --line-soft --primary --primary-deep --primary-soft --primary-ring --caramel --caramel-ink --gold --pop --chip --good --caution --avoid --r --r-sm --r-lg --shadow-sm --shadow-lg --maxw --font-body --font-display --font-brand 

Three of those are the verdict colours, which is the entire product in three custom properties.

Nine media queries, and only six of them are about width

This is where a framework would have given me five breakpoints and I would have used five breakpoints. What a hand-written sheet produced instead:

@media (max-width: 980px) hero grid collapses to one column @media (max-width: 880px) nav links hide @media (max-width: 640px) answer list drops to one column @media (max-width: 560px) hero padding @media (max-width: 560px) 404 page padding @media (max-width: 480px) nav CTA spacing 

Six values, no scale, each one chosen where a specific piece of layout stops working rather than at a device size. 880 is where the nav links stop fitting beside the logo. 640 is where the answers index can no longer run its list in two columns. Nothing on the site queries 768 or 1024, because nothing on the site breaks there.

I am aware this is the thing people warn you about with hand-written CSS, and I would still defend it. A breakpoint scale is a promise that your components break at the same widths, and they do not. What it costs is that two of the six are 560, declared 400 lines apart, which a scale would have merged.

The other three media queries are not about width at all. Three of nine ask the user what they want:

@media (prefers-reduced-motion: reduce) { ... * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; } } 

That is also both of the !important declarations in the sheet. Both of them, in the one rule where !important is correct: a user preference has to beat an author's animation, including animations declared with higher specificity somewhere else in a 3,154-line file. The 0.001ms rather than 0 is the old trick that keeps animationend and transitionend firing, so JavaScript waiting on a transition does not hang when motion is off.

And the single @supports, which guards the scroll-driven reveals:

/* * `@supports` guard matters more than it looks: where a browser does not * understand `view()` the rule never applies at all, so the content is plainly * visible rather than stuck at `opacity: 0` waiting for an observer that is * never coming. That is also what a crawler sees. */ @supports (animation-timeline: view()) { @media (prefers-reduced-motion: no-preference) { 

Scroll-driven animations with no JavaScript, declared so that the failure mode is "no animation" instead of "no content". That nesting order is deliberate: feature support outside, user preference inside, so a browser that supports it and a user who does not want it both land on the same plain page.

The 60 class names a crawler cannot reach

I crawled 92 pages, which is every page family on the site plus 30 of the 461 answer pages, and collected every class name in the HTML. Of the 221 in the stylesheet, 161 appeared and 60 did not.

The 60 are not dead. They cluster, and the clusters name themselves:

auth-* 16 sign-in and account pages support-* 13 the support thread nf-* etc. 9 the 404 chooser-* 4 the post-signup plan picker status-* 3 checkout success and cancel reconsent* 2 the terms banner 

That is 47 of the 60, all belonging to pages that are either behind a login or deliberately kept out of the sitemap. Which gives me a number I did not have before: about a fifth of our public class names style pages no search engine will ever see. The stylesheet is one file for one origin, so every visitor downloads the sign-in page's styles whether or not they ever sign in. At 10 KB brotli that is not a problem worth splitting a build over, and I would make a different call at 100 KB.

Then ten loose ones that are not a cluster, and that is where the actual findings are. I grepped each against the source:

btn-primary 5 files cta-error 3 files ok 3 files btn-ghost 1 file cta-note 2 files chip 4 files neutral 2 files demo-reason 0 files rdot 0 files visually-hidden 0 files 

Seven of them are used, on the pages excluded above. Three are referenced by nothing in the repository: demo-reason, rdot, and visually-hidden.

The first two are ordinary dead code and I will delete them. The third one is worth stopping on:

.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; } 

That is the standard screen-reader-only utility, defined correctly, and not one element on the site uses it. I also checked for the usual aliases: there is no sr-only, no second copy under another name, and nothing else in the sheet doing the same job. So either the site has no text that should be announced but not shown, which for a site with eight icon-carrying verdict colours I doubt, or there are labels that should be hidden text and are currently nothing at all. That is the one item from this entire count that goes on a list rather than into a bin, and I would not have found it by looking at the pages, because the symptom of a missing hidden label is silence.

Two class names in the HTML that style nothing

The audit runs the other way too: class names that reach the browser with no rule behind them. After discarding the three hashed next/font variable classes, there are exactly two.

<div className="sd-recent"> 

Nothing in the sheet matches sd-recent. It is the container around the "recent scans" rows in the homepage illustration, and its children (sd-row, sd-dot, sd-label) are all styled, so it is a wrapper that was either styled once or never needed to be. Harmless, and unresolvable by reading: you cannot tell from the file whether a rule was deleted or never written.

The second one is better, because its twin is two lines away. The store buttons render this:

<button type="button" className="store-soon store-soon--apple" aria-label="Coming soon to the App Store"> <span className="store-logo-disc"> <AppleLogo className="store-logo store-logo--apple" /> </span> </button> 

Two BEM modifiers, same component, same convention, same element tree. One of them is real:

.store-logo--apple { /* The Apple mark is a solid glyph and reads heavier than the Play mark, so it sits a touch smaller and optically centred in the disc. */ width: 18px; height: 18px; margin-top: -1px; } 

And store-soon--apple is nothing at all. The button needed no per-platform adjustment, the glyph inside it did, and the modifier got written on both because that is what you type when you are matching a pattern rather than solving a problem. You can see both buttons at the bottom of munchable.app (they are the two placeholders for the stores, which the apps are not in yet) and the optical centring is genuinely visible if you look at the two logos side by side.

The three class names that only exist as string fragments

Last count, and my favourite. I compared the two stylesheets to see what the public site and the admin pages share. The answer is three class names:

is-admin is-system is-user 

Those three, and nothing else. Not a button, not a card, not a token. And the reason is that they are the only class names in either file that are never typed in full anywhere:

<div key={m.id} className={`support-msg is-${m.author}`}> 
<div key={message.id} className={`admin-msg is-${message.author}`}> 

One line in the customer-facing support thread, one line in the admin ticket view, both interpolating the same database column into a class name. Which has two consequences I would not have predicted from either file on its own.

The first is that both stylesheets have to carry all three values independently, because the two components use different block names (support-msg and admin-msg) with the same modifiers. The duplication is not an accident of copy-paste, it is the interpolation forcing each sheet to enumerate the column's domain.

The second is that these are the three class names that a grep cannot find. Every audit in this post worked by matching class="..." in HTML or .name in CSS, and these only exist as a prefix plus whatever the database said. If author ever grows a fourth value, nothing fails: the message renders with no modifier, in the default style, looking like a message from whoever spoke last. A type would catch that in the component and does not, because the component is handing the string to CSS, and CSS has no types.

What I would keep

Hand-writing a stylesheet for 523 pages has been fine, and I think the reason is that every page is server-rendered HTML with no runtime style computation anywhere, so the sheet is a flat list of names that match a flat list of components. 10 KB brotli, nine media queries, no specificity war, and two !important that are both doing the right thing.

What it does not give you is the thing a framework gives you for free, which is that unused and unstyled names are impossible by construction. Those cost me a crawl of 92 pages and a Python script to find, and they found three dead rules, two dead class names, and one missing accessibility utility that nobody would ever have reported.

If you want to look at the output rather than the counts, munchable.app/fodmap-food-list is the most structurally complicated page on the site and /is-onion-low-fodmap is the simplest. They share the same stylesheet, and they reach for 37 and 32 of its 221 class names respectively, which is the clearest single number in this whole count: any one page on this site uses about a sixth of the design.