What is the difference between SASS variables and CSS custom properties?
Description : Comparing SASS variables with CSS custom properties.
Answer :
SASS variables and CSS custom properties(variables) serve similar purposes but differ in scope and functionality.SASS variables are compile-time variables used only in the SASS code, e.g.,`$primary-color: #3498db;`.CSS custom properties are runtime variables applied directly inCSS, e.g.,`--primary-color: #3498db;`. Custom properties are dynamic and can be manipulated with JavaScript,whileSASS variables are static and compiled into CSS.