Button
Five voices, from loudest to quietest: send, the one primary in a composer; filled, a quieter primary for confirm and apply; quiet, the default secondary; text, borderless, for clear and back links; and danger, a quiet button that only turns red when pointed at. No button is red all the time.
Each row is one kind at its default size, in its four states. Hover and focus are held still with the .is-hover and .is-focus-visible twins design.js makes from the app's own :hover and :focus-visible rules. Disabled is the real attribute.
pill is send's compact form for the chat and search bars: 1.8rem, fully round, with an optional ↵. Quiet comes in three heights: 2.2rem (md, the default), 2rem (.sm) and 1.8rem (.xs, smaller type too). Text buttons are always 1.8rem.
A call is running. Any button that sends something to the server goes through busy(button, work) in core.js: it takes no clicks and is aria-busy, and after .15s the label hides in place (so the width holds) and a ring in the label's colour turns where it was. A call quicker than that shows nothing. Controls held alongside it, the rest of a form or a row, are just disabled. Under reduced motion the ring pulses instead. Live: click one.
Write's control row: two sends beside a quiet, then a text button. Undo and redo use .quiet.empty, half strength while there is nothing to undo.
button.send[.pill] primary · 2.2rem (pill 1.8rem) span.ret pill only, the ↵ button.filled secondary primary · 2.2rem button.quiet[.sm | .xs] default secondary · 2.2 / 2 / 1.8rem button.text borderless · 1.8rem button.quiet.danger quiet, --text-danger on hover
Fills --fill-accent, --fill-accent-hover, --fill-accent-muted, --bg-raised; labels --text-on-accent, --text-muted, --text-default, --text-danger; rules --border-default, --border-danger; focus --focus-ring; radius --radius-sm, --radius-base, --radius-lg, --radius-pill; type --font-ui. In Figma: one Button set, kind × size × state, with a label text property and show return on the pill.