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

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

One HTML file. Save it and open it in any browser.Open full screen

Example: Tidewell, a clickable habit tracker inside a phone frame.

Tap the round buttons on the Today screen to check off habits. Each one fills teal, draws a checkmark, bumps its streak and fills the progress ring. Filter by Morning, Midday or Evening. Open Stats to see the bars update live, add a suggested habit from the coral + button, and turn on the dark theme in Profile. Keys 1–4 also switch screens.

Written by AI from this prompt. Your results will vary.

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
How prompts are written and checked

Did this prompt work?

Keep exploring

More in Design