CSS Modules

Here’s an interesting talk about CSS modules I gave all the way back in 2016. What started as a set of rules and naming conventions known as BEM had now evolved into something even better: CSS modules. For me, this was definitely the first time I started seeing that using CSS as a thing completely separated from everything else is inherently a bad idea, and that it’s part of the reason CSS is so tedious to maintain.

I think these days writing CSS has gotten even better. Libraries like styled-components, emotion and similar are a must especially when using React and TypeScript. CSS modules still work, but you lose some nifty improvements we’ve gotten in 2 years.

Anyway: enjoy the talk and let me know what you think 👌