@import SCSS files not recognized by compiler?

2.1k Views Asked by At

It won't compile it says:

Undefined variable: "$blue-logo-color."

In variables.scss I have:

$blue-logo-color: #3cabf5;

and in site.scss I have:

@import "variables.scss"

.blue-logo-color {
    color: $blue-logo-color;
}

.blue-logo-background-color {
    background-color: $blue-logo-color;
}

How can I make the WebCompiler include global scss/css files for the compiler? It also doesn't seem to recognize global includes from _Hosts.cshtml.

1

There are 1 best solutions below

3
On BEST ANSWER

SCSS import statements require a semicolon

@import "variables.scss";