About this set
A weather widget card on a deep blue gradient with a soft light spot in the top corner. It shows the location with a pin icon, the current temperature in large light type with a sun icon, the conditions, the day’s high, low and feels-like values, and a five-day strip with a day abbreviation, a condition icon and the high for each day. The icons are inline SVG and the gradient and highlight are plain CSS, so there are no images to load. The forecast is a list, and each day carries visually hidden text such as Sunny, high before its temperature, so a screen reader hears Tuesday, sunny, high 28 degrees instead of a row of unlabelled pictures; the day abbreviations are abbr elements with the full day name. The text colours on the gradient were checked against the lightest part of the background behind them and meet 4.5:1. Use it on dashboards, travel pages and smart-home panels. The Bootstrap version lays the strip out with .row.row-cols-5 inside a .card; the Tailwind version uses grid-cols-5 and an after: pseudo-element for the highlight.
What’s included
- Current reading, conditions and a five-day strip
- Inline SVG icons and a CSS-only gradient background
- Hidden condition text for each forecast day
- Text colours checked for 4.5:1 on the gradient
- Bootstrap strip built with .row-cols-5
Accessibility
The location is the card's h2 and the forecast is a list named Five-day forecast. Every icon is aria-hidden, and each day has visually hidden condition text, with abbreviated day names wrapped in abbr. The card has no interactive elements and nothing animates. Faded text is drawn with solid pale colours rather than opacity so the contrast is predictable.
Customise it
The background is the linear-gradient on .weather (a class on the article in Tailwind); if you lighten it, recheck the #d9e1ff and #c7d2fe text. The sun colour is #fde68a on .big, and the card width is 330px.




















