Basic Bootstrap 5 custom checkbox to use night mode in your web site.
The Light Switch for Bootstrap 5 is a tool that allows users to easily switch between light and dark modes on websites built using Bootstrap 5. It achieves this by manipulating the HTML tags and applying appropriate classes based on the default system theme. The user’s choice is saved in local storage, ensuring that the selected mode persists across page reloads.
To install the Light Switch for Bootstrap 5:
git clone https://github.com/lucthienphong1120/dark-mode-switch.gitnpm i light-switch-bootstrapThe Light Switch for Bootstrap 5 is a simple and effective tool for implementing dark mode functionality in websites built using Bootstrap 5. It provides easy toggling between light and dark modes by manipulating HTML tags and utilizing local storage to save user preferences. The installation process is straightforward, making it accessible for developers to quickly add dark mode functionality to their Bootstrap 5 projects.