KAUSHIK SARKARBlogs
Mobile App Prompts

AI App Prototyping for Chat Interface: Dark Theme Mobile UX with Hamburger Navigation

By Kaushik Sarkar · · 8 min read
Hero screenshot of the finished AI App Prototyping for Chat Interface

This tutorial walks you through building a mobile chat app with AI tools like Claude, Cursor, and v0. The prompt comes from prompts.chat, originally published by prompts.chat. It focuses on creating a polished Android APK chat interface for local Ollama models with a dark-themed UI. You'll learn how to use the full prompt effectively, run output locally, test features, and deploy free using GitHub Pages or Netlify.

The app includes four key screens: main chat, agent creation, group chat, and settings. All are accessible through a left sidebar menu. We’ll guide you step-by-step on how to craft each part, fix common issues, and customize the UI to match your brand.

What you need

  • Access to an AI coding tool like Claude or Cursor
  • Basic knowledge of HTML, CSS, JavaScript
  • A code editor (VS Code or similar)
  • An Android emulator or physical device for testing
  • GitHub or Netlify account for deployment
  • The full prompt from this page

The full prompt

Act as an AI App Prototyping Model. Your task is to create an Android APK chat interface at http://10.0.0.15:11434.

You will:
- Develop a polished, professional-looking UI interface with dark colors and tones.
- Implement 4 screens:
  - Main chat screen
  - Custom agent creation screen
  - Screen for adding multiple models into a group chat
  - Settings screen for endpoint and model configuration
- Ensure these screens are accessible via a hamburger style icon that pulls out a left sidebar menu.
- Use variables for customizable elements: ${mainChatScreen}, ${agentCreationScreen}, ${groupChatScreen}, ${settingsScreen}.

Rules:
- Maintain a cohesive and intuitive user experience.
- Follow Android design guidelines for UI/UX.
- Ensure seamless navigation between screens.
- Validate endpoint configurations on the settings screen.

1Choose Your AI Tool and Paste the Prompt

Start by selecting an AI coding tool such as Claude, Cursor, or v0. Open your chosen tool and paste the entire prompt provided on this page. Ensure you're using the exact prompt to avoid drifting from the original design.

The prompt above specifies a dark-themed chat interface with four screens: main chat, agent creation, group chat, and settings. It also requires navigation via a hamburger menu. Make sure your AI tool understands the Android APK context and the need for local Ollama models.

After pasting, let the AI generate the code. Review the output carefully before proceeding to the next step.

Pro tip: Use Cursor for real-time code editing and preview during generation.

2Review Generated Code and Set Up Local Testing

Once you get the output, look for a single index.html file or small project structure. If it’s a full app, extract or simplify it to a local HTML + CSS + JS setup.

Ensure all elements are responsive and styled with dark theme colors such as #121212 or #1e1e1e for backgrounds. The navigation bar should be a hamburger menu that opens a sidebar.

Create an index.html file locally, paste the code from AI, and open it in your browser. Check if elements render correctly and test basic interactivity like clicking menu items.

Pro tip: Use browser developer tools to inspect layout issues and ensure accessibility.

3Implement Core Screens and Navigation

The prompt requires four screens: main chat, agent creation, group chat, and settings. Each should be a separate section in your UI.

  • Main chat screen displays messages and input field
  • Agent creation screen lets users define custom agents
  • Group chat allows adding multiple models into one conversation
  • Settings screen for configuring endpoint and model details

Use CSS classes or React components to organize these sections. Implement navigation logic so clicking items in the hamburger menu switches between screens.

Make sure all screens are accessible from the sidebar and that transitions are smooth.

Pro tip: Use CSS transitions for screen switching to improve UX.

4Test Every Feature Locally

Open your local index.html file in a browser. Test each feature:

  • Hamburger menu opens and closes correctly
  • Navigation between screens works as expected
  • Input fields respond to user text
  • Settings screen validates endpoint configuration

If any part doesn't work, note down the issue. For example, if the settings screen does not validate inputs, you’ll need a follow-up prompt to fix it.

Use browser console for debugging JavaScript errors or missing components. Fix issues before moving forward.

Pro tip: Add placeholder data to test all UI states and interactions.

5Fix Bugs with Follow-Up Prompts

If features don’t work as expected, refine your prompt with follow-up queries. For example:

> "Fix the validation on the settings screen so it checks if endpoint is a valid URL"

Or:

> "Add a submit button to the agent creation screen that saves data locally"

Each time you run a new prompt, make sure to reference what went wrong in previous outputs. This helps AI avoid repeating the same mistakes.

Keep refining until all screens behave as expected. Document your fixes so others can replicate them.

Pro tip: Use specific prompts with error descriptions for faster bug resolution.

