Skip to main content

Claude Prompt to Design a Weather App with Data Visualization

Generate a complete weather app UI with dynamic sky gradients, radar, hourly graphs, severe-alert systems, and working Flutter or React Native code.

Fill in the placeholders

Edit the values, then copy your finished prompt.

Your Prompt
prompt.txt
Design a weather app with detailed (for weather enthusiasts) data depth.

Features: current conditions, hourly/daily forecast, radar, alerts, multiple locations, widgets
Target users: weather enthusiasts and daily commuters

**Industry Design Rules (Weather App):**
- Pattern: Current conditions → Hourly → Daily forecast → Radar → Details → Severe alerts
- Style Priority: Glanceable, data-rich-yet-beautiful, dynamic backgrounds reflecting current weather
- Color Mood: Dynamic — blue sky for clear, gray for overcast, warm for sunset, dark for storms — UI adapts to weather
- Typography: Large for temperature, medium for conditions, small for humidity/wind details, tabular for data grids
- Key Effects: Animated weather icons, dynamic gradient backgrounds, smooth hourly scroll, radar layer animation
- Anti-Patterns: DO NOT show stale data without timestamp. NO overwhelming with numbers (visualize instead). NO hiding severe weather alerts. NO dark-only or light-only (weather changes, so should the theme).

Generate:
1. **Current conditions** — large temperature, feels-like, condition text, animated weather icon, location
2. **Hourly forecast** — horizontal scroll, temperature graph line, precipitation probability bars
3. **Daily forecast** — 10-day, high/low temperature range bar, condition icons, rain probability
4. **Detail cards** — UV index, wind (speed + direction compass), humidity, pressure, visibility, sunrise/sunset
5. **Radar map** — animated precipitation radar, temperature/wind overlays, pinch zoom
6. **Severe weather** — prominent alert banner, details, safety recommendations
7. **Widget** — compact version for home screen (temperature, icon, high/low)
8. **React Native + react-native-maps + SVG charts code** for the current conditions display with dynamic background and hourly forecast scroll

What this prompt does

This prompt generates a complete weather app UI specification across seven distinct UI components — from the full-screen current conditions view down to a home screen widget — plus working framework code for the conditions display and hourly scroll. What makes it effective is the embedded industry ruleset: the template enforces the information hierarchy (current → hourly → daily → radar → details → alerts) that users have been trained to expect from apps like Weather.com and Apple Weather. Skipping that order disorients users; the prompt prevents it.

The dynamic theming requirement is the sharpest constraint in the template. Rather than shipping a static dark or light UI, it requires the design to shift with weather state — blue gradients for clear skies, charcoal palettes for storm conditions. This is not cosmetic; it reduces the cognitive load of reading conditions at a glance, which is why people open weather apps on reflex.

The final deliverable includes actual framework code for the current conditions display and hourly forecast scroll, not just mockup descriptions. You specify the framework via [framework], so the output targets your stack directly rather than requiring translation from pseudocode.

When to use it

  • Building a native iOS or Android weather app and need a complete component inventory before opening your design tool.
  • Designing a white-label weather feature to embed inside a travel, outdoor, or agriculture app.
  • Pitching a weather-adjacent product to stakeholders and needing a polished, realistic UI concept fast.
  • Rebuilding an existing weather app that looks dated — use this to benchmark your current UI against modern data-visualization standards.
  • Creating a Flutter or React Native prototype where you want working scroll and gradient logic without hand-coding the animation from scratch.

Example output

For [data_depth]: professional, [features]: radar + severe alerts + UV + widgets, [target_users]: outdoor workers, [framework]: Flutter:

CurrentConditionsWidget:
  - Hero: 78°F / feels like 74°F, "Partly Cloudy"
  - Background: animated linear gradient #87CEEB → #B0C4DE,
    shifting toward #FF6347 (sunset in 2h)
  - AnimatedIcon: sun-cloud Lottie asset, 60×60dp
  - HourlyScroll: horizontal ListView, SplineChart overlaid
    on precipitation BarChart
  - UVIndexCard: arc gauge 0–11, current: 8 "Very High",
    color: #FF8C00
  - WindCard: compass SVG rotated to 247° (WSW), 14 mph

Flutter snippet (AI will generate the WeatherGradient helper
class — it is not a pub.dev package):

  Container(
    decoration: WeatherGradient.forCondition(condition),
    child: Column([
      TemperatureHero(temp: current.temp,
                      feelsLike: current.feelsLike),
      HourlyForecastScroll(hours: forecast.hourly),
    ])
  )

Pro tips

  • Set [data_depth] to "consumer" vs "professional" deliberately — consumer drops pressure and dew point, keeping the UI uncluttered; professional exposes every sensor value, appropriate for pilots or farmers.
  • If your [target_users] are elderly or accessibility-focused, state that explicitly — the prompt's typography scale (large temp, small detail) aligns well, but you need to call out minimum contrast ratios or the output will not include them.
  • Pair the severe weather alert output with a push notification spec prompt — the banner the template generates is in-app only; background alerts require a separate notification pattern the template does not cover.
  • The radar section assumes touch-native pinch-zoom. If your [framework] is web-based, say so explicitly — the default gesture handling breaks on desktop without an override.
  • Run the prompt twice with different weather states (clear sunny day vs. active thunderstorm) and diff the gradient and color mood outputs. This surfaces whether your design system can actually handle both extremes — most teams discover it cannot until late in QA.

Frequently Asked Questions

Does the prompt generate actual code or just a design specification?
Both. Section 8 of the template explicitly requests framework code for the current conditions display and hourly forecast scroll. You specify your framework (Flutter, React Native, SwiftUI, etc.) in the [framework] variable, and the AI generates a custom helper class plus widget scaffold targeting that stack. Sections 1–7 produce structured UI specifications — treat those as a detailed brief for your design tool, not copy-paste code.
How do I use the [features] variable without overloading the output?
Pick 3–5 features and match them to your actual API data source. If your weather API does not provide UV index or air quality, leave those out of [features] — the prompt generates implementation logic for whatever you list, and UI components wired to missing data are worse than no UI at all. A solid starting set: current conditions, hourly forecast, daily forecast, and one specialty card (UV or wind compass, not both).
Can this prompt handle a widget-only design, or does it always generate all eight sections?
The template always generates all eight sections (seven UI components plus framework code) — it is not modular by design. If you only need the widget, still run the full prompt, then ask the AI in a follow-up message to extract and expand just section 7. The full context improves the widget output because the AI understands the complete design language before compressing it to widget scale.
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