This project demonstrates how to implement a Dark Mode and Light Mode toggle feature with a user-friendly UI design.
Users can switch between dark and light color schemes.
The toggle button and UI elements adjust their appearance based on the selected mode.
The selected mode preference is stored and applied across sessions (using local storage).
Clicking the toggle button instantly switches between modes.
Clicking the toggle button switches between dark and light modes.
jQuery updates CSS classes or directly manipulates CSS properties to change colors, backgrounds, etc., based on the selected mode.
Stores the current mode preference locally, ensuring the selected mode persists when the page is refreshed.
Clone or download the repository. Open index.html in a web browser. Use the toggle button to switch between Dark Mode and Light Mode. Observe the UI elements and overall page design adjust according to the selected mode.
- HTML5
- CSS3 (including CSS variables for color themes)
- jQuery
Contains the HTML structure and the toggle button for mode switching.
Defines styles for UI elements, including dark and light mode CSS variables.
Implements the jQuery logic to handle toggle button events and apply dark/light mode styles.
This project is licensed under the MIT License - see the LICENSE file for details.