I'll start by exploring the project structure to understand what we're working with.
Now let me verify the Open-Meteo API parameters I'll use (free, no API key needed).
The API works perfectly. Now let me build the app, starting with the weather data library.
Now the weather icon components with Apple-style multicolor SVG glyphs.
Now the animated dynamic sky background — the signature of Apple Weather.
Now the global styles with Apple-style animations and glass utilities.
Now the small SF-Symbols-style UI icons and the reusable glass card.
Now the card shell plus hourly and daily forecast panels.
Now the details grid with mini data visualizations (UV bar, sun arc, wind compass, pressure gauge).
Let me fix a stray artifact in the SunArc component.
Now let me add a batched multi-location fetch and build the Apple-style search/locations sheet.
Now the main App with the collapsing hero header, Apple-style bottom bar, and state management.
Let me clean up a couple of leftover bits before building.
Build succeeded. Let me polish the hero centering and add memoization so scrolling stays buttery smooth.
Now adding the memo exports at the end of each file.
Let me add automatic geolocation on first visit so it shows the user's own local weather right away.
Let me add a small robustness guard for edge cases (polar regions where sunrise/sunset can be null).
The build passes. Here's what I made:
🌤️ Weather — an Apple Weather–style app
Live data from the free Open-Meteo API (no API key), plus Open-Meteo Geocoding for city search and reverse geocoding for "my location."
The Apple details
- Dynamic living sky — the full-screen background changes with conditions and time of day: sunny blue, deep starfield night, purple/orange dawn & dusk, slate storm grey. Layered with a horizon glow, sun/moon bloom, drifting blurred clouds, falling rain streaks, floating snowflakes, fog bands, and periodic lightning flashes.
- Collapsing hero header — the 96px ultralight temperature, condition, and H/L smoothly shrink and cross-fade into a compact blurred title bar as you scroll, exactly like iOS.
- Frosted glass cards with
backdrop-blur + saturation, hairline borders, and staggered rise-in animations.
Panels
| Card | Contents |
|---|
| Hourly Forecast | Natural-language summary ("Sunny conditions for the next few hours…"), 24h scroll strip with sunrise/sunset events inserted inline, precipitation % badges |
| 10-Day Forecast | Per-day gradient temperature range bars mapped to a shared scale, with a white dot marking the current temp on today's row |
| Details grid | UV Index (gradient bar + marker), Sunset/Sunrise (animated sun-arc chart), Wind (tick-marked compass with needle), Precipitation, Feels Like, Humidity, Visibility, Pressure (needle gauge) |
Interaction
- Locations sheet (bottom-right list button): search any city worldwide, plus saved-city cards each rendered with their own live sky gradient, condition icon, local time and temp — fetched in a single batched multi-coordinate request.
- Bottom tab bar with page dots to swipe between saved cities, a location button, and a °C/°F toggle (switches wind to mph, visibility to miles, pressure to inHg).
- Auto-requests geolocation on first visit, remembers cities/unit in
localStorage, and refreshes every 10 minutes.
Custom multi-color SVG weather glyphs (gradient suns, crescent moons, layered clouds, tilted raindrops, snowflakes, lightning bolts) were hand-built to mimic SF Symbols rather than using an icon library.
Files built: src/lib/weather.ts, src/components/WeatherIcon.tsx, src/components/SkyBackground.tsx, src/index.css, src/components/icons.tsx, src/components/Card.tsx, src/components/HourlyStrip.tsx, src/components/DailyForecast.tsx, src/components/DetailGrid.tsx, src/components/SearchSheet.tsx, src/App.tsx, index.html