I recently created a new website using Bootstrap 5 and set the background color to black (#000000) by adding some CSS styling. However, I noticed that this change had unintended consequences on the appearance of various elements such as drop shadows, modal dialogs, and carousels.
For example, white lines started appearing around certain sections like:
<div class="row p-4 pb-0 pe-lg-0 pt-lg-5 align-items-center rounded-3 border shadow-lg">
The subtle shading and gradients that Bootstrap provides were also compromised when switching to a dark background.
I've come across some posts that discuss implementing light and dark mode toggles in Bootstrap, but that's not my objective. I simply want my website to have a consistent dark theme for all visitors while retaining Bootstrap's design features without introducing any additional technologies like SASS or React. It would be acceptable if I had to use LESS to compile some customized CSS.
Despite looking for solutions online, including watching tutorial videos, I haven't found a straightforward way to transform a Bootstrap-themed website into a dark mode. This seems like a basic requirement that should be covered in the Bootstrap documentation.