Skip to content

hd-ambience

Live preview

<hd-ambience mode="heating" strength="0.7"></hd-ambience><b>{{ cap.target_temperature.value | temp: 1 }}</b>

Attributes and example

hd-ambience

A living background for a tile that heats or cools: soft reds and ambers rising like warm air, or ice blues sinking and drifting. Stronger the harder it works. Position it behind the content; it never takes a tap. Reduced motion: still colour; e-ink: nothing.

AttributeWhat it is
modeWhat the tile is doing; anything else fades it away.One of heating, cooling, .
strengthHow hard it works, 0–1 (e.g. how far from the target). Or a live capability of any device, followed and fitted into its own range: {{ cap.measure_battery }} (0–100) just works.Default 0.6.
<hd-ambience mode="heating" strength="0.7"></hd-ambience><b>{{ cap.target_temperature.value | temp: 1 }}</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-flat
1 on e-ink: no colours, glows or gradients, only black and white.

Style the host

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