Added Bootstrap Nightshade Again
I did have a toggle dark mode switch on the top right of this site.
But i noticed when i loaded in the page it would flash white and then load in the dark mode.
This is really annoying when loading multiple pages on the same site.
So back to this nightshade again, which just applies light or dark mode depending on your operating system preference, if you like things in dark mode, it just applies it. Easy.
Maybe the old one was called Nightshade and this one is just called bootstrap dark, anyway this is the css.
<link rel="stylesheet" href="https://firstname.lastname@example.org/dist/css/bootstrap-dark.min.css" />
Bootstrap Nightshade and Toggle
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap/5.1.3/css/bootstrap-utilities.min.css" integrity="sha512-kRvJclW5GazdbAJPE9vvs560XNBwTBGLg4RVHZALXHFnAWQeRbQ/jGcGDHcQXiiqRld4wEFs6Kpoa6Tm/wCrtg==" crossorigin="anonymous" referrerpolicy="no-referrer" /> <link href="https://email@example.com/dist/css/bootstrap-nightshade.min.css" rel="stylesheet">
<div class="form-check form-switch dark-mode-switch"> <input class="form-check-input" type="checkbox" id="DarkMode"> <label class="form-check-label" for="DarkMode">Dark Mode</label> </div>