I'm using sass-bootstrap for my project, I have a _colors.scss file where I save my colors variables . I import my _colors.scss before importing bootstrap.
I can modify main bootstrap variables like:
$navbar-default-link-active-color: red;
// active link in header menu became red
But I cannot use color var in my other sass files like:
$brand-primary: #428bca;
body {
color: $brand-primary;
}
// this give undefined variable
How is that?
My import application.css.scss:
@import "base-elements/colors";
@import "base-elements/typography";
@import "base-elements/helpers";
@import "bootstrap-sprockets";
@import "bootstrap";
@import "bootstrap-theme.min";
@import "components/login";
@import "components/carousel";
@import "pages/pages";