When trying to apply the following to my SCSS:
$main__blue: 130, 207, 236;
:root {
--main__blue: #{$main__blue};
}
h1{
color: rgb(var(--main__blue));
}
I get the following error from compiler:
Compilation Error Error: Function rgb is missing argument $green. on line 44 of sass/c:{...}\assets\css\style.scss color: rgb(var(--main__blue));
I don't want to declare the variable as RGB (in which would solve my problem), because I want later on to reuse it as an RGBA.
The strange part is that when applying the same code to my CodePen, it works perfectly.
What am I doing wrong and how can it be solved?
VSCode with Live Sass Compiler extension.