Keynote: CSS Variables: var(--subtitle);
summary
CSS Custom Properties are usable today not just as prettier Sass variables but as real CSS properties that work like normal inherited properties and can be set inline or by JS. Live demos show gradients, themable buttons, SVG eyes, sliders and scroll progress bars built with variables and they work, with caveats: cannot concatenate strings or use variables in property names or media queries; cycles become invalid and animations flash unless JS metadata is provided. Browser support hits ~85% in the presenter’s chart and JavaScript can set/get them via setProperty/getPropertyValue to drive UI state.
AI-written summary · about
chapters (14)
- 0:00Introduction
- 1:36CSS variables basics
- 6:04Inheritance and scope
- 9:01URL and string limitations
- 12:31Fallbacks and computed values
- 14:42Imperative vs declarative
- 18:34Browser support
- 22:12Using @supports
- 23:34Parsing and units
- 27:24Animations and transitions
- 31:27Component design patterns
- 35:11Practical use cases
- 40:44JS and CSS integration
- 57:11Conclusion
related talks
53mCSS Variables: var(--subtitle)
44mCSS Variables: var(–subtitle)
18mDemystifying CSS Custom Properties
37mCSS Custom Properties
34mCSS Variables. What Do They Know? Do They Know Things?? Let's Find Out!
38mDemystifying CSS Custom Properties
59mCSS Variable Secrets
42mCustom properties as the basis of CSS architecture