6Add State Management and Offline Storage

To store chat history or user preferences, implement local storage using JavaScript’s localStorage API.

For example:

localStorage.setItem('chatHistory', JSON.stringify(messages));
const savedMessages = JSON.parse(localStorage.getItem('chatHistory'));

Use state management to track which screen is active and what data is shown. If the app needs offline capability, consider adding a service worker or storing messages in IndexedDB.

Make sure to reset states appropriately when switching between screens. This ensures data integrity and improves user experience.

Pro tip: Prioritize user data persistence for better long-term engagement.

7Ensure Platform Compliance and Accessibility

Adhere to Android design guidelines by using appropriate spacing, typography, and interaction feedback.

Choose a font pairing like Roboto or Open Sans with clear contrast ratios. Ensure your UI is accessible with proper ARIA labels for screen readers.

Test the app on various devices and browsers. Check color contrast ratios (minimum 4.5:1) to meet WCAG standards. Add keyboard navigation support where possible.

This ensures your app works well across platforms and is usable by all users.

Pro tip: Use a contrast checker tool to verify color accessibility.

8Deploy Free with GitHub Pages or Netlify

Once you're satisfied with the local version, deploy it for public access.

For GitHub Pages:

  1. Push your project files to a new GitHub repo
  2. Go to Settings > Pages and select main branch as source
  3. Your app will be live at https://username.github.io/repo-name

For Netlify or Vercel:

  1. Drag and drop the folder or connect your Git repo
  2. Configure build settings if needed
  3. Deploy and get a public URL

Ensure all paths in your code are relative so they work correctly in these environments.

Pro tip: Use GitHub Pages for fast, free hosting without needing to set up CI/CD.

9Test on Mobile Devices

Open the deployed URL on a mobile browser or emulator to verify responsiveness.

Check:

  • Menu opens and closes smoothly
  • Text is readable and buttons are touch-friendly
  • Messages load correctly
  • Settings screen validates input properly

Use Chrome DevTools or similar tools to simulate mobile views. If needed, adjust media queries for smaller screens.

Mobile testing ensures users have a good experience on actual devices.

Pro tip: Use responsive breakpoints to optimize layout on different screen sizes.

10Customize UI and Branding

After getting the base functionality working, personalize the app:

  • Change primary color scheme to match your brand
  • Update logo or icons
  • Add custom fonts or animations
  • Modify screen titles and labels

These changes should not affect core features. You can do them by modifying CSS variables or reusing existing components.

Ensure branding remains consistent with accessibility standards.

Pro tip: Use design tokens to maintain consistency across all UI elements.

11Final Checks and Optimization

Before sharing your app, perform final checks:

  • All links work correctly
  • No console errors in browser
  • Mobile responsiveness is solid
  • Settings screen validation works
  • Offline storage functions properly

Optimize code for performance. Remove unused styles or scripts. Compress images if any are included.

Once complete, share your app with others and consider adding a README file explaining how to use it.

Pro tip: Add comments in code to explain complex logic for future maintenance.

Adapt it to your own brand

  • Change color scheme from dark to light or brand-specific theme
  • Modify screen titles and labels for different use cases (e.g., healthcare, finance)
  • Add language localization support with i18n
  • Integrate real-time chat APIs instead of simulated data
  • Support voice input for user messages
  • Include push notifications for new messages
  • Allow users to export chat history as PDF or text

Common mistakes and fixes

  • Not testing all screens locally before deploying, always verify functionality first
  • Ignoring accessibility standards like color contrast and ARIA labels, leads to poor UX
  • Using absolute paths instead of relative ones in deployment, breaks links on external sites
  • Overlooking mobile responsiveness, app might not work well on small screens
  • Forgetting to validate inputs in settings screen, causes crashes or invalid configurations
  • Not using local storage for chat history, users lose conversations when reloading

Frequently asked questions

Which AI tools are best for building this kind of mobile app?

Claude, Cursor, and v0 work well. They understand prompts and generate clean code.

Can I deploy the app without coding experience?

Yes, with AI tools you can build it visually or through text prompts.

Do I need an Android device to test?

No, browser testing and emulators work fine for initial validation.

How do I handle offline storage?

Use localStorage or IndexedDB in JavaScript to persist data locally.

Final thoughts

This tutorial showed how to build a polished chat app with AI tools like Claude and Cursor. You learned to paste the prompt, run output locally, test features, fix bugs, and deploy for free. The resulting app follows Android design guidelines, includes offline support, and meets accessibility standards.

Now you can copy the prompt above and experiment with your own version. Try changing themes or adding new features, AI makes it easy to iterate quickly.

Originally published on PromptGrabber.com — find thousands more AI prompts there.