Skip to main content
All visual styles live in style.css. Edit that file directly to change any of the values described below.

Background

The body uses a white base color with three radial gradients that produce a subtle sky-blue tint in the corners and top center.
style.css
To change the base color, update background-color. To shift the tint, adjust the hue values in the hsla() functions. The first argument is the hue (0–360): 210 and 220 are blue tones.
To create a warmer, sunrise-style background, try hues around 3045 (orange/amber) or 270290 (purple/violet).
Example — soft warm tint:
style.css

Card / container

The .container class controls the white card that centers the app’s content.
style.css
Make the card wider — increase width:
style.css
Add a dark mode variant — use a prefers-color-scheme media query:
style.css
border-radius: 24px gives the card its rounded corners. Set it to 0 for sharp corners or 12px for a subtler rounding.

Typography

The app uses the Inter typeface with a system font fallback:
style.css
To swap in a different font, load it from Google Fonts in index.html and update the font-family value in style.css.
1

Add the Google Fonts link to index.html

Place the <link> tag inside <head>, before the stylesheet:
index.html
2

Update font-family in style.css

style.css
Keep -apple-system, sans-serif as a fallback so the app still renders cleanly if the web font fails to load.

Button colors

The “Check Weather” button and the forecast tab buttons (#getWeather, .tab-btn) are styled in style.css. Find those selectors in the file and update the background-color, color, and border properties to match your preferred palette.
The primary blue used throughout the app is #007bff. Keeping your button color consistent with this value maintains visual cohesion with the icon and accent colors.

Animation speed

The sun and rain icons follow an arc path above the logo using the weatherArcPath keyframe animation. The animation property is set on .sun-icon, .rain-icon:
style.css
The second value (6s) is the duration. Decrease it to speed up the arc, or increase it to slow it down.
Setting the duration below 1s can cause the animation to feel janky on lower-end devices. Values between 3s and 10s tend to look best.