Container Queries and the End of the Media Query Era
For two decades, responsive web design rested on a single technique: the media query. It was the tool that let websites adapt to different screen sizes, and it…
Open source · Node.js
StyleStats parses any HTML or CSS document and produces a small set of metrics — selectors, colors, font sizes, cohesion, !important usage — that act as an early warning system for stylesheet complexity.
Sample reports we keep on file — pick one to see the metrics.
Count selectors, unique colors, font sizes, and float properties — the signals that drift first.
Average and lowest cohesion scores reveal selectors that try to do too much at once.
!important driftSpot specificity wars before they become impossible to untangle.
Articles on CSS, design systems, and front-end craft.
For two decades, responsive web design rested on a single technique: the media query. It was the tool that let websites adapt to different screen sizes, and it…
Every stylesheet accumulates ghosts. Rules written for a component that no longer exists, overrides for a layout that was redesigned two years ago, colours def…
Every stylesheet starts clean. The colours are consistent, the spacing is deliberate, the type scale makes sense. Then the project grows, contributors come and…
Almost every frustrating CSS bug — the style that refuses to apply, the colour that will not change, the layout that ignores your careful rule — traces back to…
Artificial intelligence has stopped being a feature companies announce and started being the substrate they build on. The shift happened faster than almost any…
The home screen of an online casino is one of the hardest interface problems in consumer software, and almost nobody talks about it that way. A typical lobby h…