So my idea is that i want to implement Bootstrap 4.5 to NextJS and use it as i want to override variables as show in here: https://react-bootstrap.github.io/getting-started/introduction/#customize-bootstrap
The file structure i'm having is in pages folder: _app.js
import '../styles/main.scss'
function MyApp({ Component, pageProps }) {
return <Component {...pageProps} />
}
export default MyApp
in main.scss i just declared:
@import 'custom';
And in custom.scss i just copied scss>
$theme-colors: (
"info": tomato,
"danger": teal
);
$nav-link-color: green;
$h1-font-size: 16px * 22.5;
/* import bootstrap to set changes */
@import "~bootstrap/scss/bootstrap";
Anyway when i want to use other variables like this:
$theme-colors: (
"info": tomato,
"danger": teal
);
$nav-link-color: $green;
/* import bootstrap to set changes */
@import "~bootstrap/scss/bootstrap";
because $green is already declared by bootstrap and I don't want to redeclare it, then how is it correct to implement it?
Also i'm trying to add
$nav-link-color: white
For example but this doesn't work at all. Anyone had these kind of issues?
Thanks for help and ideas since i've been struggling with this on NuxtJS as well but there found out. But on NextJS it seems that things are not working out so well. It seems little bit crazy that i have to redeclare stuff all the time and also to declare BS variables, then my own variables and then BS variables again.
Regards Teet