Skip to content

hd-weather-sky

Live preview

<hd-weather-sky condition="rain" intensity="light"></hd-weather-sky><b>Light rain</b>

Attributes and example

hd-weather-sky

A living sky that fills its tile, under the content: the condition’s sky by day or night, toned to the theme, with the sun, stars, drifting clouds, rain, snow, lightning or fog moving in it. Reduced motion: still; e-ink: none.

AttributeWhat it is
conditionWhat the sky does.One of clear, partly, cloudy, fog, rain, sleet, snow, thunder. Default cloudy.
intensityHow hard it rains or snows.One of light, moderate, heavy. Default moderate.
nightThe night sky.Default false.
showersThe sun breaking through.Default false.
<hd-weather-sky condition="rain" intensity="light"></hd-weather-sky><b>Light rain</b>

Styling

Set CSS variables on the component element. Its internal elements live in Shadow DOM; only the exposed named parts can be styled with ::part.

--hd-appearance
`light`, `dark` or `paper`, for what colours alone can’t decide.
--hd-flat
1 on e-ink: no colours, glows or gradients, only black and white.
--hd-lit
The warm colour of a device that is on.
--hd-motion-slow
A slow change, like a theme switching.
--hd-motion-tempo
CSS input read by hd-weather-sky.
--hd-surface-raised
Something on a tile that stands out from it, like a button.

Style the host

hd-weather-sky {  --hd-accent: #2563eb;  max-width: 100%;}
Theme variables