M
M
MRcracker2021-09-05 22:12:52
Sass
MRcracker, 2021-09-05 22:12:52

How to set up the import correctly?

I have a file that contains variables with colors and a file that contains general styles. They are all in the same folder.

The variable file contains:

$text-color: #242424;
$white: #fff;


I import the variable code into the second file and call the variable:
@import "_vars.scss";
body{
color: $text-color;
}

Компиляция проходит нормально, но вместо цвета указывается название переменной. В чем проблема может быть и в какую сторону хотя бы нужно гуглить?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question