Comments on: DRY Switching with CSS Variables: The Difference of One Declaration https://css-tricks.com/dry-switching-with-css-variables-the-difference-of-one-declaration/ Tips, Tricks, and Techniques on using Cascading Style Sheets. Sun, 10 Mar 2019 00:45:29 +0000 hourly 1 https://wordpress.org/?v=6.5.5 By: Les Orchard https://css-tricks.com/dry-switching-with-css-variables-the-difference-of-one-declaration/#comment-1674473 Sun, 10 Mar 2019 00:45:29 +0000 http://css-tricks.com/?p=274807#comment-1674473 “why I’d use variables in the browser rather than just in sass.”

For what it’s worth, CSS variables are read/write from JavaScript too. So there are a lot of interesting things you can apply from code. And if you get into Web Components / custom elements, CSS variables (along with manipulation from JS) are a good way to cross the Shadow DOM barrier

]]>
By: CSquire https://css-tricks.com/dry-switching-with-css-variables-the-difference-of-one-declaration/#comment-1653928 Thu, 13 Dec 2018 15:48:09 +0000 http://css-tricks.com/?p=274807#comment-1653928 This is really interesting stuff, I’ve been messing around with css variables for the past few days! Shame browser support is still a bit patchy, but exciting!!

]]>
By: Evan Payne https://css-tricks.com/dry-switching-with-css-variables-the-difference-of-one-declaration/#comment-1653763 Sun, 09 Dec 2018 08:42:10 +0000 http://css-tricks.com/?p=274807#comment-1653763 I can’t believe there aren’t any comments on this yet. This is really great. Complicated, sure, but finally some solid examples of why I’d use variables in the browser rather than just in sass. Thanks for taking the time!

]]>