Menu

Our stylesheet registers 53 custom properties, and 44 of them never leave their starting value on any of our 38 pages
📰

Our stylesheet registers 53 custom properties, and 44 of them never leave their starting value on any of our 38 pages

DEV Community: tailwindcss·Daniel Pertu·4 days ago
#mFPpjDCr
#devtotailwindcss#devto#dev#backdrop#value
Long article (1239 words) — no AI summary yet.
Reading 0:00
15s threshold

Notifio has 38 public pages, and all of them load one stylesheet, 39,856 bytes of it. Yesterday's post about that file counted what its rules match. It mentioned in one sentence that 54 of the 611 rules were @property registrations and then moved on, because a style rule either matches an element or it does not, and a registration is a different kind of thing. It does not match anything. It declares that a custom property exists, what type it has, and what value it holds before anyone sets it.

So the question for those rules is not "does it match" but "does anything ever hold a value other than the starting one". This post answers that for the live site.

What is in the file

The sheet served at the time of writing has 53 registrations (yesterday's post counted 54; I have not worked out why it is 53 today, and the repository moving from Tailwind 4.3.3 to 4.3.5 in the meantime is only a suspect). Together they are 3,230 bytes, 8.1 per cent of the file.…

Continue reading — create a free account

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