Web for all, all for web.

The web is the one platform anyone can build on, with nothing more than a text editor and curiosity. The knowledge that makes it work should be just as open.

This lab is a home for frontend resources that anyone can use: tools that answer real questions, and explainers that teach the idea behind the answer. Every one of them is free, needs no account and works with a keyboard, a screen reader, a phone or a ten-year-old laptop.

Privacy

No cookies. No tracking. Nothing to accept.

The site sets no cookies, loads nothing from other servers and runs no analytics. The fonts are served from this domain. Your theme choice is kept in your own browser's local storage, and the tools run entirely on your device. When you copy a link, your inputs are encoded in the link itself, so they only go where you send them.

If privacy-respecting, cookieless visit counts are ever added, this page will say so first.

How it's built

Pages are static HTML built with Astro. The specificity tool is one small script in plain TypeScript, with no framework, and the selector parser only loads when you start typing. With JavaScript off you still get a correct, pre-calculated example and the full explainer.

The CSS practises what the tool teaches. It declares its cascade layers up front ( @layer reset, tokens, base, layout, components, utilities;), wraps base styles in :where() so they have zero specificity, uses no IDs in selectors and no !important outside the reduced-motion override. It uses logical properties, fluid type with clamp(), container queries and light-dark() for the two themes.

The calculation engine is plain TypeScript with no browser or framework code, so it can be tested on its own: specificity, nesting, the full cascade and shareable links all have their own test suites. Accessibility is checked automatically on every page, in both themes, and by hand with a keyboard.

Who makes it

Suprabhat Kumar, a frontend engineer. More work and contact details are on suprabhat-dev.com. Found a mistake? Saying so helps everyone who uses these tools.

Open CSS Specificity Wars