Build an Interactive Habit Tracker Mobile App Prototype in One HTML File
Get a clickable phone-frame habit tracker prototype with Today, Stats, Add and Profile screens, animated check-offs, a progress ring and bottom navigation.
You getone complete HTML file in a single code block, then 3 short ideas to extend it.
The prompt
Act as a senior product designer who prototypes in plain HTML, CSS and JavaScript.
Build "Tidewell", an interactive mobile prototype of a calm habit tracker. Show it inside a realistic phone frame (360 x 760, rounded dark bezel, status bar with 9:41 and a camera pill) next to a short intro panel that explains how to click through it.
Screens:
- Today: date, greeting, a progress ring, time-of-day tabs (All, Morning, Midday, Evening) and six sample habits with emoji icons, streaks and short notes.
- Stats: weekly bar chart, completion rate, best streak and a 7-day dot grid per habit.
- Add: suggested habits and a time of day, a live preview and an Add to Today button.
- Profile: avatar, name and settings rows with working toggle switches, including a dark theme for the phone.
Rules:
- Tapping a habit's round check button does all of this: it fills teal, draws a checkmark and ripples. It also strikes through the name, updates the streak, the ring and Stats, and shows a short toast.
- Use bottom navigation with four items and a raised coral Add button. Keys 1-4 also switch screens.
- Every control is a real button using aria-pressed, aria-selected or role switch, with visible focus rings.
- Palette: warm off-white, ink #1D2A2E, teal #1F7A6D and coral #E8735A, with a system font and a clear type scale.
- The phone scales down to fit a 360px-wide window. Disable animations under prefers-reduced-motion.
- No external assets, storage, forms or network calls.
Output format: one complete HTML file in a single code block, then 3 short ideas to extend it.Example output
Tips and common edits
Why this works
- Naming every screen, the sample data and the exact check-off feedback leaves the model nothing to guess, so the flow is complete on the first try.
- Using real buttons with ARIA states means mouse, touch and keyboard all work without extra code.
- A fixed phone aspect ratio and a palette defined as CSS variables keep the layout steady and make the dark theme a one-class switch.
Paste the prompt into ChatGPT, Claude or Gemini. Save the code it returns as tidewell.html and open it in any browser, or view it in the chat's preview or canvas panel. Then click through the screens like a user would.
Common edits
- Change the brand name, palette hex codes and sample habits to fit your own product, such as a hydration or study tracker.
- Add a fifth screen (for example habit details with a monthly calendar), or ask for a soft Web Audio tick on check-off with a mute toggle.
Prompt details
- By
- Prompts-GPT editors
- Published
Did this prompt work?
Keep exploring
More like this
Build a Multi-Step Onboarding Wizard with Stepper and Inline Validation
A four-step onboarding wizard in one HTML file, with a clickable stepper, progress bar, inline validation, a review screen, and keyboard and swipe navigation.
Build a Playful Animated 404 Error Page with SVG Art and Site Search
A complete single-file 404 page with an original animated hot-air balloon SVG, a live-filtering search box and helpful recovery links that respect reduced motion.
Build a Responsive Navigation Bar With Mega Menu and Mobile Drawer in HTML
A complete single-file site header with a hover, click and arrow-key mega menu on desktop and an animated hamburger drawer with accordions on small screens.
Build a Responsive Three-Tier Pricing Section with Monthly/Yearly Toggle
A single HTML file with three pricing cards, a working billing switch that recalculates prices, a highlighted recommended plan and accessible feature checkmarks.
Build a SaaS Landing Page Hero with a CSS-Drawn Product Mockup
You get a polished, responsive SaaS hero section in one HTML file, with a strict type scale, realistic copy, working CTAs and an interactive app mockup drawn in pure CSS.
Build a Sortable, Filterable Data Table with Pagination in One HTML File
A polished vanilla JavaScript orders table with column sorting, live search, status filters, row selection with bulk actions, pagination and an empty state, all in one HTML file.
- Build a Sticky-Header Plan Comparison Page with Swipeable Mobile Columns
- Build an Accessible Modal, Toast and Tooltip Showcase in One HTML File
- Build an Analytics Dashboard with Sidebar, KPI Cards and SVG Charts in One HTML File
- Build an Empty States and Loading Skeletons Gallery in One HTML File
- Build a Light/Dark Mode Toggle Demo Page with Smooth Theme Switching
- Design an Accessible Settings Page with Toggles, Segmented Controls and Sliders