Closed renege closed 9 years ago
Bitters defines the $base-accent-color
variable out-of-the-box, so if you want to overwrite it, then you need to do it below @import "../bower/bitters/app/assets/stylesheets/base";
.
A much better approach would be to change the value for $base-accent-color
inside base/_variables.scss
, instead of overwriting it. If you go that route, I would not use Bower, because running an update for your packages would then overwrite your changes in Bitters. This is why we do not officially publish Bitters as a Bower package.
I prefer bower.
@import "_settings/fonts";
@import "../bower/bourbon/dist/bourbon";
@import "_settings/grid";
@import "../bower/neat/app/assets/stylesheets/neat";
@import "../bower/bitters/app/assets/stylesheets/base";
$base-accent-color: red;
Still not working if I do it as above. Strange, because it works for the other sass-variables.
Bower makes sense for things like Bourbon and Neat (because you should not change the files in those), but much less for Bitters, because it’s built to be changed by you. Overwriting Bitters variables is overly complex and can cause issues.
Can you define “doesn’t work”? Is Sass throwing an error? If so, what’s the error?
I only wanna change colors, so it's fine for me like this. Use it like this in multiple projects. Always used blue, but now I wanna change that color.
The problem is, is that it keeps the default $blue color. I want it changed in another color.
It’s hard to troubleshoot without seeing more of your codebase. Can you share? Where are you using $base-accent-color
where it’s putting blue instead of red?
When I try overwriting $base-accent-color: red;. it doesn't work. I put it on top of the sass.