I am trying to override the default colors of Bootstrap in my Angular project. I have created a _variables.scss file inside of my src folder.
Inside of this file I have added the following code: $primary: purple;
Then I have imported my _variables.scss file into my main styles.scss like this: @import 'variables';
I have also arranged my angular.json file so that my styles look like this:
"styles": [
"src/styles.scss",
"node_modules/bootstrap/dist/css/bootstrap.min.css"
],
What I would like to achieve is that when i use the following code in my html:
<button type="submit" class="btn btn-primary auth-button">Sign in</button>
the color of my button should be purple.
I want to change more variables later on and on a few pages, thus this should be a global variable.
styles.scssI only import my_variables.scss. My Bootstrap is included in app throughangular.json.