0
When I try to use a variable from a file . scss, with one variable it works and another not:
_templateColors.scss
$blue-dark : #0277bd !important;
$gray-light : #f5f5f5 !important;
$gray-dark : rgba(51,51,51,0.08) !important;
File that uses these colors:
@import "../../../core/static/scss/_templateColors.scss";
#left_nav{
background-color: $gray-dark;
}
When I use the variables $blue-dark
and $gray-light
works normally, but the $gray-dark
nay.
Error:
Error: Undefined variable.
╷
4 │ background-color: $gray-dark;
I couldn’t reproduce your problem...
– Luiz Felipe
Dude this is not SASS this is SCSS, it might be some config of your compiler
– hugocsl
I edited and placed Sasscss.
– Natan Almeida de Lima
Related: What is the difference between SASS and SCSS
– Icaro Martins