This is a simple and modern calculator built using HTML, CSS, and JavaScript. The calculator supports basic arithmetic operations and features a clean, responsive design with both dark and light modes. The theme toggle button is now placed conveniently in the bottom-right corner.
Light and Dark Mode of Calculator UI
- Basic Arithmetic Operations: Add, subtract, multiply, and divide.
- Dark/Light Mode Toggle: Switch between dark and light themes using a button at the bottom-right corner.
- Responsive Design: Optimized for mobile and desktop screens.
- Clean and Modern UI: Following modern design principles with smooth interaction and intuitive layout.
- HTML5 for structure.
- CSS3 for styling the layout.
- JavaScript for functionality.
-
Clone the Repository: git clone https://github.com/sifatuul/simple-calculator.git
-
Navigate to the Project Directory: cd simple-calculator
-
Open
index.html
in your browser to view the calculator.
- Enter numbers using the buttons or the keyboard.
- Perform basic arithmetic operations (
+
,-
,*
,/
). - Use the
AC
button to clear the display. - Use the
⌫
button to delete the last entered digit. - Toggle between dark mode and light mode by pressing the Toggle Theme button in the bottom-right corner.
The calculator in action
Contributions, issues, and feature requests are welcome!
Feel free to check the issues page.
- Fork the project
- Create your feature branch: git checkout -b feature/AmazingFeature
- Commit your changes: git commit -m 'Add some AmazingFeature'
- Push to the branch: git push origin feature/AmazingFeature
- Open a pull request