Answer the question
In order to leave comments, you need to log in
Why is @mixin not included from another file?
I have two scss files file-1 and file-2.
Goal: write a mixin in file-2 and include it in file-1 so that it works out
the code in file-1
@import url(file-2.css);
p {
@include font-color;
}
@mixin font-color {
color: yellow;
}
Answer the question
In order to leave comments, you need to log in
Mixins are written in scss files. And you need to connect accordingly.
@import 'file2.scss';
p {
@include font-color;
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question