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

                                

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

Claude Code Expert · Online

👋

Hey there!

Quick Actions

WhatsApp Instant reply

Chat on WhatsApp

+880 1723 741224 · Instant reply

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

[email protected]

✓ 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