Do You Still Need Sass?
summary
Shows a JavaScript demo that toggles a CSS custom property on click, proves calc/min/max/clamp and new color functions like color-mix and relative color syntax work natively, and demonstrates CSS nesting differences (no selector concatenation, no reusable & variable trick). Notes if() and @function are implemented only in Chromium today. Walks through using PostCSS custom-media and a Drupal build that turns .pcss into .css and converts px→rem. Recommendation: drop Sass only when you no longer need mixins, maps or legacy-browser polyfills.
AI-written summary · about
chapters (14)
- 0:00Introduction and speaker intro
- 1:04CSS features replacing Sass
- 3:11Custom properties and JavaScript demo
- 5:40CSS math functions: calc, min, max, clamp
- 9:13New color functions in CSS
- 15:15CSS nesting vs Sass nesting
- 19:09Upcoming CSS if and at functions
- 23:06PostCSS for modern CSS support
- 27:23PostCSS in Drupal examples
- 34:04Downsides of PostCSS
- 35:07Mixing Sass and native CSS
- 37:58Should you still use Sass?
- 39:30Conclusion and further reading
- 40:12Q&A
