Check out the live demo: GitHub Pages Demo
This project is a simple theme toggle switch using JavaScript, HTML, and CSS. It allows users to switch between two themes represented by emoji icons: π (red theme) and π³ (blue theme).
- Toggle between two themes using a button
- Themes persist using localStorage
- Smooth transition effect when switching themes
- HTML
- CSS
- JavaScript
- Open the project in a browser.
- Click the button to switch between themes.
- The chosen theme will be saved in localStorage and persist across page reloads.
index.html
- Main HTML structurecss/style.css
- Styling for the themes and buttonjs/script.js
- JavaScript logic for toggling themes and storing the preference
Created by MDJAmin. Check out more projects on GitHub.