Finnally managed to add light and dark mode to my Bootstrap 5 blog. It was as exciting as a headache. The steps are below in case any one is still stuck.
mastodon.technology is shutting down by the end of 2022. Please migrate your data immediately. This Mastodon instance is for people interested in technology. Discussions aren't limited to technology, because tech folks shouldn't be limited to technology either!