A feature-rich, responsive calculator that runs entirely in the browser: 14 themes plus a System (auto) mode, scientific functions, memory, a history tape, keyboard support, and offline PWA support.
Live demo: https://mark44928.github.io/CalculaHTML/
- Basic arithmetic:
+ β Γ Γ·, percentages, sign toggle, backspace - Scientific functions:
sin cos tan log ln β xΒ² xΒ³ x^y 1/x n!, constantsΟande - Memory:
MC MR M+ Mβ MS - History tape with up to 40 entries
- 14 themes + System (auto light/dark): Dark, Light, Gruvbox, Everforest, Tokyo Night, Dracula, Nord, Catppuccin Mocha, One Dark, Solarized Dark, Rose Pine, Monokai, GitHub Dark, Old Dark
- Keyboard support, copy result, angle mode (DEG/RAD)
- Responsive layout, accessible controls, reduced-motion friendly
- Progressive Web App: installable, offline-capable (manifest + service worker)
- No frameworks and no build step. Google Fonts load when online and fall back to system fonts offline.
- Open the live demo in Chrome, Edge, or Safari.
- Use Install app / Add to Home Screen.
- Launch it like a native app. The service worker caches the app shell so it keeps working offline.
Open https://mark44928.github.io/CalculaHTML/ β nothing to install.
git clone https://github.com/Mark44928/CalculaHTML.git
cd CalculaHTML
python3 -m http.server 8080
# open http://localhost:8080Opening index.html directly also works, but a local server enables the service worker and PWA install.
Switch themes from the dropdown or the color swatches. The choice is saved in localStorage. System follows your OS light/dark preference.
| Key | Action |
|---|---|
0-9, . |
input |
+ - * / ^ |
operators |
Enter / = |
evaluate |
Backspace |
delete |
Esc |
clear all |
Delete |
clear entry |
% |
percent |
CalculaHTML/
βββ index.html
βββ css/styles.css
βββ js/app.js
βββ assets/
β βββ icon.svg
β βββ icon-192.png / icon-512.png
β βββ maskable-192.png / maskable-512.png
β βββ apple-touch-icon.png
β βββ favicon-32.png
β βββ preview.svg
βββ offline.html
βββ manifest.webmanifest
βββ sw.js
βββ package.json
βββ README.md
βββ AGENTS.md
βββ LICENSE
βββ .github/workflows/
βββ ci.yml
βββ pages.yml
No dependencies to install.
npm run check # node --check js/app.js
npm run start # python3 -m http.server 8080CI runs the JavaScript syntax check and validates manifest.webmanifest on every push and pull request.
Recent Chrome, Edge, Firefox, and Safari. The layout uses color-mix() and modern CSS, so older browsers may not render every theme effect correctly. PWA install depends on the browser.
Issues and pull requests are welcome β see CONTRIBUTING.md. Keep the project framework-free and dependency-free; this project follows the standard Code of Conduct.
MIT β see LICENSE.