Incorporating a custom _variables.scss
file into my codebase is crucial for my project, and the way I import it is as follows:
@import url('https://fonts.googleapis.com/css?family=Nunito');
@import 'variables';
@import 'bootstrap/scss/bootstrap';
@import "custom";
Attempting to modify the alert color using the code snippet below has produced no visible change:
$alert-color: $orange;
$alert-bg: $orange;
$alert-border-color: $orange;
While I am aware that utilizing CSS variables is an alternative method to achieve this, I prefer having a centralized location for managing custom modifications whenever possible.
Presently, my Bootstrap version is 5.1; however, the solution should remain viable for 5.2 as I plan to update soon.