Answer the question
In order to leave comments, you need to log in
How to set @import correctly?
In general, I master SASS / SCSS and faced such a problem. There is a common css file. We will import the rest to it. In theory, variables should be visible in all files. BUT! No. I understand that this is due to the fact that in the main.scss file (which is presented in the code) the imports are specified with the .css extension. But if you do not set or set .scss at all, everything just falls off.
//vars
$white: #f6f6f6;
$blue: #33c1e3;
//layout
@import url('_misc/normalize.css');
@import url('_misc/layout.css');
//styles
@import url('sections/header.css');
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question