Create a CALORIES Calculator Tools Creator AI Prompt
Prompt: Create a CALORIES Calculator in HTML with All Advanced Features
Goal: Build a responsive, user-friendly, and feature-rich Calorie Calculator web page using HTML, CSS, and JavaScript (no backend needed). The calculator should be able to estimate daily calorie needs based on personal information and goals, using established formulas like Mifflin-St Jeor or Harris-Benedict.
✅ Functional Requirements:
-
User Input Fields:
-
Age (years)
-
Gender (Male/Female/Other)
-
Height (cm or feet+inches toggle)
-
Weight (kg or lbs toggle)
-
Activity Level (dropdown: Sedentary, Lightly Active, Moderately Active, Very Active, Extra Active)
-
Goal (Maintain weight, Lose weight, Gain weight)
-
Units system toggle (Metric / Imperial)
-
Optional: Body Fat % (for more accurate calculation if provided)
-
-
Advanced Features:
-
Auto BMI calculator with color-coded result (underweight, normal, overweight, obese)
-
BMR calculation (Mifflin-St Jeor formula)
-
TDEE (Total Daily Energy Expenditure) based on activity level
-
Calorie recommendation based on goal (e.g., 500 kcal deficit/surplus)
-
Responsive layout with mobile-first design
-
Dark mode toggle
-
Input validation and error messages
-
LocalStorage to save previous inputs and results
-
Tooltips or info icons for each metric
-
Animated progress bars or charts (optional)
-
-
Optional Enhancements:
-
Export results as PDF or print-friendly version
-
Voice input compatibility
-
Shareable result link
-
💡 Technical Stack:
-
HTML5
-
CSS3 (Flexbox/Grid for layout)
-
JavaScript (Vanilla or optionally a lightweight framework like Alpine.js or jQuery)
-
No backend/database
-
Use semantic HTML and accessibility best practices
🎨 UI/UX Design Suggestions:
-
Clean, modern UI (like fitness or health app dashboards)
-
Real-time result updates as user inputs change
-
Clearly sectioned inputs and results
-
Use cards or modals for tooltips or explanations
Comments
Post a Comment