CSS: Children of a Lesser God
summary
Argues that ad hoc numeric values make CSS fragile and proposes concrete fixes: use an 8-point layout grid and modular scales instead of magic numbers, implement reusable/testable primitives via PostCSS and Sass functions, and run DOM tests with Karma plus unit tests for Sass. Also recommends enforcing ordering and style conventions to improve gzip efficiency and maintainability, claiming convention-driven CSS reduces breakage in practice.
AI-written summary · about
chapters (6)
- 0:00Introduction
- 6:56CSS is minor
- 12:25CSS vs JavaScript history
- 14:50CSS mistakes and best practices
- 18:25CSS testing and maintainability
- 21:18Future of CSS








