← All notes
CSS & UI

Modern CSS now does what used to need JavaScript

DV
Daan VisserMarch 24, 2026 · 3 min read

CSS has made a quiet leap. With :has(), container queries and modern layout, you now do in styling what used to need a chunk of JavaScript.

Less code, fewer bugs

Components that respond to their own container instead of the screen, or styling that depends on what is inside — it is more robust and faster than the same logic in JavaScript.

Our take

Every rule the browser handles natively is a rule we don't have to maintain. We happily lean on the platform where we can.

Thinking about a build?Compile your idea →