This is a solution to the Calculator app challenge on Frontend Mentor. Frontend Mentor challenges help you improve your coding skills by building realistic projects.
- See the size of the elements adjust based on their device's screen size
- Perform mathmatical operations like addition, subtraction, multiplication, and division
- Adjust the color theme based on their preference
- Bonus: Have their initial theme preference checked using
prefers-color-schemeand have any additional changes saved in the browser
Features
- Toggle between 3 themes (dark, light, purple)
- Calculator with keyboard accessible
Accessibility
- Responsive accross different screen sizes
- Interactive elements have clear focus indicator
- HTML5 – Semantic structure
- Vue – Fine-grained reactivity state management
- TailwindCSS – Utility-first CSS for fast development
- TypeScript - Interactivity and application logic
- Vite - Fast development server, production build and easy configuration
- Mobile-first workflow for better performance on smaller devices
- Accessibility guided by ARIA Authoring Practices Guide (APG)
Install the following:
- Git (latest version)
- Node.js (latest LTS recommended)
- pnpm (latest version)
git clone https://github.com/haquanq-frontendmentor/calculator-app.git
cd calculator-app
pnpm install
pnpm dev
Deployed to Github Pages via Github Actions.
