Menu

1,818 selectors ship in our stylesheet, not one of them has an id, and nine !important of which five we wrote
📰

1,818 selectors ship in our stylesheet, not one of them has an id, and nine !important of which five we wrote

DEV Community: css·Daniel Pertu·14 days ago
#DwHvRMRt
#devtocss#devto#dev#class#file
Long article (1717 words) — no AI summary yet.
Reading 0:00
15s threshold

If you write utility classes, you do not write your stylesheet. A compiler does, from the class names it finds in your source, and the file it produces is the thing browsers actually have to deal with. I had read plenty about Tailwind 4 and never once opened the output.

So I opened ours. The subject is Nakodo : two CSS files, served from the live site, generated from one 865-line source file plus whatever classes appear across 582 TypeScript files.

How it was measured

Every page links the same two stylesheets, which you can see for yourself in the head of any page.…

Continue reading — create a free account

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