Skip to content

hd-appliance

Live preview

<hd-appliance kind="washer" state="running" size="56px"></hd-appliance><hd-appliance kind="dishwasher" state="done" size="56px"></hd-appliance>

Attributes and example

hd-appliance

A washing machine, dryer or dishwasher whose own moving part shows it works: a washer’s drum turns and returns, a dryer’s tumbles on, a dishwasher’s spray bobs. Done it rests in the good colour; off it is dimmed. Reduced motion: still; e-ink snaps.

AttributeWhat it is
kindWhich appliance.One of washer, dryer, dishwasher, icon. Default washer.
iconFor kind="icon": the registry icon to draw, a ring circling it while it runs.
staterunning, done or off.One of running, done, off. Default off.
sizeIts size (CSS), e.g. 56px; or set --size.Default 56px.
labelAccessible label; otherwise the state in words.
<hd-appliance kind="washer" state="running" size="56px"></hd-appliance><hd-appliance kind="dishwasher" state="done" size="56px"></hd-appliance>

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-accent
The theme’s accent: active controls, links, highlights.
--hd-ease-out
The easing of most movement.
--hd-flat
1 on e-ink: no colours, glows or gradients, only black and white.
--hd-good
All is well: locked, closed, cheap.
--hd-lit
The warm colour of a device that is on.
--hd-motion-base
An ordinary change, like a value sliding.
--hd-motion-slow
A slow change, like a theme switching.
--hd-motion-tempo
CSS input read by hd-appliance.
--hd-text-muted
Labels and secondary text.

Style the host

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