States
Every combination, not every variant
Reaction#
Own reactions fill with withAlpha(accent, 0.12), 12% in both modes, under a 1px inset accent ring, and only the count takes the accent, at 600. They have no hover style. Others are muted with a hairline ring that darkens on hover. 24px pills, 32px under md.
components/reactions.tsxBadges and count pills#
Badge is the primitive. Count pills are not: they read --theme-badge, which the shell sets to the theme's pastel accent.dark in both modes, with #16090e text. The rail badge is the same fill at 16px, falling back to #ECB22E outside a workspace; a nav row's count (Drafts & sent) is neutral white/20.
ui/badge.tsxSIDEBAR_COUNT_PILL_CLASS 路 sidebar-button.tsx 路 sidebar-item.tsxSelected#
The shared selection style is accentSelected from lib/accent.ts: an accent tint (8% light, 15% dark) that persists under the pointer, plus accent text. Not every consumer takes all of it, and each keeps its own hover: classes, so every row is composed the way its file composes it. Only the status picker keeps tint and accent text on hover; the preferences tabs, the settings sidebar and the mode picker keep the tint but hover their text to foreground. Theme cards and the huddle invite list take the bare tint, so in light they drop to the grey hover; in dark the tint's dark: rule is emitted after hover:bg-accent and holds. Tabs use an accent underline instead of a tint. Shown in Classic.
Page mode
Follows the header's mode.
Forced dark
Wrapped in its own .dark, so it reads dark whatever the header's mode says.
Focus#
Buttons, inputs, switches and tabs take the focus ring. Native selects don't: browsers treat a mouse click on a <select> as keyboard focus, so a ring would flash on every click, and a border shift is the cue instead. The composer uses a border shift too (focus-within). Composer toolbar buttons get a 2px inset outline, and huddle invite rows only fill. Every ring isfocus-visible, never focus: a sheet or dialog focuses its close button when it opens, and a plain focus: ring would flash on it after a tap.