The Unbearable Lightness of Writing CSS
summary
Brief history of CSS leads into concrete tricks: filter property for image manipulation (blur, contrast, hue-rotate, sepia) and practical use of :has and :is for conditional selectors to style parents based on children. Demonstrates responsive sizing with calc and argues for using SAS as a preprocessor for variables, nesting, mixins, functions and loops to eliminate repetition. Shows Tailwind tradeoffs, explains simple Sass setup, and claims these tools reduce manual CSS work and speed responsive layouts.
AI-written summary · about
chapters (24)
- 0:00Introduction and title joke
- 1:27Three acts of the talk
- 2:49Brief history of CSS
- 4:13CSS filter property demo
- 6:42CSS :has() pseudo-class
- 7:44CSS :is() pseudo-class
- 8:05CSS calc() function
- 9:30CSS pre-processors overview
- 10:12Sass introduction and features
- 12:23Sass variables
- 13:04Sass nesting
- 14:07Sass mixins
- 15:33Sass functions and conditionals
- 16:36Sass loops and arrays
- 17:37Other CSS pre-processors
- 18:27Q&A: Less vs Sass
- 19:10Q&A: Sass vs Tailwind
- 20:36Q&A: Setting up Sass
- 20:56Q&A: Tailwind preference
- 21:38Q&A: When to use CSS
- 22:20Q&A: Downsides of pre-processors
- 23:04Q&A: Large application CSS
- 24:05Q&A: Learning CSS today
- 24:47Q&A: ChatGPT for CSS
