Cadence — standby breathe
Variant: Standby breathe
A sleep light: one amber dot breathing at twelve a minute, the resting pace of a sleeping person, with a strip chart underneath that scrolls its brightness past a dashed now-line. The breath is asymmetric on purpose — 1.9s in, 2.6s out, a 0.5s rest — because a symmetric sine reads as a machine oscillating, and a long exhale reads as something at rest. The floor is 14% and never zero: dark is what off looks like, and a sleeping device that goes fully dark between breaths is indistinguishable from a dead one for half of every cycle. The light, the trace and the rider dot on the now-line are all sampled from one level function, so the chart is a literal record of what the light just did. Under reduced motion the chart stops scrolling and stays as a legend, and the light keeps breathing on a 1.6× slower clock between 30% and 85%. Reach for it for sleep, standby and low-power states — anything paused but ready to wake.
The source
A complete HTML document. Paste it into an empty .html file and it plays — no stylesheet, script, font, or image to fetch.
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Cadence — standby breathe</title>
<style>
:root {
/* Neutrals — fixed, never remixed. */
--ivory: #faf9f5;
--paper: #ffffff;
--oat: #e3dacc;
--slate: #141413;
/* Knobs — the remix API. A knob exists iff declared here and used below. */
--hue: 38.8;
--lift: 0;
--chroma: 1;
--round: 1;
--speed: 1;
/* Accents — derived from the knobs with the family's offsets baked in,
so one hue roll moves them together. Defaults reproduce the original hex. */
--clay: oklch(calc(0.6724 + var(--lift)) calc(0.1308 * var(--chroma)) var(--hue));
--clay-d: oklch(calc(0.5797 + var(--lift)) calc(0.127 * var(--chroma)) var(--hue));
--olive: oklch(
calc(0.6118 + var(--lift)) calc(0.0713 * var(--chroma)) calc(var(--hue) + 88.3)
);
--rust: oklch(
calc(0.5408 + var(--lift)) calc(0.1357 * var(--chroma)) calc(var(--hue) - 10.3)
);
--_muted: color-mix(in srgb, var(--slate) 54%, transparent);
--_hair: color-mix(in srgb, var(--slate) 9%, transparent);
--_trace: color-mix(in srgb, var(--slate) 62%, transparent);
--_rider: var(--clay);
/* Clock — one breath: 1.9s in, 2.6s out, 0.5s
resting at the floor. Twelve a minute is a sleeping person's pace. */
--cycle: 5s;
--t: calc(var(--cycle) / var(--speed));
}
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
body {
min-height: 100vh;
display: grid;
place-items: center;
background: var(--ivory);
font-family:
system-ui,
-apple-system,
'Segoe UI',
Roboto,
sans-serif;
color: var(--slate);
}
.card {
width: min(300px, calc(100vw - 32px));
padding: clamp(14px, 4.5vw, 18px);
border-radius: calc(14px * var(--round));
background: var(--paper);
box-shadow:
0 0 0 1px var(--_hair),
0 1px 2px var(--_hair);
}
.head {
display: flex;
align-items: center;
gap: 10px;
}
/* The lens is always drawn, so dark reads as off — not as missing. */
.lens {
position: relative;
flex: none;
width: 10px;
height: 10px;
border-radius: 50%;
background: color-mix(in srgb, var(--oat) 70%, var(--paper));
box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--slate) 14%, transparent);
}
.led {
position: absolute;
inset: 0;
border-radius: 50%;
opacity: 0;
animation: var(--_led) var(--t) linear infinite;
}
.name {
flex: 1;
min-width: 0;
font-size: 13px;
font-weight: 500;
letter-spacing: -0.01em;
}
.state {
display: grid;
justify-items: end;
font-size: 12px;
font-weight: 500;
letter-spacing: -0.005em;
}
.state span {
grid-area: 1 / 1;
}
.strip {
display: block;
width: 100%;
height: auto;
margin-top: 12px;
border-radius: calc(6px * var(--round));
background: color-mix(in srgb, var(--oat) 26%, var(--paper));
}
.grid line {
stroke: var(--_hair);
stroke-width: 1;
vector-effect: non-scaling-stroke;
}
.scroll {
animation: scroll var(--t) linear infinite;
}
.trace {
fill: none;
stroke: var(--_trace);
stroke-width: 1.4;
stroke-linejoin: round;
vector-effect: non-scaling-stroke;
}
.now {
stroke: color-mix(in srgb, var(--slate) 22%, transparent);
stroke-width: 1;
stroke-dasharray: 2 2;
vector-effect: non-scaling-stroke;
}
.rider {
fill: var(--_rider);
animation: ride var(--t) linear infinite;
}
/* Mask luminance only — the strip fades in from the left edge. */
.fade-0 {
stop-color: var(--paper);
stop-opacity: 0;
}
.fade-1 {
stop-color: var(--paper);
}
.foot {
display: flex;
justify-content: space-between;
gap: 12px;
margin-top: 10px;
font-size: 11.5px;
color: var(--_muted);
font-variant-numeric: tabular-nums;
}
.led.amber {
--_led: breathe;
background: var(--clay);
box-shadow: 0 0 7px 1px color-mix(in srgb, var(--clay) 55%, transparent);
}
/* The strip scrolls one cycle's width per cycle on the same clock as the
light, so the level under the dashed "now" line is the light. */
@keyframes scroll {
from {
transform: translateX(0);
}
to {
transform: translateX(-120px);
}
}
@keyframes breathe {
0% {
opacity: 0.14;
}
3.167% {
opacity: 0.155;
}
6.333% {
opacity: 0.198;
}
9.5% {
opacity: 0.266;
}
12.667% {
opacity: 0.355;
}
15.833% {
opacity: 0.459;
}
19% {
opacity: 0.57;
}
22.167% {
opacity: 0.681;
}
25.333% {
opacity: 0.785;
}
28.5% {
opacity: 0.874;
}
31.667% {
opacity: 0.942;
}
34.833% {
opacity: 0.985;
}
38% {
opacity: 1;
}
41.25% {
opacity: 0.992;
}
44.5% {
opacity: 0.967;
}
47.75% {
opacity: 0.928;
}
51% {
opacity: 0.874;
}
54.25% {
opacity: 0.809;
}
57.5% {
opacity: 0.735;
}
60.75% {
opacity: 0.654;
}
64% {
opacity: 0.57;
}
67.25% {
opacity: 0.486;
}
70.5% {
opacity: 0.405;
}
73.75% {
opacity: 0.331;
}
77% {
opacity: 0.266;
}
80.25% {
opacity: 0.212;
}
83.5% {
opacity: 0.173;
}
86.75% {
opacity: 0.148;
}
90% {
opacity: 0.14;
}
100% {
opacity: 0.14;
}
}
@keyframes ride {
0% {
transform: translateY(-3.08px);
}
3.167% {
transform: translateY(-3.4px);
}
6.333% {
transform: translateY(-4.35px);
}
9.5% {
transform: translateY(-5.85px);
}
12.667% {
transform: translateY(-7.81px);
}
15.833% {
transform: translateY(-10.09px);
}
19% {
transform: translateY(-12.54px);
}
22.167% {
transform: translateY(-14.99px);
}
25.333% {
transform: translateY(-17.27px);
}
28.5% {
transform: translateY(-19.23px);
}
31.667% {
transform: translateY(-20.73px);
}
34.833% {
transform: translateY(-21.68px);
}
38% {
transform: translateY(-22px);
}
41.25% {
transform: translateY(-21.82px);
}
44.5% {
transform: translateY(-21.28px);
}
47.75% {
transform: translateY(-20.41px);
}
51% {
transform: translateY(-19.23px);
}
54.25% {
transform: translateY(-17.8px);
}
57.5% {
transform: translateY(-16.16px);
}
60.75% {
transform: translateY(-14.39px);
}
64% {
transform: translateY(-12.54px);
}
67.25% {
transform: translateY(-10.69px);
}
70.5% {
transform: translateY(-8.92px);
}
73.75% {
transform: translateY(-7.28px);
}
77% {
transform: translateY(-5.85px);
}
80.25% {
transform: translateY(-4.67px);
}
83.5% {
transform: translateY(-3.8px);
}
86.75% {
transform: translateY(-3.26px);
}
90% {
transform: translateY(-3.08px);
}
100% {
transform: translateY(-3.08px);
}
}
@media (prefers-reduced-motion: reduce) {
/* The rhythm is the information, so the light keeps it — slower and
with a raised floor, so it never strobes. The chart stops scrolling
and stays as a legend of the pattern; the rider goes. */
.led.amber {
animation-name: breathe-soft;
animation-duration: calc(var(--t) * 1.6);
}
.scroll {
animation: none;
}
.rider {
display: none;
}
@keyframes breathe-soft {
0% {
opacity: 0.3;
}
3.167% {
opacity: 0.309;
}
6.333% {
opacity: 0.337;
}
9.5% {
opacity: 0.381;
}
12.667% {
opacity: 0.438;
}
15.833% {
opacity: 0.504;
}
19% {
opacity: 0.575;
}
22.167% {
opacity: 0.646;
}
25.333% {
opacity: 0.712;
}
28.5% {
opacity: 0.769;
}
31.667% {
opacity: 0.813;
}
34.833% {
opacity: 0.841;
}
38% {
opacity: 0.85;
}
41.25% {
opacity: 0.845;
}
44.5% {
opacity: 0.829;
}
47.75% {
opacity: 0.804;
}
51% {
opacity: 0.769;
}
54.25% {
opacity: 0.728;
}
57.5% {
opacity: 0.68;
}
60.75% {
opacity: 0.629;
}
64% {
opacity: 0.575;
}
67.25% {
opacity: 0.521;
}
70.5% {
opacity: 0.47;
}
73.75% {
opacity: 0.422;
}
77% {
opacity: 0.381;
}
80.25% {
opacity: 0.346;
}
83.5% {
opacity: 0.321;
}
86.75% {
opacity: 0.305;
}
90% {
opacity: 0.3;
}
100% {
opacity: 0.3;
}
}
}
</style>
</head>
<body>
<div
class="card"
role="img"
aria-label="An indicator light breathes slowly in amber — a faster rise, a longer fall, and a short rest at a dim floor that never reaches dark. A strip chart beneath scrolls the brightness as a smooth wave. The display is asleep."
>
<div class="head">
<span class="lens" aria-hidden="true"><i class="led amber"></i></span>
<span class="name">Studio display</span>
<span class="state"><span>Asleep</span></span>
</div>
<svg class="strip" viewBox="0 0 200 36" aria-hidden="true">
<defs>
<clipPath id="past"><rect x="0" y="0" width="184" height="36" /></clipPath>
<linearGradient id="fade-g" x1="0" x2="1">
<stop class="fade-0" offset="0" />
<stop class="fade-1" offset="0.22" />
</linearGradient>
<mask id="fade"><rect width="200" height="36" fill="url(#fade-g)" /></mask>
</defs>
<g class="grid">
<line x1="0" x2="200" y1="30" y2="30" />
<line x1="154" x2="154" y1="4" y2="30" />
<line x1="124" x2="124" y1="4" y2="30" />
<line x1="94" x2="94" y1="4" y2="30" />
<line x1="64" x2="64" y1="4" y2="30" />
<line x1="34" x2="34" y1="4" y2="30" />
<line x1="4" x2="4" y1="4" y2="30" />
</g>
<g clip-path="url(#past)" mask="url(#fade)">
<g class="scroll">
<path
class="trace"
d="M0 9.3 L1.3 9.59 L5.2 10.77 L9.1 12.2 L13 13.84 L16.9 15.61 L20.8 17.46 L24.7 19.31 L28.6 21.08 L32.5 22.72 L36.4 24.15 L40.3 25.33 L44.2 26.2 L48.1 26.74 L52 26.92 L64 26.92 L64 26.92 L67.8 26.6 L71.6 25.65 L75.4 24.15 L79.2 22.19 L83 19.91 L86.8 17.46 L90.6 15.01 L94.4 12.73 L98.2 10.77 L102 9.27 L105.8 8.32 L109.6 8 L113.5 8.18 L117.4 8.72 L121.3 9.59 L125.2 10.77 L129.1 12.2 L133 13.84 L136.9 15.61 L140.8 17.46 L144.7 19.31 L148.6 21.08 L152.5 22.72 L156.4 24.15 L160.3 25.33 L164.2 26.2 L168.1 26.74 L172 26.92 L184 26.92 L184 26.92 L187.8 26.6 L191.6 25.65 L195.4 24.15 L199.2 22.19 L203 19.91 L206.8 17.46 L210.6 15.01 L214.4 12.73 L218.2 10.77 L222 9.27 L225.8 8.32 L229.6 8 L233.5 8.18 L237.4 8.72 L241.3 9.59 L245.2 10.77 L249.1 12.2 L253 13.84 L256.9 15.61 L260.8 17.46 L264.7 19.31 L268.6 21.08 L272.5 22.72 L276.4 24.15 L280.3 25.33 L284.2 26.2 L288.1 26.74 L292 26.92 L304 26.92"
/>
</g>
</g>
<line class="now" x1="184" x2="184" y1="3" y2="33" />
<circle class="rider" cx="184" cy="30" r="2.2" />
</svg>
<div class="foot"><span>Slow breath, never dark</span><span>12 / min</span></div>
</div>
</body>
</html>
The variant family
Same idea, one axis moved. Compare them side by side before you commit.