I'm trying to apply CSS variables to my RBG/RGBA but my VS Code Live SASS compiler throws a syntax error telling me I did not provide adequate arguments. Is there a work around for this?
CSS
:root {
--bg-color: 50, 50, 50, 0.5;
}
.container {
background: rgba(var(--bg-color));
}
VS Code Live SASS Compilation error:
--------------------
Compilation Error
Error: overloaded function `rgba` given wrong number of arguments
on line 329 of sass/.../main.scss
>> background: rgba(var(--bg-color));
------------------------^
--------------------