I'm beginning with sass and i'm trying to import a file with my variables.
it's look like this
// _variables.scss
$blue: #0D6EFF;
$red: #FB2B37;
$black: #272727;
$green: #31E3A1;
$lightgrey: rgba(172, 179, 186, 0.5);
// style.scss
@use "variables";
html, body{
height: 100%;
margin: 0;
position: relative;
color: $blue;
font-size: 18px;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
When I compile I get "Undefined variable" and in my style.css the "@use 'variables' " appears at top but if I use @import instead everything works well. I know I could use import but on the Sass website they recommand to use "@use" so could you help me please to fix that bug and understand why it doesn't work ?