Style-observer: JS to observe CSS property changes, for reals
Introducing style-observer, a JavaScript library to detect and respond to CSS property changes, including custom properties.
Introducing style-observer, a JavaScript library to detect and respond to CSS property changes, including custom properties.
A guide on using CSS variables to create cleaner, more maintainable and scalable stylesheets for web development.
A deep dive into the CSS `revert` keyword and why it behaves unexpectedly with custom properties, based on a Twitter quiz most developers got wrong.
A CSS technique using a single custom property with a space value to toggle multiple style declarations on and off, enabling conditional styling.
A developer's guide to implementing a user-toggleable dark mode on a website using CSS custom properties and JavaScript.