Sleep environment

Spec

Read from the CSS this page runs on. With reduced motion on, nothing glides; only the end states remain.

Switch, on a route

Control
RouteOne line, round ends, cream at 55%: a shallow arc rising over a 52px span (radius )
Thumb solid cream when on; a glass bead drawn at (about 13px) when off
Thumb travelTurns either side of the top, about the route's centre, so it stays on the line
OnLamplight drawn along the route behind the thumb, , with a soft 5px warmth
On is told byThumb at the right end, its larger solid size, and the lit route
StatesTwo only, the ends; nothing stops halfway
Pressed

Type and layout

FontInter Tight
Title
Label
Supporting text
Row height, minimum
Control to text
Panel width, at most
Panel padding
Panel corner
GlassCream at 5.5%, blur, 1.15 saturation, a edge at 32%, a faint light along the top
TargetThe whole row; on hover the control's glass clears a little

Colour

Room, top to floor → →
The lamp
Cream, labels
Supporting text
Control outline, off
Lamplight, on to
Umber, marks on lamplight

Motion

Thumb travels the route, light follows spring, no bounce linear(…)
Lamplight fills
Turning offBack along the route on the same spring, , no bounce; the light drawn back behind it