I start developing a React app with reactstrap. I followed the Get Started running the following commands :
npm install -g create-react-app
create-react-app my-a
Instructions here: https://facebook.github.io/create-react-app/docs/adding-a-sass-stylesheet
npm install node-sass --save
npm install bootstrap --save
. Then reactstrap: npm install --save reactstrap react react-dom
src/styles/custom-btsp.scss
and edit as wanted (see theming v4).import './styles/css/custom.scss';
in src/index.js
Done!
Here is an exemple of my custom-btsp.scss
file:
$theme-colors: (
"primary": #ffb800
);
$btn-border-radius: 3000px;
@import "~bootstrap/scss/bootstrap";
You should create SCSS file in your project structure. Include defal=ult bootstrap styles using scss import
@import "node_modules/bootstrap/scss/bootstrap";
and after that reassign styles.
But first thing you should to do is adjust your webpack to understand .scss file extensions