Combining SASS variables with CSS custom properties
On the surface, both of these do the same thing. These will both set the background to red.
SCSS:
body {
$red: #ff0000;
background: $red;
}
CSS:
body {
--red: #ff0000;
background: var(--red);
}
But they are different. There's a CSS Tricks ex...
blog.nicm42.me.uk1 min read