After following the steps outlined in this guide, I successfully customized the default colors of Bootstrap 5 in my React application created using create-react-app
. Within my /src/scss/custom.scss
file, I can easily utilize any newly defined variables and classes that I have created work without any issues. However, I am facing a challenge with the default Bootstrap classes that involve colors such as btn-primary
, bg-secondary
, or text-white
. Even though I have made changes to these colors in my custom stylesheet, they are not reflecting when I use the corresponding Bootstrap classes. For instance, despite updating the color assigned to btn-primary
, the button still appears in the original blue shade that is the standard Bootstrap primary color.
What could be causing this discrepancy?