Thomas Vaeth was born in New York, raised in Pennsylvania, and transplanted in Washington. He was a Web Developer at Urban Influence, but now he's a Software Engineer at Getty Images. 👨💻
twitter.com/Real_CSS_Tricks/status... I was saying CSS variables that way you can just redefine them in the data-theme styling and cut down on have to write more CSS than necessary.
You could write some simple JS to just toggle the data-theme on body when the user clicks the color switch and that's all you would need instead of all of React.
twitter.com/Real_CSS_Tricks/status... I was saying CSS variables that way you can just redefine them in the data-theme styling and cut down on have to write more CSS than necessary.
You could write some simple JS to just toggle the data-theme on body when the user clicks the color switch and that's all you would need instead of all of React.
Wow! This is excellent. Thanks for bringing it up. I'm gonna take a deeper look into it. 🎉