As a newcomer to REACT, I am facing an issue with changing the theme colors in my freshly bootstrapped react application.
I have gone through some solutions suggested by others but none of them seem to work for me.
My entry point looks like this:
import React from 'react';
import ReactDOM from 'react-dom';
import { App } from './components/App';
import 'bootstrap/dist/css/bootstrap.min.css';
import 'bootstrap';
import './styles/app.scss';
ReactDOM.render(<App />, document.getElementById('app'));
and I have app.scss
stylesheet in src/styles
:
@import '_settings.scss';
@import '_base.scss';
@import './components/_header.scss';
I attempted to modify the theme colors here, but they do not reflect any changes:
@import "node_modules/bootstrap/scss/bootstrap";
$theme-colors: (
"primary": #991196,
"danger": #ff4136
);
Can anyone guide me on how to make this work? The existing answers and tutorials I've looked at use different methods.
The version of Bootstrap I am using is:
"bootstrap": "^4.0.0"