Current dark and light theme are implementing on each and every component whenever creating new components in react-bootstrap
<Card className={isDarkTheme ? 'bg-dark text-white' : 'bg-white text-dark'}>
<Navbar
expand="md"
bg={darkTheme ? 'dark' : 'light'}
variant={darkTheme ? 'dark' : 'light'}
<ListGroup.Item action variant=={darkTheme ? 'dark' : 'light'}>
Dark
</ListGroup.Item>
<Toast.Body className={variant === 'Dark' && 'text-white'}>
Hello, world! This is a toast message.
</Toast.Body>
Is there any other option to switch dark to light and vice versa like customizing bootstrap with variable or https://developer.mozilla.org/en-US/docs/Web/CSS/Using_CSS_custom_properties ?
The question is not regarding bootstrap sass update. It is about how to set up on react-bootstrap