Skip to main content

Habit Tracker Gamification UI Designer

Design a gamified habit tracker UI with streaks, XP, achievement badges, and completion animations — prompt template with code output included.

Fill in the placeholders

Edit the values, then copy your finished prompt.

Your Prompt
prompt.txt
Design a gamified habit tracking app.

Core habits: exercise, reading, meditation, hydration, journaling, learning
Gamification elements: streaks, XP/levels, achievement badges, daily challenges
Target user: young professionals (22-35) building better routines

**Industry Design Rules (Habit Tracker):**
- Pattern: Today's habits → Check off → Streak/stats → Progress visualization → Achievements
- Style Priority: Motivating, celebratory, visually rewarding — the UI is the dopamine
- Color Mood: Vibrant but not overwhelming, green for completed, warm tones for streaks, gold for achievements
- Typography: Rounded, friendly, bold for numbers/stats, playful but readable
- Key Effects: Satisfying completion animation (confetti, checkmark bounce), streak fire effect, level-up celebration, haptic feedback
- Anti-Patterns: DO NOT punish missed days harshly (kills motivation). NO overwhelming with too many habits (suggest starting with 3). NO complex analytics for casual users. NO removing streaks without warning.

Generate:
1. **Today view** — habit list with one-tap completion, daily progress ring, motivational quote
2. **Habit check-off** — satisfying animation on tap, undo option, streak counter increment
3. **Streaks & stats** — current streak (fire icon), longest streak, completion rate, weekly heat map
4. **Achievement system** — 20+ unlockable badges with progress bars, rare achievement callouts
5. **Level/XP system** — experience bar, level milestones, rewards for consistency
6. **Calendar view** — month view with colored dots (complete/partial/missed), trend visualization
7. **Habit creation** — preset templates + custom, frequency options, reminders, icon/color picker
8. **React Native + Reanimated + Lottie code** for the today view with check-off animation and streak counter

What this prompt does

This prompt generates a full gamified habit tracking UI spec — covering the today view, check-off animations, streaks, XP progression, badge systems, calendar heat maps, and habit creation flows. It does not just describe screens; it produces the structure and visual logic behind each state, including what happens when a user taps a habit (animation, streak increment, undo affordance) and how the achievement system gates progression.

What makes the template effective is the embedded industry design rules section. These are not aesthetic preferences — they are behavioral constraints drawn from what actually retains users in habit apps: no harsh punishment for missed days, a 3-habit starting cap for cognitive load, and celebratory feedback as the primary motivator. The AI cannot drift into punitive or overly analytical UI patterns because the template explicitly blocks them.

The [framework] variable ties the abstract spec to working code, so the output is not just a mockup description — it ends with a concrete implementation of the most critical screen: today's view with the check-off animation and live streak counter.

When to use it

  • Building a Flutter, React Native, or SwiftUI habit app and need a full UI brief before opening Figma
  • Prototyping a gamification layer on top of an existing wellness or productivity app
  • Presenting a product concept to stakeholders and needing a cohesive, screen-by-screen walkthrough
  • Designing the XP and badge economy before wiring up backend logic
  • Exploring how different target users (teens vs. fitness athletes vs. remote workers) change the visual tone
  • Generating a starting point for a Tailwind or CSS component library for a habit tracker SaaS

Example output

For inputs: habit_examples: drink water, meditate, read, gamification: streaks + XP + badges, target_user: busy professionals, badge_count: 20, framework: Flutter:

Today View — 7:42 AM
[ Drink Water ]  ● ○ ○ ○ ○ ○ ○ ○   🔥 12-day streak
[ Meditate    ]  ✓ (bounced, confetti burst, +15 XP toast)
[ Read        ]  ○

Daily ring: 1/3 complete (33%)
Quote: "Small steps, compounded."

Flutter snippet (AnimatedCheckmark is a custom widget —
build it with AnimationController + ScaleTransition, or
use the animated_checkmark pub.dev package):

GestureDetector(
  onTap: () => _completeHabit(habit, context),
  child: AnimatedCheckmark(
    onComplete: () {
      setState(() => habit.streak++);
      _showXPToast(context, '+15 XP');
    },
  ),
)

Pro tips

  • Set badge_count between 15–25. Below 15 the system feels thin; above 30 it overwhelms casual users. The prompt generates progress bars for each badge, so the number directly controls how much the AI elaborates the achievement economy.
  • Use target_user to control tone. "Teenagers" shifts the output toward louder animations and emoji-heavy copy; "senior professionals" shifts it toward subtle micro-interactions and muted palettes. This single variable changes more than any other.
  • Specify the framework early and be exact. Flutter gets you idiomatic widgets. React Native + Reanimated gets you useSharedValue hooks. Vague inputs like "mobile" produce pseudo-code that needs rewriting.
  • Pair with a habit science prompt first. The template handles UI, not behavior design. Run a separate prompt asking for the habit loop (cue–routine–reward) for your specific habits, then paste the result into habit_examples with context. The output spec becomes far more coherent.
  • The undo option is load-bearing. The template explicitly includes it in the check-off spec. Do not strip it from generated code — accidental completions that cannot be reversed are a common early friction point that erodes user trust in the data, and the template includes the affordance specifically to prevent that.

Frequently Asked Questions

Can I use this prompt for a web app instead of a mobile app?
Yes. Set `[framework]` to React, Vue, or plain HTML/CSS and the code output targets the web. The visual spec (rings, animations, heat maps) translates directly — just note that haptic feedback in the design rules is a mobile-only concept the AI will annotate as optional for web.
What if I only want to generate the XP and badge system, not the full 7-screen spec?
The template is structured so each section references the others — the today view links to streaks, streaks feed the achievement system. In practice, asking the AI to output only sections 4 and 5 tends to produce thinner results because the cross-references get severed. The cleaner approach is to generate the full output and discard what you do not need.
Does this prompt handle the backend data model, or just the UI?
UI only. The template produces screen specs and front-end code. It does not generate database schemas, API contracts, or server-side streak calculation logic. For the backend, pair this with a separate data modeling prompt using the habit list and gamification variables as inputs.
Engr Mejba Ahmed

Need this built for real?

Engr Mejba Ahmed

AI Developer · Software Engineer

I'm Mejba — I design and ship production AI systems, automations, and full-stack apps. If you want this turned into a working solution for your team, let's talk.

More in Lifestyle App UI Prompts

Engr Mejba Ahmed

Engr Mejba Ahmed

AI assistant · trained on my work

👋

Hey there!

Quick Actions

WhatsApp Direct line to me

Chat on WhatsApp

+880 1723 741224 · Replies within the hour on working days

Popular Questions

Engr Mejba Ahmed is connected
Engr Mejba Ahmed is typing...
Engr Mejba Ahmed avatar

✉ Want me to follow up? Drop your email

Engr Mejba Ahmed avatar

📞 Connect Directly

Choose how you'd like to reach me

WhatsApp

+880 1723 741224

Email

mejba.13@gmail.com

✓ Details sent! I'll get back to you shortly.

Powered by OpenAI

335+

Blog Posts

25

AI Courses

63

Projects

Services & Expertise

Pricing & Process

Learning & Resources

Connect & Support