I think the biggest difference is that with preprocessor variables it’s just a dynamic placeholder for a ‘dead’ value to be placed into your CSS, but with true CSS variables they are ‘alive’ and can be updated and changed after the page has loaded. This is a lot more like ‘using JavaScript variables in CSS’!
I think the biggest difference is that with preprocessor variables it’s just a dynamic placeholder for a ‘dead’ value to be placed into your CSS, but with true CSS variables they are ‘alive’ and can be updated and changed after the page has loaded. This is a lot more like ‘using JavaScript variables in CSS’!