Dynamic Scroll Based Classes Here is a super useful snippet for dynamically updating the body's class based on scroll position in the browser. #javascript #css
Build alternate element styles easily with currentColor If you are styling multiple alternate styles for the same element (eg. a button), did you know you may not even need to write custom overrides at all? `currentColor` is an amazingly simple yet powerful example of the CSS cascade's capabilities, allowing you to easily switch out the colours of text, borders, and more. #css
How to implement a fool-proof dark mode **I think it's fair to say dark mode is one of 2019's biggest design patterns, especially amongst developers.** Here's a fool proof way to implement dark mode on your website so that it saves a user's preference and ensures no flash of inverting colours on page load. #css #javascript
A rant about the State of CSS in 2019 I have opinions of the state of CSS today. Some of them controversial, probably. #css #javascript #process #rant
Centering elements with CSS You wouldn't think it, but centering elements with CSS has got to be one of the most finicky things ever. #css