Theming
Tokens, dark mode and the four materials.
Every colour, radius and shadow is a CSS variable from the Captain tokens, the same set the composer, sidebar and transcript use. Change a variable and every component follows.
:root {
--captain-accent: #0E7C86;
--captain-radius: 10px;
}
.dark {
--captain-ground: #0B0C0E;
}Dark mode
Add the dark class to any ancestor, usually <html>. Tokens switch underneath; components need no props.
Materials
The theme adds four utilities that give components depth instead of borders:
wellrecesses a surface: inputs, tracks, trays.raisedlifts one, with a lit top edge.glassfrosts something floating over content: menus, sheets, toasts.pressablescales to 0.97 over 160ms while pressed.
Motion
Interface motion stays under 300ms on cubic-bezier(0.23, 1, 0.32, 1). Anything a gesture can touch uses springs, so it can be caught mid-flight. Hover effects only run on devices with a fine pointer. Under reduced motion, travel and bounce drop and opacity stays.