Scenario: You're using TypeScript, and want statically typed CSS too
Scenario: You're using TypeScript, and want statically typed CSS too.
The answer: vanilla-extract. 😍
It's like CSS modules, but also type safe! (and still zero runtime 🔥)
Excellent intro from @markdalgleish, the creator: https://www.youtube.com/watch?v=23VqED_kO2Q