Reactive CSS
summary
Reactive CSS shifts UI logic from JavaScript into styles by driving component appearance from CSS state variables. The talk uses step-by-step examples — recoloring a progress bar based on progress, linking CSS logic to external parameters controlled from JS, combining this approach with native CSS features to create complex effects — and culminates by building and comparing two slider implementations whose entire appearance is driven by a single CSS variable. It finishes with discussion of browser support, fallbacks, performance, and whether the approach is viable going forward.
AI-written summary · about
