I am trying to override Bootstrap colors, following the docs, but nothing changes.
I'm using react-bootstrap@2
and bootstrap@5
Here is my root sass file:
// Presence of these two imports doesn't make a difference
@import "~bootstrap/scss/functions";
@import "~bootstrap/scss/variables"; // Moving this line under the custom variables also doesn't work
$primary: #222;
$theme-colors: (
primary: #222,
);
// Tried map-merge, no effect
// $theme-colors: map-merge(
// $theme-colors,
// (
// primary: #222,
// )
// );
$white: #000;
$black: #fff;
@import "~bootstrap/scss/bootstrap";
I've looked up at many answers of similar problems but none worked for me.