I think this is a great read that underscores how CSS can be quite powerful. In order to build out a night mode version of Hulu, the team got frustrated trying to sort out how to manage the relevant properties throughout their deeply-nested React codebase. Turns out swapping out some CSS variables was a lot easier to implement.
Hat tip to Stu for the insights:
Interesting that after implementing this within their stack (using React) they ended up swapping it for CSS custom properties and toggling a class for simpler implementation and easier maintainability. https://t.co/IlYuSzZj7J
— Stuart Robson (@StuRobson) December 19, 2018