the current dark mode setup doesn't benefit dynamic switching between dark and light modes without having to refresh the entire page. please refer to this link
Hi,
Thanks for sharing this.
Bootstrap 5 does not support full CSS variables for all components. We have JS-based solution to change the theme mode without refreshing the page. In the next update(within the next week), we will release the JS API for our theme mode.
Regards
you add a new way for the dark-mode?